Skip to content

Commit eec8903

Browse files
committed
cudaPackages_11_0.cudnn-frontend: mark unsupported, prevent eval error
With #404686 we add packages/ unconditionally
1 parent ab39a0f commit eec8903

File tree

1 file changed

+7
-9
lines changed
  • pkgs/development/cuda-modules/packages/cudnn-frontend

1 file changed

+7
-9
lines changed

pkgs/development/cuda-modules/packages/cudnn-frontend/package.nix

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,18 @@
22
autoAddDriverRunpath,
33
catch2_3,
44
cmake,
5-
cudaPackages,
65
fetchFromGitHub,
76
gitUpdater,
87
lib,
98
ninja,
109
nlohmann_json,
1110
stdenv,
11+
cuda_cccl ? null,
12+
cuda_cudart ? null,
13+
cuda_nvcc ? null,
14+
cuda_nvrtc ? null,
15+
cudnn ? null,
16+
libcublas ? null,
1217
}:
1318
let
1419
inherit (lib.lists) optionals;
@@ -17,14 +22,6 @@ let
1722
cmakeFeature
1823
optionalString
1924
;
20-
inherit (cudaPackages)
21-
cuda_cccl
22-
cuda_cudart
23-
cuda_nvcc
24-
cuda_nvrtc
25-
cudnn
26-
libcublas
27-
;
2825
in
2926

3027
# TODO(@connorbaker): This should be a hybrid C++/Python package.
@@ -125,6 +122,7 @@ stdenv.mkDerivation (finalAttrs: {
125122
description = "A c++ wrapper for the cudnn backend API";
126123
homepage = "https://github.com/NVIDIA/cudnn-frontend";
127124
license = lib.licenses.mit;
125+
badPlatforms = optionals (cudnn == null) finalAttrs.meta.platforms;
128126
platforms = [
129127
"aarch64-linux"
130128
"x86_64-linux"

0 commit comments

Comments
 (0)