diff options
author | Madoura <madouura@gmail.com> | 2023-11-12 04:09:46 -0600 |
---|---|---|
committer | Madoura <madouura@gmail.com> | 2023-11-13 22:04:49 -0600 |
commit | c8f136c236830e3abd0b1ee1ba9e0330f802d9bd (patch) | |
tree | d67d9ccb5749fbceb6e1a004f1db7a667854f4b3 /pkgs/development/python-modules/torch | |
parent | c1eb661271bf5c3e0baa7b32ebd9d455883d95d0 (diff) |
python3Packages.torch: Suppress spammy warnings
Suppresses the most spammy warnings. This is mainly to fix https://github.com/NixOS/nixpkgs/issues/266895.
Diffstat (limited to 'pkgs/development/python-modules/torch')
-rw-r--r-- | pkgs/development/python-modules/torch/default.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/torch/default.nix b/pkgs/development/python-modules/torch/default.nix index e31b6306bb191..c5d591c3f27a1 100644 --- a/pkgs/development/python-modules/torch/default.nix +++ b/pkgs/development/python-modules/torch/default.nix @@ -290,6 +290,24 @@ in buildPythonPackage rec { # error: cast from ... to ... converts to incompatible function type [-Werror,-Wcast-function-type-strict] ++ lib.optionals (stdenv.cc.isClang && lib.versionAtLeast stdenv.cc.version "16") [ "-Wno-error=cast-function-type-strict" + # Suppresses the most spammy warnings. + # This is mainly to fix https://github.com/NixOS/nixpkgs/issues/266895. + ] ++ lib.optionals rocmSupport [ + "-Wno-#warnings" + "-Wno-cpp" + "-Wno-unknown-warning-option" + "-Wno-ignored-attributes" + "-Wno-deprecated-declarations" + "-Wno-defaulted-function-deleted" + "-Wno-pass-failed" + ] ++ [ + "-Wno-unused-command-line-argument" + "-Wno-maybe-uninitialized" + "-Wno-uninitialized" + "-Wno-array-bounds" + "-Wno-stringop-overflow" + "-Wno-free-nonheap-object" + "-Wno-unused-result" ])); nativeBuildInputs = [ |