From e15a530f32951f69899a37f74a70f46da3e62cf3 Mon Sep 17 00:00:00 2001 From: Wouter Deconinck Date: Mon, 17 Mar 2025 04:35:20 -0500 Subject: [PATCH] py-onnxruntime: use CudaPackage (#47684) --- var/spack/repos/builtin/packages/py-onnxruntime/package.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/var/spack/repos/builtin/packages/py-onnxruntime/package.py b/var/spack/repos/builtin/packages/py-onnxruntime/package.py index 12b64fd3e3c..5bca596721b 100644 --- a/var/spack/repos/builtin/packages/py-onnxruntime/package.py +++ b/var/spack/repos/builtin/packages/py-onnxruntime/package.py @@ -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")