mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 00:57:33 +08:00
add ORT_DIRECTORY compiler option
This commit is contained in:
@@ -16,7 +16,7 @@ import logging
|
||||
import os
|
||||
import sys
|
||||
|
||||
user_specified_dirs = ['@OPENCV_DIRECTORY@', ]
|
||||
user_specified_dirs = ['@OPENCV_DIRECTORY@', '@ORT_DIRECTORY@', ]
|
||||
|
||||
|
||||
def is_built_with_gpu() -> bool:
|
||||
|
@@ -18,7 +18,7 @@ import shutil
|
||||
import subprocess
|
||||
import platform
|
||||
|
||||
user_specified_dirs = ['@OPENCV_DIRECTORY@', ]
|
||||
user_specified_dirs = ['@OPENCV_DIRECTORY@', '@ORT_DIRECTORY@', ]
|
||||
|
||||
def process_on_linux(current_dir):
|
||||
rpaths = ["$ORIGIN:$ORIGIN/libs"]
|
||||
|
@@ -63,6 +63,7 @@ setup_configs["CUDA_DIRECTORY"] = os.getenv("CUDA_DIRECTORY",
|
||||
setup_configs["LIBRARY_NAME"] = PACKAGE_NAME
|
||||
setup_configs["PY_LIBRARY_NAME"] = PACKAGE_NAME + "_main"
|
||||
setup_configs["OPENCV_DIRECTORY"] = os.getenv("OPENCV_DIRECTORY", "")
|
||||
setup_configs["ORT_DIRECTORY"] = os.getenv("ORT_DIRECTORY", "")
|
||||
|
||||
if setup_configs["WITH_GPU"] == "ON":
|
||||
wheel_name = "fastdeploy-gpu-python"
|
||||
|
Reference in New Issue
Block a user