mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-29 15:43:00 +00:00
tree-wide: 'enableCuda ? false' -> 'config.cudaSupport or false' to respect global defaults
This commit is contained in:
parent
4fafb3b90b
commit
74549ec63b
@ -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
|
||||
}:
|
||||
|
||||
|
@ -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
|
||||
|
@ -2,7 +2,8 @@
|
||||
, x11Support ? false
|
||||
, libX11
|
||||
, cairo
|
||||
, enableCuda ? false
|
||||
, config
|
||||
, enableCuda ? config.cudaSupport or false
|
||||
, cudaPackages
|
||||
}:
|
||||
|
||||
|
@ -11,7 +11,8 @@
|
||||
, enableOpencl ? true
|
||||
, opencl-headers
|
||||
, ocl-icd
|
||||
, enableCuda ? false
|
||||
, config
|
||||
, enableCuda ? config.cudaSupport or false
|
||||
, cudaPackages
|
||||
, addOpenGLRunpath
|
||||
}:
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user