Update to new build.toml format
Browse files- build.toml +8 -8
- flake.lock +78 -27
build.toml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
[general]
|
2 |
name = "activation"
|
|
|
3 |
|
4 |
[torch]
|
5 |
src = [
|
6 |
-
|
7 |
-
|
8 |
]
|
9 |
|
10 |
[kernel.activation]
|
11 |
-
|
12 |
-
|
13 |
src = [
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
]
|
18 |
-
depends = [ "torch" ]
|
|
|
1 |
[general]
|
2 |
name = "activation"
|
3 |
+
universal = false
|
4 |
|
5 |
[torch]
|
6 |
src = [
|
7 |
+
"torch-ext/torch_binding.cpp",
|
8 |
+
"torch-ext/torch_binding.h",
|
9 |
]
|
10 |
|
11 |
[kernel.activation]
|
12 |
+
backend = "cuda"
|
13 |
+
depends = ["torch"]
|
14 |
src = [
|
15 |
+
"activation/activation_kernels.cu",
|
16 |
+
"activation/cuda_compat.h",
|
17 |
+
"activation/dispatch_utils.h",
|
18 |
]
|
|
flake.lock
CHANGED
@@ -1,6 +1,21 @@
|
|
1 |
{
|
2 |
"nodes": {
|
3 |
"flake-compat": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
"locked": {
|
5 |
"lastModified": 1733328505,
|
6 |
"narHash": "sha256-NeCCThCEP3eCl2l/+27kNNK7QrwZB1IJCrXfrbv5oqU=",
|
@@ -33,61 +48,82 @@
|
|
33 |
"type": "github"
|
34 |
}
|
35 |
},
|
36 |
-
"
|
37 |
"inputs": {
|
38 |
-
"
|
39 |
-
"flake-utils": "flake-utils",
|
40 |
-
"nixpkgs": "nixpkgs",
|
41 |
-
"rocm-nix": "rocm-nix"
|
42 |
},
|
43 |
"locked": {
|
44 |
-
"lastModified":
|
45 |
-
"narHash": "sha256
|
46 |
-
"owner": "
|
47 |
-
"repo": "
|
48 |
-
"rev": "
|
49 |
"type": "github"
|
50 |
},
|
51 |
"original": {
|
52 |
-
"owner": "
|
53 |
-
"repo": "
|
54 |
"type": "github"
|
55 |
}
|
56 |
},
|
57 |
-
"
|
|
|
|
|
|
|
|
|
|
|
58 |
"locked": {
|
59 |
-
"lastModified":
|
60 |
-
"narHash": "sha256-
|
61 |
-
"owner": "
|
62 |
-
"repo": "
|
63 |
-
"rev": "
|
64 |
"type": "github"
|
65 |
},
|
66 |
"original": {
|
67 |
-
"owner": "
|
68 |
-
"
|
69 |
-
"repo": "nixpkgs",
|
70 |
"type": "github"
|
71 |
}
|
72 |
},
|
73 |
-
"
|
74 |
"inputs": {
|
|
|
|
|
|
|
75 |
"nixpkgs": [
|
76 |
"kernel-builder",
|
|
|
77 |
"nixpkgs"
|
78 |
]
|
79 |
},
|
80 |
"locked": {
|
81 |
-
"lastModified":
|
82 |
-
"narHash": "sha256-
|
83 |
"owner": "huggingface",
|
84 |
-
"repo": "
|
85 |
-
"rev": "
|
86 |
"type": "github"
|
87 |
},
|
88 |
"original": {
|
89 |
"owner": "huggingface",
|
90 |
-
"repo": "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
"type": "github"
|
92 |
}
|
93 |
},
|
@@ -110,6 +146,21 @@
|
|
110 |
"repo": "default",
|
111 |
"type": "github"
|
112 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
}
|
114 |
},
|
115 |
"root": "root",
|
|
|
1 |
{
|
2 |
"nodes": {
|
3 |
"flake-compat": {
|
4 |
+
"locked": {
|
5 |
+
"lastModified": 1747046372,
|
6 |
+
"narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=",
|
7 |
+
"owner": "edolstra",
|
8 |
+
"repo": "flake-compat",
|
9 |
+
"rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885",
|
10 |
+
"type": "github"
|
11 |
+
},
|
12 |
+
"original": {
|
13 |
+
"owner": "edolstra",
|
14 |
+
"repo": "flake-compat",
|
15 |
+
"type": "github"
|
16 |
+
}
|
17 |
+
},
|
18 |
+
"flake-compat_2": {
|
19 |
"locked": {
|
20 |
"lastModified": 1733328505,
|
21 |
"narHash": "sha256-NeCCThCEP3eCl2l/+27kNNK7QrwZB1IJCrXfrbv5oqU=",
|
|
|
48 |
"type": "github"
|
49 |
}
|
50 |
},
|
51 |
+
"flake-utils_2": {
|
52 |
"inputs": {
|
53 |
+
"systems": "systems_2"
|
|
|
|
|
|
|
54 |
},
|
55 |
"locked": {
|
56 |
+
"lastModified": 1731533236,
|
57 |
+
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
58 |
+
"owner": "numtide",
|
59 |
+
"repo": "flake-utils",
|
60 |
+
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
61 |
"type": "github"
|
62 |
},
|
63 |
"original": {
|
64 |
+
"owner": "numtide",
|
65 |
+
"repo": "flake-utils",
|
66 |
"type": "github"
|
67 |
}
|
68 |
},
|
69 |
+
"hf-nix": {
|
70 |
+
"inputs": {
|
71 |
+
"flake-compat": "flake-compat_2",
|
72 |
+
"flake-utils": "flake-utils_2",
|
73 |
+
"nixpkgs": "nixpkgs"
|
74 |
+
},
|
75 |
"locked": {
|
76 |
+
"lastModified": 1747919133,
|
77 |
+
"narHash": "sha256-VvF1naQOvv7yulQ5/cDiaxkNxlh1Y84QMZnderv1szk=",
|
78 |
+
"owner": "huggingface",
|
79 |
+
"repo": "hf-nix",
|
80 |
+
"rev": "9c71e026d6c7c8588ef85a5f7c77f57d598e038c",
|
81 |
"type": "github"
|
82 |
},
|
83 |
"original": {
|
84 |
+
"owner": "huggingface",
|
85 |
+
"repo": "hf-nix",
|
|
|
86 |
"type": "github"
|
87 |
}
|
88 |
},
|
89 |
+
"kernel-builder": {
|
90 |
"inputs": {
|
91 |
+
"flake-compat": "flake-compat",
|
92 |
+
"flake-utils": "flake-utils",
|
93 |
+
"hf-nix": "hf-nix",
|
94 |
"nixpkgs": [
|
95 |
"kernel-builder",
|
96 |
+
"hf-nix",
|
97 |
"nixpkgs"
|
98 |
]
|
99 |
},
|
100 |
"locked": {
|
101 |
+
"lastModified": 1748620233,
|
102 |
+
"narHash": "sha256-VULm9HgGXvo3pyfsPy3SOhoqgkuqbGSaSemvzNUbdIU=",
|
103 |
"owner": "huggingface",
|
104 |
+
"repo": "kernel-builder",
|
105 |
+
"rev": "da3340e5b3cbb6086600420f4814b033395788d1",
|
106 |
"type": "github"
|
107 |
},
|
108 |
"original": {
|
109 |
"owner": "huggingface",
|
110 |
+
"repo": "kernel-builder",
|
111 |
+
"type": "github"
|
112 |
+
}
|
113 |
+
},
|
114 |
+
"nixpkgs": {
|
115 |
+
"locked": {
|
116 |
+
"lastModified": 1747820358,
|
117 |
+
"narHash": "sha256-fTqsZsUX6M3yeEvgyQvXcbGmT2CaRVyVwsi8eK29Oj4=",
|
118 |
+
"owner": "danieldk",
|
119 |
+
"repo": "nixpkgs",
|
120 |
+
"rev": "d3c1681180717528068082103bf323147de6ab0b",
|
121 |
+
"type": "github"
|
122 |
+
},
|
123 |
+
"original": {
|
124 |
+
"owner": "danieldk",
|
125 |
+
"ref": "cudatoolkit-12.9-kernel-builder",
|
126 |
+
"repo": "nixpkgs",
|
127 |
"type": "github"
|
128 |
}
|
129 |
},
|
|
|
146 |
"repo": "default",
|
147 |
"type": "github"
|
148 |
}
|
149 |
+
},
|
150 |
+
"systems_2": {
|
151 |
+
"locked": {
|
152 |
+
"lastModified": 1681028828,
|
153 |
+
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
154 |
+
"owner": "nix-systems",
|
155 |
+
"repo": "default",
|
156 |
+
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
157 |
+
"type": "github"
|
158 |
+
},
|
159 |
+
"original": {
|
160 |
+
"owner": "nix-systems",
|
161 |
+
"repo": "default",
|
162 |
+
"type": "github"
|
163 |
+
}
|
164 |
}
|
165 |
},
|
166 |
"root": "root",
|