diff --git a/pkgs/by-name/ll/llama-cpp/package.nix b/pkgs/by-name/ll/llama-cpp/package.nix index e4782d2eed46..400e8f0250c0 100644 --- a/pkgs/by-name/ll/llama-cpp/package.nix +++ b/pkgs/by-name/ll/llama-cpp/package.nix @@ -10,7 +10,7 @@ , cudaSupport ? config.cudaSupport , cudaPackages ? { } -, rocmSupport ? false +, rocmSupport ? config.rocmSupport , rocmPackages ? { } , openclSupport ? false diff --git a/pkgs/development/compilers/opensycl/default.nix b/pkgs/development/compilers/opensycl/default.nix index 995b21330a99..c406d4c9d5c2 100644 --- a/pkgs/development/compilers/opensycl/default.nix +++ b/pkgs/development/compilers/opensycl/default.nix @@ -8,8 +8,9 @@ , libxml2 , libffi , makeWrapper +, config , rocmPackages -, rocmSupport ? false +, rocmSupport ? config.rocmSupport }: let inherit (llvmPackages_15) stdenv; diff --git a/pkgs/development/libraries/science/math/magma/generic.nix b/pkgs/development/libraries/science/math/magma/generic.nix index 27509ee99339..6b8588207dc3 100644 --- a/pkgs/development/libraries/science/math/magma/generic.nix +++ b/pkgs/development/libraries/science/math/magma/generic.nix @@ -24,7 +24,8 @@ , libpthreadstubs , magmaRelease , ninja -, rocmSupport ? false +, config +, rocmSupport ? config.rocmSupport , static ? false , stdenv , symlinkJoin diff --git a/pkgs/development/python-modules/torch/default.nix b/pkgs/development/python-modules/torch/default.nix index 64c8d833a3fe..0789431b47b4 100644 --- a/pkgs/development/python-modules/torch/default.nix +++ b/pkgs/development/python-modules/torch/default.nix @@ -42,8 +42,9 @@ pythonOlder, # ROCm dependencies - rocmSupport ? false, - gpuTargets ? [ ], rocmPackages + rocmSupport ? config.rocmSupport, + rocmPackages, + gpuTargets ? [ ] }: let diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d1d1b060133f..2f544d6cd186 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -14070,7 +14070,6 @@ self: super: with self; { toposort = callPackage ../development/python-modules/toposort { }; torch = callPackage ../development/python-modules/torch { - inherit (pkgs.config) cudaSupport; magma = if pkgs.config.cudaSupport then pkgs.magma-cuda-static