1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

spla: split outputs (out,dev); do not use propagatedBuildInputs

This commit is contained in:
Markus Kowalewski 2024-05-16 11:03:18 +02:00
parent ecd2c2a61e
commit af6e7759a5

View file

@ -31,6 +31,8 @@ stdenv.mkDerivation rec {
hash = "sha256-71QpwTsRogH+6Bik9DKwezl9SqwoLxQt4SZ7zw5X6DE=";
};
outputs = [ "out" "dev" ];
postPatch = ''
substituteInPlace src/gpu_util/gpu_blas_api.hpp \
--replace '#include <rocblas.h>' '#include <rocblas/rocblas.h>'
@ -43,6 +45,7 @@ stdenv.mkDerivation rec {
buildInputs = [
blas
mpi
]
++ lib.optional (gpuBackend == "cuda") cudaPackages.cudatoolkit
++ lib.optionals (gpuBackend == "rocm") [
@ -51,8 +54,6 @@ stdenv.mkDerivation rec {
] ++ lib.optional stdenv.isDarwin llvmPackages.openmp
;
propagatedBuildInputs = [ mpi ];
cmakeFlags = [
"-DSPLA_OMP=ON"
"-DSPLA_FORTRAN=ON"
@ -65,10 +66,15 @@ stdenv.mkDerivation rec {
++ lib.optional (gpuBackend == "rocm") [ "-DSPLA_GPU_BACKEND=ROCM" ]
;
preFixup = ''
substituteInPlace $out/lib/cmake/SPLA/SPLASharedTargets-release.cmake \
--replace-fail "\''${_IMPORT_PREFIX}" "$out"
'';
meta = with lib; {
description = "Specialized Parallel Linear Algebra, providing distributed GEMM functionality for specific matrix distributions with optional GPU acceleration";
homepage = "https://github.com/eth-cscs/spla";
license = licenses.bsd3;
maintainers = [ maintainers.sheepforce ];#
maintainers = [ maintainers.sheepforce ];
};
}