onnxruntime: fix evaluation with cudaSupport

This commit is contained in:
Niklas Gollenstede 2024-02-27 17:08:40 +01:00 committed by GitHub
parent 73de017ef2
commit cbf7ad12a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -187,8 +187,8 @@ effectiveStdenv.mkDerivation rec {
] ++ lib.optionals pythonSupport [
"-Donnxruntime_ENABLE_PYTHON=ON"
] ++ lib.optionals cudaSupport [
(lib.cmakeFeature "FETCHCONTENT_SOURCE_DIR_CUTLASS" cutlass)
(lib.cmakeFeature "onnxruntime_CUDNN_HOME" cudaPackages.cudnn)
(lib.cmakeFeature "FETCHCONTENT_SOURCE_DIR_CUTLASS" "${cutlass}")
(lib.cmakeFeature "onnxruntime_CUDNN_HOME" "${cudaPackages.cudnn}")
(lib.cmakeFeature "CMAKE_CUDA_ARCHITECTURES" cudaArchitecturesString)
];