mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
Merge pull request #279660 from markuskowa/fix-spfft-sirius
spfft,sirius: fix CUDA build
This commit is contained in:
commit
1e4909f24b
@ -55,7 +55,7 @@ stdenv.mkDerivation rec {
|
||||
cmake
|
||||
gfortran
|
||||
pkg-config
|
||||
];
|
||||
] ++ lib.optional (gpuBackend == "cuda") cudaPackages.cuda_nvcc;
|
||||
|
||||
buildInputs = [
|
||||
blas
|
||||
@ -72,8 +72,12 @@ stdenv.mkDerivation rec {
|
||||
eigen
|
||||
libvdwxc
|
||||
]
|
||||
++ lib.optional (gpuBackend == "cuda") cudaPackages.cudatoolkit
|
||||
++ lib.optionals (gpuBackend == "rocm") [
|
||||
++ lib.optionals (gpuBackend == "cuda") [
|
||||
cudaPackages.cuda_cudart
|
||||
cudaPackages.cuda_profiler_api
|
||||
cudaPackages.cudatoolkit
|
||||
cudaPackages.libcublas
|
||||
] ++ lib.optionals (gpuBackend == "rocm") [
|
||||
rocmPackages.clr
|
||||
rocmPackages.rocblas
|
||||
] ++ lib.optional stdenv.isDarwin llvmPackages.openmp
|
||||
|
@ -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 New Issue
Block a user