py-onnxruntime: use CudaPackage (#47684)
This commit is contained in:
parent
0f84623914
commit
e15a530f32
@ -6,7 +6,7 @@
|
||||
from spack.package import *
|
||||
|
||||
|
||||
class PyOnnxruntime(CMakePackage, PythonExtension, ROCmPackage):
|
||||
class PyOnnxruntime(CMakePackage, PythonExtension, ROCmPackage, CudaPackage):
|
||||
"""ONNX Runtime is a performance-focused complete scoring
|
||||
engine for Open Neural Network Exchange (ONNX) models, with
|
||||
an open extensible architecture to continually address the
|
||||
@ -35,8 +35,6 @@ class PyOnnxruntime(CMakePackage, PythonExtension, ROCmPackage):
|
||||
depends_on("c", type="build") # generated
|
||||
depends_on("cxx", type="build") # generated
|
||||
|
||||
variant("cuda", default=False, description="Build with CUDA support")
|
||||
|
||||
# cmake/CMakeLists.txt
|
||||
depends_on("cmake@3.26:", when="@1.17:", type="build")
|
||||
depends_on("cmake@3.1:", type="build")
|
||||
|
Loading…
Reference in New Issue
Block a user