danieldk HF Staff commited on
Commit
86272b3
·
1 Parent(s): d203fdb

Add the Torch versions to build for and note.

Browse files
Files changed (2) hide show
  1. flake.lock +3 -3
  2. flake.nix +34 -0
flake.lock CHANGED
@@ -98,11 +98,11 @@
98
  ]
99
  },
100
  "locked": {
101
- "lastModified": 1750860635,
102
- "narHash": "sha256-Wzz7UQRuzSAQCvmPclYN/xmAqpMR19QDgmsCzknAzeo=",
103
  "owner": "huggingface",
104
  "repo": "kernel-builder",
105
- "rev": "7e2d7303d9f2d49d470bddcbb8379fffeee38dcf",
106
  "type": "github"
107
  },
108
  "original": {
 
98
  ]
99
  },
100
  "locked": {
101
+ "lastModified": 1751014803,
102
+ "narHash": "sha256-9Xfq2k3uPfB602NwQF+zAY2GQZiKUN1G7Q6XiDCUR8Y=",
103
  "owner": "huggingface",
104
  "repo": "kernel-builder",
105
+ "rev": "bbc4e712ff2046e217818e97de2201e2b996756e",
106
  "type": "github"
107
  },
108
  "original": {
flake.nix CHANGED
@@ -13,5 +13,39 @@
13
  kernel-builder.lib.genFlakeOutputs {
14
  path = ./.;
15
  rev = self.shortRev or self.dirtyShortRev or self.lastModifiedDate;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  };
17
  }
 
13
  kernel-builder.lib.genFlakeOutputs {
14
  path = ./.;
15
  rev = self.shortRev or self.dirtyShortRev or self.lastModifiedDate;
16
+ # Building with CDUA later than 12.4 fails with:
17
+ #
18
+ # error: 'ptxas' died due to signal 11 (Invalid memory reference)
19
+ #
20
+ # So, build for 12.4 only and copy to all the other build variants
21
+ # by hand (which works fine thanks to backward compat).
22
+ #
23
+ # Still need to check if upstream FA3 has the same issue.
24
+ torchVersions = [
25
+ {
26
+ torchVersion = "2.6";
27
+ cudaVersion = "12.4";
28
+ cxx11Abi = false;
29
+ systems = [ "x86_64-linux" ];
30
+ upstreamVariant = true;
31
+ }
32
+ {
33
+ torchVersion = "2.6";
34
+ cudaVersion = "12.4";
35
+ cxx11Abi = true;
36
+ systems = [ "x86_64-linux" ];
37
+ upstreamVariant = true;
38
+ }
39
+ {
40
+ torchVersion = "2.7";
41
+ cudaVersion = "12.4";
42
+ cxx11Abi = true;
43
+ systems = [
44
+ "x86_64-linux"
45
+ "aarch64-linux"
46
+ ];
47
+ upstreamVariant = true;
48
+ }
49
+ ];
50
  };
51
  }