File tree Expand file tree Collapse file tree
pkgs/development/libraries/science/math/magma Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535
3636let
3737 inherit ( lib ) lists strings trivial ;
38- inherit ( cudaPackages ) cudatoolkit cudaFlags cudaVersion ;
38+ inherit ( cudaPackages ) backendStdenv cudaFlags cudaVersion ;
3939 inherit ( magmaRelease ) version hash supportedGpuTargets ;
4040
4141 # NOTE: The lists.subtractLists function is perhaps a bit unintuitive. It subtracts the elements
@@ -148,8 +148,8 @@ stdenv.mkDerivation {
148148 ] ++ lists . optionals cudaSupport [
149149 "-DCMAKE_CUDA_ARCHITECTURES=${ cudaArchitecturesString } "
150150 "-DMIN_ARCH=${ minArch } " # Disarms magma's asserts
151- "-DCMAKE_C_COMPILER=${ cudatoolkit . cc } /bin/cc"
152- "-DCMAKE_CXX_COMPILER=${ cudatoolkit . cc } /bin/c++"
151+ "-DCMAKE_C_COMPILER=${ backendStdenv . cc } /bin/cc"
152+ "-DCMAKE_CXX_COMPILER=${ backendStdenv . cc } /bin/c++"
153153 "-DMAGMA_ENABLE_CUDA=ON"
154154 ] ++ lists . optionals rocmSupport [
155155 "-DCMAKE_C_COMPILER=${ hip } /bin/hipcc"
You can’t perform that action at this time.
0 commit comments