spfft: fix CUDA build
This commit is contained in:
parent
702762fa41
commit
3bd19bc4ef
1 changed files with 5 additions and 4 deletions
|
@ -34,13 +34,14 @@ stdenv.mkDerivation rec {
|
|||
nativeBuildInputs = [
|
||||
cmake
|
||||
gfortran
|
||||
];
|
||||
] ++ lib.optional (gpuBackend == "cuda") cudaPackages.cuda_nvcc;
|
||||
|
||||
buildInputs = [
|
||||
fftw
|
||||
]
|
||||
++ lib.optional (gpuBackend == "cuda") cudaPackages.cudatoolkit
|
||||
++ lib.optionals (gpuBackend == "rocm") [
|
||||
] ++ lib.optionals (gpuBackend == "cuda") [
|
||||
cudaPackages.libcufft
|
||||
cudaPackages.cuda_cudart
|
||||
] ++ lib.optionals (gpuBackend == "rocm") [
|
||||
rocmPackages.clr
|
||||
rocmPackages.rocfft
|
||||
rocmPackages.hipfft
|
||||
|
|
Loading…
Reference in a new issue