tree-wide: rm cudaSupport ? false formal parameters
'cudaSupport ? false' -> 'cudaSupport ? config.cudaSupport or false' to respect global defaults Packages expressions that take `cudaSupport ? false` are likely to ignore `config.cudaSupport`. Instead, we want them to make `cudaSupport` a required argument, or to explicitly refer to `config`
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
, fetchpatch
|
||||
, openblas, blas, lapack, opencv3, libzip, boost, protobuf, mpi
|
||||
, onebitSGDSupport ? false
|
||||
, cudaSupport ? false, cudaPackages ? {}, addOpenGLRunpath, cudatoolkit, nvidia_x11
|
||||
, config
|
||||
, cudaSupport ? config.cudaSupport or false, cudaPackages ? {}, addOpenGLRunpath, cudatoolkit, nvidia_x11
|
||||
, cudnnSupport ? cudaSupport
|
||||
}:
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{ mkDerivation, lib, fetchFromGitHub, cmake, boost179, ceres-solver, eigen,
|
||||
freeimage, glog, libGLU, glew, qtbase,
|
||||
cudaSupport ? false, cudaPackages }:
|
||||
config,
|
||||
cudaSupport ? config.cudaSupport or false, cudaPackages }:
|
||||
|
||||
assert cudaSupport -> cudaPackages != { };
|
||||
|
||||
|
||||
@@ -19,7 +19,8 @@
|
||||
, clblas
|
||||
, doxygen
|
||||
, buildDocs ? false
|
||||
, cudaSupport ? false
|
||||
, config
|
||||
, cudaSupport ? config.cudaSupport or false
|
||||
, cudatoolkit
|
||||
, darwin
|
||||
}:
|
||||
|
||||
@@ -40,8 +40,9 @@
|
||||
, snappy
|
||||
, zlib
|
||||
|
||||
, config
|
||||
# CUDA flags:
|
||||
, cudaSupport ? false
|
||||
, cudaSupport ? config.cudaSupport or false
|
||||
, cudaPackages ? {}
|
||||
|
||||
# MKL:
|
||||
|
||||
@@ -9,7 +9,9 @@
|
||||
, six
|
||||
, nose
|
||||
, mako
|
||||
, cudaSupport ? false, cudaPackages
|
||||
, config
|
||||
, cudaSupport ? config.cudaSupport or false
|
||||
, cudaPackages ? { }
|
||||
, openclSupport ? true, ocl-icd, clblas
|
||||
}:
|
||||
|
||||
|
||||
@@ -14,12 +14,14 @@
|
||||
, runCommand
|
||||
, fetchpatch
|
||||
|
||||
, config
|
||||
|
||||
# CUDA-only dependencies:
|
||||
, addOpenGLRunpath ? null
|
||||
, cudaPackages ? {}
|
||||
|
||||
# CUDA flags:
|
||||
, cudaSupport ? false
|
||||
, cudaSupport ? config.cudaSupport or false
|
||||
}:
|
||||
|
||||
let
|
||||
|
||||
@@ -21,7 +21,8 @@
|
||||
, backports_weakref
|
||||
, tensorflow-estimator-bin
|
||||
, tensorboard
|
||||
, cudaSupport ? false
|
||||
, config
|
||||
, cudaSupport ? config.cudaSupport or false
|
||||
, cudaPackages ? {}
|
||||
, zlib
|
||||
, python
|
||||
|
||||
@@ -17,7 +17,8 @@
|
||||
# that in nix as well. It would make some things easier and less confusing, but
|
||||
# it would also make the default tensorflow package unfree. See
|
||||
# https://groups.google.com/a/tensorflow.org/forum/#!topic/developers/iRCt5m4qUz0
|
||||
, cudaSupport ? false
|
||||
, config
|
||||
, cudaSupport ? config.cudaSupport or false
|
||||
, cudaPackages ? { }
|
||||
, cudaCapabilities ? cudaPackages.cudaFlags.cudaCapabilities
|
||||
, mklSupport ? false, mkl
|
||||
|
||||
@@ -11,8 +11,9 @@
|
||||
, setuptools
|
||||
, six
|
||||
, libgpuarray
|
||||
, cudaSupport ? false, cudaPackages ? {}
|
||||
, cudnnSupport ? false
|
||||
, config
|
||||
, cudaSupport ? config.cudaSupport or false, cudaPackages ? {}
|
||||
, cudnnSupport ? cudaSupport
|
||||
}:
|
||||
|
||||
let
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{ stdenv, lib, fetchFromGitHub, buildPythonPackage, python,
|
||||
cudaSupport ? false, cudaPackages, magma,
|
||||
config, cudaSupport ? config.cudaSupport or false, cudaPackages, magma,
|
||||
useSystemNccl ? true,
|
||||
MPISupport ? false, mpi,
|
||||
buildDocs ? false,
|
||||
|
||||
@@ -30,7 +30,8 @@
|
||||
, svt-av1
|
||||
, vulkan-loader
|
||||
, libappindicator
|
||||
, cudaSupport ? false
|
||||
, config
|
||||
, cudaSupport ? config.cudaSupport or false
|
||||
, cudaPackages ? {}
|
||||
}:
|
||||
let
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{ cmake, fetchFromGitHub, makeWrapper, opencv3, lib, stdenv, ocl-icd, opencl-headers, OpenCL
|
||||
, cudaSupport ? false, cudatoolkit ? null
|
||||
, config
|
||||
, cudaSupport ? config.cudaSupport or false, cudatoolkit ? null
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{ lib, gccStdenv, fetchFromGitLab, cudatoolkit
|
||||
, cudaSupport ? false
|
||||
, config
|
||||
, cudaSupport ? config.cudaSupport or false
|
||||
, pkg-config }:
|
||||
|
||||
gccStdenv.mkDerivation rec {
|
||||
|
||||
Reference in New Issue
Block a user