python3Packages.onnxruntime: fix build with cudaSupport
This commit is contained in:
parent
7a4d4a55fc
commit
05dedd387f
|
@ -224,6 +224,7 @@ effectiveStdenv.mkDerivation rec {
|
|||
'';
|
||||
|
||||
passthru = {
|
||||
inherit cudaSupport cudaPackages; # for the python module
|
||||
protobuf = protobuf_21;
|
||||
tests = lib.optionalAttrs pythonSupport {
|
||||
python = python3Packages.onnxruntime;
|
||||
|
|
|
@ -53,7 +53,13 @@ buildPythonPackage {
|
|||
oneDNN
|
||||
re2
|
||||
onnxruntime.protobuf
|
||||
];
|
||||
] ++ lib.optionals onnxruntime.passthru.cudaSupport (with onnxruntime.passthru.cudaPackages; [
|
||||
libcublas # libcublasLt.so.XX libcublas.so.XX
|
||||
libcurand # libcurand.so.XX
|
||||
libcufft # libcufft.so.XX
|
||||
cudnn # libcudnn.soXX
|
||||
cuda_cudart # libcudart.so.XX
|
||||
]);
|
||||
|
||||
propagatedBuildInputs = [
|
||||
coloredlogs
|
||||
|
|
Loading…
Reference in New Issue