Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
onnxruntime: rename with_cuda_provider to enable_cuda
Browse files Browse the repository at this point in the history
bverhagen committed Oct 9, 2023
1 parent 50dc747 commit 7edcd38
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions recipes/onnxruntime/all/conanfile.py
Original file line number Diff line number Diff line change
@@ -27,13 +27,13 @@ class OnnxRuntimeConan(ConanFile):
"shared": [True, False],
"fPIC": [True, False],
"with_xnnpack": [True, False],
"with_cuda_provider": [True, False],
"use_cuda": [True, False],
}
default_options = {
"shared": False,
"fPIC": True,
"with_xnnpack": False,
"with_cuda_provider": False,
"use_cuda": True,
}
short_paths = True

@@ -128,7 +128,7 @@ def generate(self):
tc.variables["onnxruntime_USE_FULL_PROTOBUF"] = not self.dependencies["protobuf"].options.lite
tc.variables["onnxruntime_USE_XNNPACK"] = self.options.with_xnnpack

tc.variables["onnxruntime_USE_CUDA"] = self.options.with_cuda_provider
tc.variables["onnxruntime_USE_CUDA"] = self.options.use_cuda
tc.variables["onnxruntime_BUILD_UNIT_TESTS"] = False
tc.variables["onnxruntime_RUN_ONNX_TESTS"] = False
tc.variables["onnxruntime_GENERATE_TEST_REPORTS"] = False
@@ -153,7 +153,7 @@ def generate(self):
tc.variables["onnxruntime_TVM_CUDA_RUNTIME"] = False
tc.variables["onnxruntime_TVM_USE_HASH"] = False
tc.variables["onnxruntime_CROSS_COMPILING"] = False
tc.variables["onnxruntime_DISABLE_CONTRIB_OPS"] = self.options.with_cuda_provider
tc.variables["onnxruntime_DISABLE_CONTRIB_OPS"] = self.options.use_cuda
tc.variables["onnxruntime_DISABLE_ML_OPS"] = False
tc.variables["onnxruntime_DISABLE_RTTI"] = False
tc.variables["onnxruntime_DISABLE_EXCEPTIONS"] = False

0 comments on commit 7edcd38

Please sign in to comment.