lol
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #224068 from SomeoneSerge/respect-config-cudaSupport

Respect global config.cudaSupport

authored by

Connor Baker and committed by
GitHub
49587518 62c111f2

+96 -63
+5 -2
doc/languages-frameworks/cuda.section.md
··· 12 12 13 13 To use one or more CUDA packages in an expression, give the expression a `cudaPackages` parameter, and in case CUDA is optional 14 14 ```nix 15 - cudaSupport ? false 16 - cudaPackages ? {} 15 + { config 16 + , cudaSupport ? config.cudaSupport 17 + , cudaPackages ? { } 18 + , ... 19 + }: 17 20 ``` 18 21 19 22 When using `callPackage`, you can choose to pass in a different variant, e.g.
+1 -1
pkgs/applications/graphics/digikam/default.nix
··· 54 54 , breeze-icons 55 55 , oxygen 56 56 57 - , cudaSupport ? config.cudaSupport or false 57 + , cudaSupport ? config.cudaSupport 58 58 , cudaPackages ? {} 59 59 }: 60 60
+1 -1
pkgs/applications/misc/blender/default.nix
··· 5 5 , openvdb, libXxf86vm, tbb, alembic 6 6 , zlib, zstd, fftw, opensubdiv, freetype, jemalloc, ocl-icd, addOpenGLRunpath 7 7 , jackaudioSupport ? false, libjack2 8 - , cudaSupport ? config.cudaSupport or false, cudaPackages ? {} 8 + , cudaSupport ? config.cudaSupport, cudaPackages ? { } 9 9 , hipSupport ? false, hip # comes with a significantly larger closure size 10 10 , colladaSupport ? true, opencollada 11 11 , spaceNavSupport ? stdenv.isLinux, libspnav
+1 -1
pkgs/applications/science/math/caffe/default.nix
··· 13 13 , Accelerate, CoreGraphics, CoreVideo 14 14 , lmdbSupport ? true, lmdb 15 15 , leveldbSupport ? true, leveldb, snappy 16 - , cudaSupport ? config.cudaSupport or false, cudaPackages ? {} 16 + , cudaSupport ? config.cudaSupport, cudaPackages ? { } 17 17 , cudnnSupport ? cudaSupport 18 18 , ncclSupport ? false 19 19 , pythonSupport ? false, python ? null, numpy ? null
+2 -1
pkgs/applications/science/math/cntk/default.nix
··· 2 2 , fetchpatch 3 3 , openblas, blas, lapack, opencv3, libzip, boost, protobuf, mpi 4 4 , onebitSGDSupport ? false 5 - , cudaSupport ? false, cudaPackages ? {}, addOpenGLRunpath, cudatoolkit, nvidia_x11 5 + , config 6 + , cudaSupport ? config.cudaSupport, cudaPackages ? { }, addOpenGLRunpath, cudatoolkit, nvidia_x11 6 7 , cudnnSupport ? cudaSupport 7 8 }: 8 9
+1 -1
pkgs/applications/science/math/mathematica/default.nix
··· 2 2 , config 3 3 , lib 4 4 , cudaPackages 5 - , cudaSupport ? config.cudaSupport or false 5 + , cudaSupport ? config.cudaSupport 6 6 , lang ? "en" 7 7 , webdoc ? false 8 8 , version ? null
+1 -1
pkgs/applications/science/math/mxnet/default.nix
··· 1 1 { config, stdenv, lib, fetchurl, fetchpatch, bash, cmake 2 2 , opencv3, gtest, blas, gomp, llvmPackages, perl 3 - , cudaSupport ? config.cudaSupport or false, cudaPackages ? {}, nvidia_x11 3 + , cudaSupport ? config.cudaSupport, cudaPackages ? { }, nvidia_x11 4 4 , cudnnSupport ? cudaSupport 5 5 }: 6 6
+2 -1
pkgs/applications/science/misc/colmap/default.nix
··· 1 1 { mkDerivation, lib, fetchFromGitHub, cmake, boost179, ceres-solver, eigen, 2 2 freeimage, glog, libGLU, glew, qtbase, 3 - cudaSupport ? false, cudaPackages }: 3 + config, 4 + cudaSupport ? config.cudaSupport, cudaPackages }: 4 5 5 6 assert cudaSupport -> cudaPackages != { }; 6 7
+2 -1
pkgs/applications/science/molecular-dynamics/gromacs/default.nix
··· 1 1 { lib, stdenv, fetchurl, cmake, hwloc, fftw, perl, blas, lapack, mpi, cudatoolkit 2 2 , singlePrec ? true 3 + , config 3 4 , enableMpi ? false 4 - , enableCuda ? false 5 + , enableCuda ? config.cudaSupport 5 6 , cpuAcceleration ? null 6 7 }: 7 8
+1 -1
pkgs/development/compilers/cudatoolkit/common.nix
··· 129 129 (lib.getLib libtiff) 130 130 qt6Packages.qtwayland 131 131 rdma-core 132 - ucx 132 + (ucx.override { enableCuda = false; }) # Avoid infinite recursion 133 133 xorg.libxshmfence 134 134 xorg.libxkbfile 135 135 ] ++ (lib.optionals (lib.versionAtLeast version "12.1") (map lib.getLib ([
+2 -1
pkgs/development/libraries/arrayfire/default.nix
··· 19 19 , clblas 20 20 , doxygen 21 21 , buildDocs ? false 22 - , cudaSupport ? false 22 + , config 23 + , cudaSupport ? config.cudaSupport 23 24 , cudatoolkit 24 25 , darwin 25 26 }:
+2 -1
pkgs/development/libraries/elpa/default.nix
··· 4 4 , avxSupport ? stdenv.hostPlatform.avxSupport 5 5 , avx2Support ? stdenv.hostPlatform.avx2Support 6 6 , avx512Support ? stdenv.hostPlatform.avx512Support 7 + , config 7 8 # Enable NIVIA GPU support 8 9 # Note, that this needs to be built on a system with a GPU 9 10 # present for the tests to succeed. 10 - , enableCuda ? false 11 + , enableCuda ? config.cudaSupport 11 12 # type of GPU architecture 12 13 , nvidiaArch ? "sm_60" 13 14 , cudatoolkit
+1 -1
pkgs/development/libraries/frei0r/default.nix
··· 7 7 , opencv 8 8 , pcre 9 9 , pkg-config 10 - , cudaSupport ? config.cudaSupport or false 10 + , cudaSupport ? config.cudaSupport 11 11 , cudaPackages 12 12 }: 13 13
+2 -1
pkgs/development/libraries/hwloc/default.nix
··· 2 2 , x11Support ? false 3 3 , libX11 4 4 , cairo 5 - , enableCuda ? false 5 + , config 6 + , enableCuda ? config.cudaSupport 6 7 , cudaPackages 7 8 }: 8 9
+1 -1
pkgs/development/libraries/librealsense/default.nix
··· 13 13 , glfw 14 14 , libGLU 15 15 , curl 16 - , cudaSupport ? config.cudaSupport or false, cudaPackages ? {} 16 + , cudaSupport ? config.cudaSupport, cudaPackages ? { } 17 17 , enablePython ? false, pythonPackages ? null 18 18 , enableGUI ? false, 19 19 }:
+1 -1
pkgs/development/libraries/lightgbm/default.nix
··· 1 1 { config, stdenv, lib, fetchFromGitHub, cmake, gtest, doCheck ? true 2 - , cudaSupport ? config.cudaSupport or false, openclSupport ? false, mpiSupport ? false, javaWrapper ? false, hdfsSupport ? false 2 + , cudaSupport ? config.cudaSupport, openclSupport ? false, mpiSupport ? false, javaWrapper ? false, hdfsSupport ? false 3 3 , rLibrary ? false, cudaPackages, opencl-headers, ocl-icd, boost, llvmPackages, openmpi, openjdk, swig, hadoop, R, rPackages }: 4 4 5 5 assert doCheck -> mpiSupport != true;
+1 -1
pkgs/development/libraries/mlt/default.nix
··· 21 21 , sox 22 22 , vid-stab 23 23 , darwin 24 - , cudaSupport ? config.cudaSupport or false 24 + , cudaSupport ? config.cudaSupport 25 25 , cudaPackages ? { } 26 26 , enableJackrack ? stdenv.isLinux 27 27 , ladspa-sdk
+1 -1
pkgs/development/libraries/nvidia-thrust/default.nix
··· 8 8 , symlinkJoin 9 9 , tbb 10 10 , hostSystem ? "CPP" 11 - , deviceSystem ? if config.cudaSupport or false then "CUDA" else "OMP" 11 + , deviceSystem ? if config.cudaSupport then "CUDA" else "OMP" 12 12 }: 13 13 14 14 # Policy for device_vector<T>
+1 -1
pkgs/development/libraries/opencv/3.x.nix
··· 14 14 , enableOpenblas ? true, openblas, blas, lapack 15 15 , enableContrib ? true 16 16 17 - , enableCuda ? (config.cudaSupport or false) && 17 + , enableCuda ? config.cudaSupport && 18 18 stdenv.hostPlatform.isx86_64 19 19 , cudaPackages ? { } 20 20 , enableUnfree ? false
+1 -1
pkgs/development/libraries/opencv/4.x.nix
··· 37 37 , blas 38 38 , enableContrib ? true 39 39 40 - , enableCuda ? (config.cudaSupport or false) && stdenv.hostPlatform.isx86_64 40 + , enableCuda ? config.cudaSupport && stdenv.hostPlatform.isx86_64 41 41 , enableCublas ? enableCuda 42 42 , enableCudnn ? false # NOTE: CUDNN has a large impact on closure size so we disable it by default 43 43 , enableCufft ? enableCuda
+2 -2
pkgs/development/libraries/openmpi/default.nix
··· 1 1 { lib, stdenv, fetchurl, gfortran, perl, libnl 2 2 , rdma-core, zlib, numactl, libevent, hwloc, targetPackages, symlinkJoin 3 3 , libpsm2, libfabric, pmix, ucx 4 - 4 + , config 5 5 # Enable CUDA support 6 - , cudaSupport ? false, cudatoolkit 6 + , cudaSupport ? config.cudaSupport, cudatoolkit 7 7 8 8 # Enable the Sun Grid Engine bindings 9 9 , enableSGE ? false
+1 -1
pkgs/development/libraries/opensubdiv/default.nix
··· 1 1 { config, lib, stdenv, fetchFromGitHub, cmake, pkg-config, xorg, libGLU 2 2 , libGL, glew, ocl-icd, python3 3 - , cudaSupport ? config.cudaSupport or false, cudatoolkit 3 + , cudaSupport ? config.cudaSupport, cudatoolkit 4 4 # For visibility mostly. The whole approach to cuda architectures and capabilities 5 5 # will be reworked soon. 6 6 , cudaArch ? "compute_37"
+2 -1
pkgs/development/libraries/science/chemistry/openmm/default.nix
··· 11 11 , enableOpencl ? true 12 12 , opencl-headers 13 13 , ocl-icd 14 - , enableCuda ? false 14 + , config 15 + , enableCuda ? config.cudaSupport 15 16 , cudaPackages 16 17 , addOpenGLRunpath 17 18 }:
+1 -1
pkgs/development/libraries/science/math/faiss/default.nix
··· 5 5 , stdenv 6 6 , cmake 7 7 , cudaPackages ? { } 8 - , cudaSupport ? config.cudaSupport or false 8 + , cudaSupport ? config.cudaSupport 9 9 , nvidia-thrust 10 10 , useThrustSourceBuild ? true 11 11 , pythonSupport ? true
+2 -1
pkgs/development/libraries/science/math/suitesparse/4.4.nix
··· 1 1 { lib, stdenv, fetchurl, gfortran, blas, lapack 2 - , enableCuda ? false, cudatoolkit 2 + , config 3 + , enableCuda ? config.cudaSupport, cudatoolkit 3 4 }: 4 5 5 6 let
+2 -1
pkgs/development/libraries/science/math/suitesparse/default.nix
··· 6 6 , fixDarwinDylibNames 7 7 , gmp 8 8 , mpfr 9 - , enableCuda ? false 9 + , config 10 + , enableCuda ? config.cudaSupport 10 11 , cudatoolkit 11 12 }: 12 13
+2 -1
pkgs/development/libraries/ucc/default.nix
··· 1 1 { stdenv, lib, fetchFromGitHub, libtool, automake, autoconf, ucx 2 - , enableCuda ? false 2 + , config 3 + , enableCuda ? config.cudaSupport 3 4 , cudatoolkit 4 5 , enableAvx ? stdenv.hostPlatform.avxSupport 5 6 , enableSse41 ? stdenv.hostPlatform.sse4_1Support
+2 -1
pkgs/development/libraries/ucx/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, autoreconfHook, doxygen, numactl 2 2 , rdma-core, libbfd, libiberty, perl, zlib, symlinkJoin, pkg-config 3 - , enableCuda ? false 3 + , config 4 + , enableCuda ? config.cudaSupport 4 5 , cudatoolkit 5 6 , enableRocm ? false 6 7 , rocm-core, rocm-runtime, rocm-device-libs, hip
+1 -1
pkgs/development/libraries/xgboost/default.nix
··· 5 5 , cmake 6 6 , gtest 7 7 , doCheck ? true 8 - , cudaSupport ? config.cudaSupport or false 8 + , cudaSupport ? config.cudaSupport 9 9 , ncclSupport ? false 10 10 , rLibrary ? false 11 11 , cudaPackages
+1 -1
pkgs/development/python-modules/chainer/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , config 4 - , cudaSupport ? config.cudaSupport or false 4 + , cudaSupport ? config.cudaSupport 5 5 , cupy 6 6 , fetchFromGitHub 7 7 , filelock
+1 -1
pkgs/development/python-modules/jaxlib/bin.nix
··· 27 27 , scipy 28 28 , stdenv 29 29 # Options: 30 - , cudaSupport ? config.cudaSupport or false 30 + , cudaSupport ? config.cudaSupport 31 31 , cudaPackages ? {} 32 32 }: 33 33
+2 -1
pkgs/development/python-modules/jaxlib/default.nix
··· 40 40 , snappy 41 41 , zlib 42 42 43 + , config 43 44 # CUDA flags: 44 - , cudaSupport ? false 45 + , cudaSupport ? config.cudaSupport 45 46 , cudaPackages ? {} 46 47 47 48 # MKL:
+3 -1
pkgs/development/python-modules/libgpuarray/default.nix
··· 9 9 , six 10 10 , nose 11 11 , mako 12 - , cudaSupport ? false, cudaPackages 12 + , config 13 + , cudaSupport ? config.cudaSupport 14 + , cudaPackages ? { } 13 15 , openclSupport ? true, ocl-icd, clblas 14 16 }: 15 17
+3 -1
pkgs/development/python-modules/numba/default.nix
··· 14 14 , runCommand 15 15 , fetchpatch 16 16 17 + , config 18 + 17 19 # CUDA-only dependencies: 18 20 , addOpenGLRunpath ? null 19 21 , cudaPackages ? {} 20 22 21 23 # CUDA flags: 22 - , cudaSupport ? false 24 + , cudaSupport ? config.cudaSupport 23 25 }: 24 26 25 27 let
+2 -1
pkgs/development/python-modules/tensorflow/bin.nix
··· 21 21 , backports_weakref 22 22 , tensorflow-estimator-bin 23 23 , tensorboard 24 - , cudaSupport ? false 24 + , config 25 + , cudaSupport ? config.cudaSupport 25 26 , cudaPackages ? {} 26 27 , zlib 27 28 , python
+2 -1
pkgs/development/python-modules/tensorflow/default.nix
··· 17 17 # that in nix as well. It would make some things easier and less confusing, but 18 18 # it would also make the default tensorflow package unfree. See 19 19 # https://groups.google.com/a/tensorflow.org/forum/#!topic/developers/iRCt5m4qUz0 20 - , cudaSupport ? false 20 + , config 21 + , cudaSupport ? config.cudaSupport 21 22 , cudaPackages ? { } 22 23 , cudaCapabilities ? cudaPackages.cudaFlags.cudaCapabilities 23 24 , mklSupport ? false, mkl
+3 -2
pkgs/development/python-modules/theano/default.nix
··· 11 11 , setuptools 12 12 , six 13 13 , libgpuarray 14 - , cudaSupport ? false, cudaPackages ? {} 15 - , cudnnSupport ? false 14 + , config 15 + , cudaSupport ? config.cudaSupport, cudaPackages ? { } 16 + , cudnnSupport ? cudaSupport 16 17 }: 17 18 18 19 let
+1 -1
pkgs/development/python-modules/torch/default.nix
··· 1 1 { stdenv, lib, fetchFromGitHub, buildPythonPackage, python, 2 - cudaSupport ? false, cudaPackages, magma, 2 + config, cudaSupport ? config.cudaSupport, cudaPackages, magma, 3 3 useSystemNccl ? true, 4 4 MPISupport ? false, mpi, 5 5 buildDocs ? false,
+2 -1
pkgs/games/katago/default.nix
··· 1 1 { stdenv 2 2 , boost 3 3 , cmake 4 + , config 4 5 , cudaPackages 5 6 , eigen 6 7 , fetchFromGitHub ··· 14 15 , openssl 15 16 , writeShellScriptBin 16 17 , enableAVX2 ? stdenv.hostPlatform.avx2Support 17 - , backend ? "opencl" 18 + , backend ? if config.cudaSupport then "cuda" else "opencl" 18 19 , enableBigBoards ? false 19 20 , enableContrib ? false 20 21 , enableTcmalloc ? true
+2 -1
pkgs/servers/sunshine/default.nix
··· 30 30 , svt-av1 31 31 , vulkan-loader 32 32 , libappindicator 33 - , cudaSupport ? false 33 + , config 34 + , cudaSupport ? config.cudaSupport 34 35 , cudaPackages ? {} 35 36 }: 36 37 let
+2 -1
pkgs/tools/compression/zfp/default.nix
··· 1 1 { cmake, cudatoolkit, fetchFromGitHub, gfortran, lib, llvmPackages, python3Packages, stdenv 2 + , config 2 3 , enableCfp ? true 3 - , enableCuda ? false 4 + , enableCuda ? config.cudaSupport 4 5 , enableFortran ? builtins.elem stdenv.targetPlatform.system gfortran.meta.platforms 5 6 , enableOpenMP ? true 6 7 , enablePython ? true
+2 -1
pkgs/tools/graphics/waifu2x-converter-cpp/default.nix
··· 1 1 { cmake, fetchFromGitHub, makeWrapper, opencv3, lib, stdenv, ocl-icd, opencl-headers, OpenCL 2 - , cudaSupport ? false, cudatoolkit ? null 2 + , config 3 + , cudaSupport ? config.cudaSupport, cudatoolkit ? null 3 4 }: 4 5 5 6 stdenv.mkDerivation rec {
+1 -1
pkgs/tools/security/hashcat/default.nix
··· 2 2 , addOpenGLRunpath 3 3 , config 4 4 , cudaPackages ? {} 5 - , cudaSupport ? config.cudaSupport or false 5 + , cudaSupport ? config.cudaSupport 6 6 , fetchurl 7 7 , makeWrapper 8 8 , opencl-headers
+2 -1
pkgs/tools/security/truecrack/default.nix
··· 1 1 { lib, gccStdenv, fetchFromGitLab, cudatoolkit 2 - , cudaSupport ? false 2 + , config 3 + , cudaSupport ? config.cudaSupport 3 4 , pkg-config }: 4 5 5 6 gccStdenv.mkDerivation rec {
+5 -5
pkgs/top-level/all-packages.nix
··· 4207 4207 libtensorflow = python3.pkgs.tensorflow.libtensorflow; 4208 4208 4209 4209 libtorch-bin = callPackage ../development/libraries/science/math/libtorch/bin.nix { 4210 - cudaSupport = config.cudaSupport or false; 4210 + inherit (config) cudaSupport; 4211 4211 }; 4212 4212 4213 4213 tensorflow-lite = callPackage ../development/libraries/science/math/tensorflow-lite { }; ··· 10904 10904 10905 10905 nvidia-thrust-intel = callPackage ../development/libraries/nvidia-thrust { 10906 10906 hostSystem = "TBB"; 10907 - deviceSystem = if config.cudaSupport or false then "CUDA" else "TBB"; 10907 + deviceSystem = if config.cudaSupport then "CUDA" else "TBB"; 10908 10908 }; 10909 10909 10910 10910 nvidia-thrust-cuda = callPackage ../development/libraries/nvidia-thrust { ··· 15169 15169 15170 15170 colm = callPackage ../development/compilers/colm { }; 15171 15171 15172 - colmap = libsForQt5.callPackage ../applications/science/misc/colmap { cudaSupport = config.cudaSupport or false; }; 15172 + colmap = libsForQt5.callPackage ../applications/science/misc/colmap { inherit (config) cudaSupport; }; 15173 15173 colmapWithCuda = colmap.override { cudaSupport = true; }; 15174 15174 15175 15175 chickenPackages_4 = callPackage ../development/compilers/chicken/4 { }; ··· 39361 39361 ### SCIENCE / MATH 39362 39362 39363 39363 caffe = callPackage ../applications/science/math/caffe ({ 39364 - cudaSupport = config.cudaSupport or false; 39364 + inherit (config) cudaSupport; 39365 39365 cudaPackages = cudaPackages_10_1; 39366 39366 opencv3 = opencv3WithoutCuda; # Used only for image loading. 39367 39367 blas = openblas; ··· 39376 39376 stdenv = gcc7Stdenv; 39377 39377 inherit (linuxPackages) nvidia_x11; 39378 39378 opencv3 = opencv3WithoutCuda; # Used only for image loading. 39379 - cudaSupport = config.cudaSupport or false; 39379 + inherit (config) cudaSupport; 39380 39380 }; 39381 39381 39382 39382 dap = callPackage ../applications/science/math/dap { };
+6
pkgs/top-level/config.nix
··· 117 117 ''; 118 118 }; 119 119 120 + cudaSupport = mkMassRebuild { 121 + type = types.bool; 122 + default = false; 123 + feature = "build packages with CUDA support by default"; 124 + }; 125 + 120 126 showDerivationWarnings = mkOption { 121 127 type = types.listOf (types.enum [ "maintainerless" ]); 122 128 default = [];
+11 -11
pkgs/top-level/python-packages.nix
··· 1820 1820 chai = callPackage ../development/python-modules/chai { }; 1821 1821 1822 1822 chainer = callPackage ../development/python-modules/chainer { 1823 - cudaSupport = pkgs.config.cudaSupport or false; 1823 + inherit (pkgs.config) cudaSupport; 1824 1824 }; 1825 1825 1826 1826 chainmap = callPackage ../development/python-modules/chainmap { }; ··· 5290 5290 jax-jumpy = callPackage ../development/python-modules/jax-jumpy { }; 5291 5291 5292 5292 jaxlib-bin = callPackage ../development/python-modules/jaxlib/bin.nix { 5293 - cudaSupport = pkgs.config.cudaSupport or false; 5293 + inherit (pkgs.config) cudaSupport; 5294 5294 }; 5295 5295 5296 5296 jaxlib-build = callPackage ../development/python-modules/jaxlib rec { 5297 5297 inherit (pkgs.darwin) cctools; 5298 5298 # Some platforms don't have `cudaSupport` defined, hence the need for 'or false'. 5299 - cudaSupport = pkgs.config.cudaSupport or false; 5299 + inherit (pkgs.config) cudaSupport; 5300 5300 IOKit = pkgs.darwin.apple_sdk_11_0.IOKit; 5301 5301 protobuf = pkgs.protobuf3_20; # jaxlib-build 0.3.15 won't build with protobuf 3.21 5302 5302 }; ··· 5841 5841 5842 5842 libgpuarray = callPackage ../development/python-modules/libgpuarray { 5843 5843 clblas = pkgs.clblas.override { inherit (self) boost; }; 5844 - cudaSupport = pkgs.config.cudaSupport or false; 5844 + inherit (pkgs.config) cudaSupport; 5845 5845 }; 5846 5846 5847 5847 libiio = (toPythonModule (pkgs.libiio.override { inherit python; })).python; ··· 7156 7156 num2words = callPackage ../development/python-modules/num2words { }; 7157 7157 7158 7158 numba = callPackage ../development/python-modules/numba { 7159 - cudaSupport = pkgs.config.cudaSupport or false; 7159 + inherit (pkgs.config) cudaSupport; 7160 7160 }; 7161 7161 7162 7162 numbaWithCuda = self.numba.override { ··· 7324 7324 openai-triton-bin = callPackage ../development/python-modules/openai-triton/bin.nix { }; 7325 7325 7326 7326 openai-whisper = callPackage ../development/python-modules/openai-whisper { 7327 - cudaSupport = pkgs.config.cudaSupport or false; 7327 + inherit (pkgs.config) cudaSupport; 7328 7328 }; 7329 7329 7330 7330 openant = callPackage ../development/python-modules/openant { }; ··· 12371 12371 tensorboardx = callPackage ../development/python-modules/tensorboardx { }; 12372 12372 12373 12373 tensorflow-bin = callPackage ../development/python-modules/tensorflow/bin.nix { 12374 - cudaSupport = pkgs.config.cudaSupport or false; 12374 + inherit (pkgs.config) cudaSupport; 12375 12375 }; 12376 12376 12377 12377 tensorflow-build = callPackage ../development/python-modules/tensorflow { 12378 12378 inherit (pkgs.darwin) cctools; 12379 - cudaSupport = pkgs.config.cudaSupport or false; 12379 + inherit (pkgs.config) cudaSupport; 12380 12380 inherit (self.tensorflow-bin) cudaPackages; 12381 12381 inherit (pkgs.darwin.apple_sdk.frameworks) Foundation Security; 12382 12382 flatbuffers-core = pkgs.flatbuffers; ··· 12495 12495 theano-pymc = callPackage ../development/python-modules/theano-pymc { }; 12496 12496 12497 12497 theano = callPackage ../development/python-modules/theano rec { 12498 - cudaSupport = pkgs.config.cudaSupport or false; 12498 + inherit (pkgs.config) cudaSupport; 12499 12499 cudnnSupport = cudaSupport; 12500 12500 }; 12501 12501 ··· 12662 12662 toposort = callPackage ../development/python-modules/toposort { }; 12663 12663 12664 12664 torch = callPackage ../development/python-modules/torch { 12665 - cudaSupport = pkgs.config.cudaSupport or false; 12665 + inherit (pkgs.config) cudaSupport; 12666 12666 magma = 12667 - if pkgs.config.cudaSupport or false 12667 + if pkgs.config.cudaSupport 12668 12668 then pkgs.magma-cuda-static 12669 12669 else pkgs.magma; 12670 12670 inherit (pkgs.darwin.apple_sdk.frameworks) Accelerate CoreServices;