tree-wide: 'enableCuda ? false' -> 'config.cudaSupport or false' to respect global defaults

This commit is contained in:
Someone Serge 2023-03-31 15:56:07 +03:00
parent 4fafb3b90b
commit 74549ec63b
No known key found for this signature in database
GPG key ID: 7B0E3B1390D61DA4
7 changed files with 14 additions and 7 deletions

View file

@ -1,7 +1,8 @@
{ lib, stdenv, fetchurl, cmake, hwloc, fftw, perl, blas, lapack, mpi, cudatoolkit
, singlePrec ? true
, config
, enableMpi ? false
, enableCuda ? false
, enableCuda ? config.cudaSupport or false
, cpuAcceleration ? null
}:

View file

@ -4,10 +4,11 @@
, avxSupport ? stdenv.hostPlatform.avxSupport
, avx2Support ? stdenv.hostPlatform.avx2Support
, avx512Support ? stdenv.hostPlatform.avx512Support
, config
# Enable NIVIA GPU support
# Note, that this needs to be built on a system with a GPU
# present for the tests to succeed.
, enableCuda ? false
, enableCuda ? config.cudaSupport or false
# type of GPU architecture
, nvidiaArch ? "sm_60"
, cudatoolkit

View file

@ -2,7 +2,8 @@
, x11Support ? false
, libX11
, cairo
, enableCuda ? false
, config
, enableCuda ? config.cudaSupport or false
, cudaPackages
}:

View file

@ -11,7 +11,8 @@
, enableOpencl ? true
, opencl-headers
, ocl-icd
, enableCuda ? false
, config
, enableCuda ? config.cudaSupport or false
, cudaPackages
, addOpenGLRunpath
}:

View file

@ -1,5 +1,6 @@
{ stdenv, lib, fetchFromGitHub, libtool, automake, autoconf, ucx
, enableCuda ? false
, config
, enableCuda ? config.cudaSupport or false
, cudatoolkit
, enableAvx ? stdenv.hostPlatform.avxSupport
, enableSse41 ? stdenv.hostPlatform.sse4_1Support

View file

@ -1,6 +1,7 @@
{ stdenv
, boost
, cmake
, config
, cudaPackages
, eigen
, fetchFromGitHub
@ -14,7 +15,7 @@
, openssl
, writeShellScriptBin
, enableAVX2 ? stdenv.hostPlatform.avx2Support
, backend ? "opencl"
, backend ? if (config.cudaSupport or false) then "cuda" else "opencl"
, enableBigBoards ? false
, enableContrib ? false
, enableTcmalloc ? true

View file

@ -1,6 +1,7 @@
{ cmake, cudatoolkit, fetchFromGitHub, gfortran, lib, llvmPackages, python3Packages, stdenv
, config
, enableCfp ? true
, enableCuda ? false
, enableCuda ? config.cudaSupport or false
, enableFortran ? builtins.elem stdenv.targetPlatform.system gfortran.meta.platforms
, enableOpenMP ? true
, enablePython ? true