Compare commits
1899 Commits
refactor-s
...
v0.22.1
Author | SHA1 | Date | |
---|---|---|---|
![]() |
d66dce2d66 | ||
![]() |
ef2aa2f5f5 | ||
![]() |
41f5f6eaab | ||
![]() |
cba347e0b7 | ||
![]() |
a3cef0f02e | ||
![]() |
45fca040c3 | ||
![]() |
eb2b5739b2 | ||
![]() |
d299e17d43 | ||
![]() |
d883883be0 | ||
![]() |
249dcb49e2 | ||
![]() |
8628add66b | ||
![]() |
aeccba8bc0 | ||
![]() |
d94e8ab36f | ||
![]() |
e66c26871f | ||
![]() |
2db4ff7061 | ||
![]() |
c248932a94 | ||
![]() |
f15d302fc7 | ||
![]() |
74ef630241 | ||
![]() |
a70ea11e69 | ||
![]() |
a79b1bd9af | ||
![]() |
ac5d5485b9 | ||
![]() |
04258f9cce | ||
![]() |
1b14170bd1 | ||
![]() |
a3bc9dbfe8 | ||
![]() |
e7c86259bd | ||
![]() |
2605aeb072 | ||
![]() |
94536d2b66 | ||
![]() |
5e580fc82e | ||
![]() |
195bad8675 | ||
![]() |
bd9f3f100a | ||
![]() |
b5962613a0 | ||
![]() |
cbcfc7e10a | ||
![]() |
579fadacd0 | ||
![]() |
b86d08b022 | ||
![]() |
02d62cf40f | ||
![]() |
97369776f0 | ||
![]() |
47af0159dc | ||
![]() |
db6ead6fc1 | ||
![]() |
b4aa2c3cab | ||
![]() |
4108de1ce4 | ||
![]() |
5fe93fee1e | ||
![]() |
8207f11333 | ||
![]() |
5bb5d2696f | ||
![]() |
55f37dffe5 | ||
![]() |
252a5bd71b | ||
![]() |
f55224f161 | ||
![]() |
189ae4b06e | ||
![]() |
5e9c702fa7 | ||
![]() |
965bb4d3c0 | ||
![]() |
354f98c94a | ||
![]() |
5dce480154 | ||
![]() |
f634d48b7c | ||
![]() |
4daee565ae | ||
![]() |
8e4dbdc2d7 | ||
![]() |
4f6adc03cd | ||
![]() |
f7afd67a26 | ||
![]() |
d22bdc1c4e | ||
![]() |
540f9eefb7 | ||
![]() |
2db5bca778 | ||
![]() |
bcd05407b8 | ||
![]() |
b35ec605fe | ||
![]() |
0a353abc42 | ||
![]() |
e178c58847 | ||
![]() |
d7297e67a5 | ||
![]() |
ee8addf04a | ||
![]() |
fd3cd3a1c6 | ||
![]() |
e585aeb883 | ||
![]() |
1f43384db4 | ||
![]() |
814b328fca | ||
![]() |
125206d44d | ||
![]() |
a081b875b4 | ||
![]() |
a16ee3348b | ||
![]() |
d654d6b1f4 | ||
![]() |
9b4ca0be40 | ||
![]() |
dc71dcfdc2 | ||
![]() |
1f31c3374c | ||
![]() |
27aeb6e293 | ||
![]() |
715214c1a1 | ||
![]() |
b471d62dbd | ||
![]() |
a5f62889ca | ||
![]() |
2a942d98e3 | ||
![]() |
4a4077d4ef | ||
![]() |
c0fcccc232 | ||
![]() |
0b2cbfefce | ||
![]() |
c499514322 | ||
![]() |
ae392b5935 | ||
![]() |
62e9bb5d51 | ||
![]() |
6cd948184e | ||
![]() |
44ff24f558 | ||
![]() |
c657dfb768 | ||
![]() |
f2e410d95a | ||
![]() |
df443a38d6 | ||
![]() |
74fe498cb8 | ||
![]() |
5f13a48bf2 | ||
![]() |
c4824f7fd2 | ||
![]() |
49a8634584 | ||
![]() |
eac5ea869f | ||
![]() |
f5946c4621 | ||
![]() |
8564ab19c3 | ||
![]() |
aae7a22d39 | ||
![]() |
09cea230b4 | ||
![]() |
a1f34ec58b | ||
![]() |
4d7cd4c0bf | ||
![]() |
4adbfa3835 | ||
![]() |
8a1b69c1d3 | ||
![]() |
a1d69f8661 | ||
![]() |
e05dbc529e | ||
![]() |
99d33bf1f2 | ||
![]() |
bd1918cd71 | ||
![]() |
2a967c7df4 | ||
![]() |
7596aac958 | ||
![]() |
c73ded8ed6 | ||
![]() |
df1d783035 | ||
![]() |
47051c3690 | ||
![]() |
3fd83c637d | ||
![]() |
ef5afb66da | ||
![]() |
ecc4336bf9 | ||
![]() |
d2ed217796 | ||
![]() |
272c7c069a | ||
![]() |
23f16041cd | ||
![]() |
e2329adac0 | ||
![]() |
4ec788ca12 | ||
![]() |
c1cea9d304 | ||
![]() |
5c96e67bb1 | ||
![]() |
7008bb6335 | ||
![]() |
14561fafff | ||
![]() |
89bf1edb6e | ||
![]() |
cc85dc05b7 | ||
![]() |
ae171f8b83 | ||
![]() |
578dd18b34 | ||
![]() |
a7a51ee5cf | ||
![]() |
960cc90667 | ||
![]() |
dea44bad8b | ||
![]() |
e37870ff43 | ||
![]() |
3751642a27 | ||
![]() |
0f386697c6 | ||
![]() |
67ce103b2c | ||
![]() |
a8c9fa0e45 | ||
![]() |
b56a133fce | ||
![]() |
f0b3d33145 | ||
![]() |
32564da9d0 | ||
![]() |
8f2faf65dc | ||
![]() |
1d59637051 | ||
![]() |
97dc353cb0 | ||
![]() |
beebe2c9d3 | ||
![]() |
2eb7add8c4 | ||
![]() |
a9fea9f611 | ||
![]() |
9b62a9c238 | ||
![]() |
f7eb0ccfc9 | ||
![]() |
a0aa35667c | ||
![]() |
b1d4fd14bc | ||
![]() |
7e8415a3a6 | ||
![]() |
7f4f42894d | ||
![]() |
4e876b4014 | ||
![]() |
77a8a4fe08 | ||
![]() |
597e5a4e5e | ||
![]() |
3c31c32f62 | ||
![]() |
3a93a716e4 | ||
![]() |
82229a0784 | ||
![]() |
5d846a69d1 | ||
![]() |
d21aa1cc12 | ||
![]() |
7896ff51f6 | ||
![]() |
5849a24a74 | ||
![]() |
38c49d6b82 | ||
![]() |
0d8900986d | ||
![]() |
62554cebc4 | ||
![]() |
067155cff5 | ||
![]() |
08e68d779f | ||
![]() |
05b04cd4c3 | ||
![]() |
be48f762a9 | ||
![]() |
de5b4840e9 | ||
![]() |
20f9884445 | ||
![]() |
deb78bcd93 | ||
![]() |
06239de0e9 | ||
![]() |
1f904c38b3 | ||
![]() |
f2d0ba8fcc | ||
![]() |
49d3eb1723 | ||
![]() |
7c5439f48a | ||
![]() |
7f2cedd31f | ||
![]() |
d47951a1e3 | ||
![]() |
f2bd0c5cf1 | ||
![]() |
4362382223 | ||
![]() |
ba4859b33d | ||
![]() |
e8472714ef | ||
![]() |
ee6960e53e | ||
![]() |
dad266c955 | ||
![]() |
7a234ce00a | ||
![]() |
a0c2ed97c8 | ||
![]() |
a3aa5b59cd | ||
![]() |
f7dbb59d13 | ||
![]() |
0df27bc0f7 | ||
![]() |
877e09dcc1 | ||
![]() |
c4439e86a2 | ||
![]() |
aa00dcac96 | ||
![]() |
4c9a946b3b | ||
![]() |
0c6e6ad226 | ||
![]() |
bf8f32443f | ||
![]() |
c2eef8bab2 | ||
![]() |
2df4b307d7 | ||
![]() |
3c57440c10 | ||
![]() |
3e6e9829da | ||
![]() |
859745f1a9 | ||
![]() |
ddabb8b12c | ||
![]() |
16bba32124 | ||
![]() |
7d87369ead | ||
![]() |
7723bd28ed | ||
![]() |
43f3a35150 | ||
![]() |
ae9f2d4d40 | ||
![]() |
5a3814ff15 | ||
![]() |
946c539dbd | ||
![]() |
0037462f9e | ||
![]() |
e5edac4d0c | ||
![]() |
3e1474dbbb | ||
![]() |
0f502bb6c3 | ||
![]() |
1eecbd3208 | ||
![]() |
6e92b9180c | ||
![]() |
ac9012da0c | ||
![]() |
e3cb4f09f0 | ||
![]() |
2e8600bb71 | ||
![]() |
d946c37cbb | ||
![]() |
47a9f0bdf7 | ||
![]() |
2bf900a893 | ||
![]() |
99bba0b1ce | ||
![]() |
a8506f9022 | ||
![]() |
4a40a76291 | ||
![]() |
fe9ddf22fc | ||
![]() |
1cae1299eb | ||
![]() |
8b106416c0 | ||
![]() |
e2088b599e | ||
![]() |
56446685ca | ||
![]() |
47a8d875c8 | ||
![]() |
56b2d250c1 | ||
![]() |
abbd09b4b2 | ||
![]() |
9e5fdc6614 | ||
![]() |
1224a3e8cf | ||
![]() |
6c3218920f | ||
![]() |
02cc3ea005 | ||
![]() |
641ab95a31 | ||
![]() |
e8b76c27e4 | ||
![]() |
0dbe4d54b6 | ||
![]() |
1eb6977049 | ||
![]() |
3f1cfdb7d7 | ||
![]() |
d438d7993d | ||
![]() |
aa0825d642 | ||
![]() |
978c20f35a | ||
![]() |
d535124500 | ||
![]() |
01f61a2eba | ||
![]() |
7d5e27d5e8 | ||
![]() |
d210425eef | ||
![]() |
6be07da201 | ||
![]() |
02b38716bf | ||
![]() |
d7bc624c61 | ||
![]() |
b7cecc9726 | ||
![]() |
393a2f562b | ||
![]() |
682fcec0b2 | ||
![]() |
d6baae525f | ||
![]() |
e1f2612581 | ||
![]() |
080fc875eb | ||
![]() |
69f417b26a | ||
![]() |
80b5106611 | ||
![]() |
34146c197a | ||
![]() |
209a3bf302 | ||
![]() |
e8c41cdbcb | ||
![]() |
a450dd31fa | ||
![]() |
7c1a309453 | ||
![]() |
78b6fa96e5 | ||
![]() |
1b315a9ede | ||
![]() |
82df0e549d | ||
![]() |
f5591f9068 | ||
![]() |
98c08d277d | ||
![]() |
facca4e2c8 | ||
![]() |
764029bcd1 | ||
![]() |
44cb4eca93 | ||
![]() |
39888d4df6 | ||
![]() |
f68ea49e54 | ||
![]() |
78b5e4cdfa | ||
![]() |
26515b8871 | ||
![]() |
74640987c7 | ||
![]() |
d6154645c7 | ||
![]() |
faed43704b | ||
![]() |
6fba31ce34 | ||
![]() |
112cead00b | ||
![]() |
9e2558bd56 | ||
![]() |
019058226f | ||
![]() |
ac0040f67d | ||
![]() |
38f341f12d | ||
![]() |
26ad22743f | ||
![]() |
46c2b8a565 | ||
![]() |
5cbb59f2b8 | ||
![]() |
f29fa1cfdf | ||
![]() |
c69951d6e1 | ||
![]() |
f406f27d9c | ||
![]() |
36ea208e12 | ||
![]() |
17e0774189 | ||
![]() |
3162c2459d | ||
![]() |
7cad6c62a3 | ||
![]() |
eb2ddf6fa2 | ||
![]() |
2bc2902fed | ||
![]() |
b362362291 | ||
![]() |
32bb5c7523 | ||
![]() |
a2b76c68a0 | ||
![]() |
62132919e1 | ||
![]() |
b06929f6df | ||
![]() |
0f33de157b | ||
![]() |
03a074ebe7 | ||
![]() |
4d12b6a4fd | ||
![]() |
26bb15e1fb | ||
![]() |
1bf92c7881 | ||
![]() |
eefe0b2eec | ||
![]() |
de6c6f0cd9 | ||
![]() |
309d3aa1ec | ||
![]() |
feff11f914 | ||
![]() |
de3b324983 | ||
![]() |
747cd374df | ||
![]() |
8b3ac40436 | ||
![]() |
28e9be443c | ||
![]() |
1381bede80 | ||
![]() |
6502785908 | ||
![]() |
53257408a3 | ||
![]() |
28d02dff60 | ||
![]() |
9d60b42a97 | ||
![]() |
9ff5a30574 | ||
![]() |
9a6c013365 | ||
![]() |
9f62a3e819 | ||
![]() |
e380e9a0ab | ||
![]() |
8415ea9ada | ||
![]() |
6960766e0c | ||
![]() |
0c2ca8c841 | ||
![]() |
273960fdbb | ||
![]() |
0cd2a1102c | ||
![]() |
e40676e901 | ||
![]() |
4ddb07e94f | ||
![]() |
50585d55c5 | ||
![]() |
5d6b5f3f6f | ||
![]() |
2351c19489 | ||
![]() |
08d49361f0 | ||
![]() |
c3c63e5ca4 | ||
![]() |
e72d4075bd | ||
![]() |
f9f97bf22b | ||
![]() |
8033455d5f | ||
![]() |
50a5a6fea4 | ||
![]() |
0de8a0e3f3 | ||
![]() |
0a26e74cc8 | ||
![]() |
9dfd91efbb | ||
![]() |
1a7baadbff | ||
![]() |
afcfd56ae5 | ||
![]() |
7eb2e704b6 | ||
![]() |
564b4fa263 | ||
![]() |
0a941b43ca | ||
![]() |
35ff24ddea | ||
![]() |
7019e4e3cb | ||
![]() |
cb16b8a047 | ||
![]() |
381acb3726 | ||
![]() |
d87ea0b256 | ||
![]() |
1a757e7f70 | ||
![]() |
704e2c53a8 | ||
![]() |
478d8a668c | ||
![]() |
7903f9fcfd | ||
![]() |
670d3d3fdc | ||
![]() |
e8aab6b31c | ||
![]() |
1ce408ecc5 | ||
![]() |
dc81a2dcdb | ||
![]() |
b10f51f020 | ||
![]() |
4f4e3f5607 | ||
![]() |
00fb80e766 | ||
![]() |
057603cad8 | ||
![]() |
5b8b6e492d | ||
![]() |
763279cd61 | ||
![]() |
e4237b9153 | ||
![]() |
d288658cf0 | ||
![]() |
2c22ae0576 | ||
![]() |
fc3fc94689 | ||
![]() |
b5013c1372 | ||
![]() |
e220674c4d | ||
![]() |
7f13518225 | ||
![]() |
96a13a97e6 | ||
![]() |
6d244b3f67 | ||
![]() |
6bc66db141 | ||
![]() |
acfb2b9270 | ||
![]() |
d92a2c31fb | ||
![]() |
e32561aff6 | ||
![]() |
4b0479159f | ||
![]() |
03bfd36926 | ||
![]() |
4d30c8dce4 | ||
![]() |
49d4104f22 | ||
![]() |
07fb83b493 | ||
![]() |
263007ba81 | ||
![]() |
3b6e99381f | ||
![]() |
a30af1ac54 | ||
![]() |
294742ab7b | ||
![]() |
6391559fb6 | ||
![]() |
d4d4f813a9 | ||
![]() |
4667163dc4 | ||
![]() |
439f105285 | ||
![]() |
f65b1fd7b6 | ||
![]() |
d23e06c27e | ||
![]() |
b76e9a887b | ||
![]() |
55ffd439ce | ||
![]() |
d8a7b88e7b | ||
![]() |
aaa1bb1d98 | ||
![]() |
0d94b8044b | ||
![]() |
5a52780f7c | ||
![]() |
dd0a8452ee | ||
![]() |
c467bba73e | ||
![]() |
d680a0cb99 | ||
![]() |
efadee26ef | ||
![]() |
2077b3a006 | ||
![]() |
8e0c659b51 | ||
![]() |
863ab5a597 | ||
![]() |
db4e76ab27 | ||
![]() |
6728a46a84 | ||
![]() |
5a09459dd5 | ||
![]() |
7e14ff806a | ||
![]() |
7e88cf795c | ||
![]() |
1536e3d422 | ||
![]() |
1fe8e63481 | ||
![]() |
dfca2c285e | ||
![]() |
2686f778fa | ||
![]() |
925e9c73b1 | ||
![]() |
aba447e885 | ||
![]() |
1113de0dad | ||
![]() |
4110225166 | ||
![]() |
24c839c837 | ||
![]() |
42c6a6b189 | ||
![]() |
b0ea1c6f24 | ||
![]() |
735102eb2b | ||
![]() |
2e3cdb349b | ||
![]() |
05c8030119 | ||
![]() |
bbcd4224fa | ||
![]() |
4c0cdb99b3 | ||
![]() |
f22d009c6d | ||
![]() |
c5a3e36ad0 | ||
![]() |
1c76ba1c3e | ||
![]() |
b969f739bd | ||
![]() |
4788c4774c | ||
![]() |
34de028dbc | ||
![]() |
a69254fd79 | ||
![]() |
af5f205759 | ||
![]() |
77f9100a59 | ||
![]() |
386bb71392 | ||
![]() |
0676d6457f | ||
![]() |
0b80e36867 | ||
![]() |
4c9816f10c | ||
![]() |
fb6741cf85 | ||
![]() |
3f2fa256fc | ||
![]() |
d5c8864942 | ||
![]() |
b3cef1072d | ||
![]() |
e8ae9a403c | ||
![]() |
1a8ef161c8 | ||
![]() |
d3913938bc | ||
![]() |
4179880fe6 | ||
![]() |
125dd0368e | ||
![]() |
fd68f8916c | ||
![]() |
93e6f5fa4e | ||
![]() |
54acda3f11 | ||
![]() |
663e20fcc4 | ||
![]() |
6428132ebb | ||
![]() |
171958cf09 | ||
![]() |
0d0f7ab030 | ||
![]() |
35f8b43a54 | ||
![]() |
6f7eb3750c | ||
![]() |
2121eb31ba | ||
![]() |
c68d739825 | ||
![]() |
c468697b35 | ||
![]() |
c4094cf051 | ||
![]() |
9ff9ca61e6 | ||
![]() |
826e0c0405 | ||
![]() |
1b86a842ea | ||
![]() |
558a28bf52 | ||
![]() |
411576e1fa | ||
![]() |
cab4f92960 | ||
![]() |
c6c13f6782 | ||
![]() |
cf11fab5ad | ||
![]() |
1d8b35c840 | ||
![]() |
5dc46a976d | ||
![]() |
05f5596cdd | ||
![]() |
6942c7f35b | ||
![]() |
18f0ac0f94 | ||
![]() |
d9196ee3f8 | ||
![]() |
ef0bb6fe6b | ||
![]() |
3fed320013 | ||
![]() |
1aa77e695d | ||
![]() |
3a0efeecf1 | ||
![]() |
5ffb5657c9 | ||
![]() |
2b3e7fd10a | ||
![]() |
cb315e18f0 | ||
![]() |
10c637aca0 | ||
![]() |
fb4e1cad45 | ||
![]() |
3054b71e2e | ||
![]() |
47163f7435 | ||
![]() |
e322a8382f | ||
![]() |
53fb4795ca | ||
![]() |
4517c7fa9b | ||
![]() |
efaed17f91 | ||
![]() |
2c17cd365d | ||
![]() |
dfe537f688 | ||
![]() |
be0002b460 | ||
![]() |
743ee5f3de | ||
![]() |
b6caf0156f | ||
![]() |
ec00ffc244 | ||
![]() |
f020256b9f | ||
![]() |
04377e39e0 | ||
![]() |
ba2703fea6 | ||
![]() |
92b1c8f763 | ||
![]() |
2b29ecd9b6 | ||
![]() |
5b43bf1b58 | ||
![]() |
37d9770e02 | ||
![]() |
0e016ba6f5 | ||
![]() |
7afa949da1 | ||
![]() |
b81d7d0aac | ||
![]() |
e78484f501 | ||
![]() |
6fd43b4e75 | ||
![]() |
14edb55288 | ||
![]() |
f062f1c5b3 | ||
![]() |
7756c8f4fc | ||
![]() |
69c8a9e4ba | ||
![]() |
47c0736952 | ||
![]() |
8b89287084 | ||
![]() |
8bd6283b52 | ||
![]() |
179e4f3ad1 | ||
![]() |
e97787691b | ||
![]() |
5932ee901c | ||
![]() |
3bdebeba3c | ||
![]() |
d390ee1902 | ||
![]() |
4f9fe6f9bf | ||
![]() |
df6d6d9b5c | ||
![]() |
e57d33b29f | ||
![]() |
85c6d6dbab | ||
![]() |
5f9228746e | ||
![]() |
9f2451ddff | ||
![]() |
a05eb11b7b | ||
![]() |
ae2d0ff1cd | ||
![]() |
7e906ced75 | ||
![]() |
647e89f6bc | ||
![]() |
3239c29fb0 | ||
![]() |
abced0e87d | ||
![]() |
300fc2ee42 | ||
![]() |
13c4258e54 | ||
![]() |
f29cb7f953 | ||
![]() |
826b8f25c5 | ||
![]() |
ebaeea7820 | ||
![]() |
f76eb993aa | ||
![]() |
0b2c370a83 | ||
![]() |
6a9ee480bf | ||
![]() |
cc80d52b62 | ||
![]() |
b9c7d3b89b | ||
![]() |
c1be6a5483 | ||
![]() |
42550208c3 | ||
![]() |
be231face6 | ||
![]() |
89ac747a76 | ||
![]() |
5d8f36d667 | ||
![]() |
6c3fed351f | ||
![]() |
b9cbd15674 | ||
![]() |
b8f633246a | ||
![]() |
a2f3e98ab9 | ||
![]() |
acffe37313 | ||
![]() |
249e5415e8 | ||
![]() |
e2a942d07e | ||
![]() |
32deca2a4c | ||
![]() |
e4c64865f1 | ||
![]() |
1175f37577 | ||
![]() |
faa183331f | ||
![]() |
bbac33871c | ||
![]() |
6d4dd33c46 | ||
![]() |
579bad05a8 | ||
![]() |
27a8eb0f68 | ||
![]() |
4cd993070f | ||
![]() |
4c55c6a268 | ||
![]() |
a4a27fb1e4 | ||
![]() |
66345e7185 | ||
![]() |
8f76f1b0d8 | ||
![]() |
4cab6f3af5 | ||
![]() |
0d4665583b | ||
![]() |
5d0ef9e4f4 | ||
![]() |
e145baf619 | ||
![]() |
6c912b30a2 | ||
![]() |
f4da453f6b | ||
![]() |
7e9caed8c2 | ||
![]() |
69509a6d9a | ||
![]() |
0841050d20 | ||
![]() |
321ffd732b | ||
![]() |
22922323e3 | ||
![]() |
0b5b192c18 | ||
![]() |
1275c57d88 | ||
![]() |
29a39ac6a0 | ||
![]() |
ae9c86a930 | ||
![]() |
83199a981d | ||
![]() |
ed40c3210e | ||
![]() |
be96460ab2 | ||
![]() |
95caf55fe7 | ||
![]() |
960af24270 | ||
![]() |
899bef2aa8 | ||
![]() |
f0f092d9f1 | ||
![]() |
6eaac2270d | ||
![]() |
a9f3f6c007 | ||
![]() |
08a04ebd46 | ||
![]() |
d8e642ecb7 | ||
![]() |
669ed69d8e | ||
![]() |
7ebb21a0da | ||
![]() |
93ffa9ba5d | ||
![]() |
e5fdb90496 | ||
![]() |
303a0b3653 | ||
![]() |
9f07544bde | ||
![]() |
9b046a39a8 | ||
![]() |
0c9a53ba3a | ||
![]() |
1fd4353289 | ||
![]() |
fcb8ed6409 | ||
![]() |
2f11862832 | ||
![]() |
bff11ce8e7 | ||
![]() |
218693431c | ||
![]() |
e036cd9ef6 | ||
![]() |
cd5bef6780 | ||
![]() |
159e9a20d1 | ||
![]() |
99bb288db7 | ||
![]() |
99744a766b | ||
![]() |
ddd8be51a0 | ||
![]() |
bba66b1063 | ||
![]() |
1c3c21d9c7 | ||
![]() |
cbe9b3d01c | ||
![]() |
0abf5ba43c | ||
![]() |
9ab3c1332b | ||
![]() |
b6425da50f | ||
![]() |
937a4dbf69 | ||
![]() |
cd779ee54d | ||
![]() |
7ddcb13325 | ||
![]() |
7666046ce3 | ||
![]() |
8e89e61402 | ||
![]() |
d0dbfaa5d6 | ||
![]() |
26f562b5a7 | ||
![]() |
2967804da1 | ||
![]() |
c3eaf4d6cf | ||
![]() |
397334a4be | ||
![]() |
434836be81 | ||
![]() |
7b9b976f40 | ||
![]() |
4746e8a048 | ||
![]() |
69c684fef9 | ||
![]() |
2314aeb884 | ||
![]() |
d33e10a695 | ||
![]() |
7668a0889a | ||
![]() |
d7a74bde9f | ||
![]() |
fedf8128ae | ||
![]() |
f70af2cc57 | ||
![]() |
50562e6a0e | ||
![]() |
4ac51b2127 | ||
![]() |
81c9e346dc | ||
![]() |
73e16a7881 | ||
![]() |
af8868fa47 | ||
![]() |
cfd4e356f8 | ||
![]() |
fc87dcad4c | ||
![]() |
65472159c7 | ||
![]() |
d1f9d8f06d | ||
![]() |
67ac9c46a8 | ||
![]() |
aa39465188 | ||
![]() |
09810a5e7c | ||
![]() |
446c0f2325 | ||
![]() |
c4ce51c9be | ||
![]() |
1f63a764ac | ||
![]() |
384e198304 | ||
![]() |
2303332415 | ||
![]() |
0eb1957999 | ||
![]() |
de1f9593c6 | ||
![]() |
65fa71c1b4 | ||
![]() |
9802649716 | ||
![]() |
8d9d721f07 | ||
![]() |
ecef72c471 | ||
![]() |
485b6e2170 | ||
![]() |
ba02c6b70f | ||
![]() |
7028669d50 | ||
![]() |
2f0a73f7ef | ||
![]() |
7cb0dbf77a | ||
![]() |
ac8800ffc7 | ||
![]() |
eb11fa7d18 | ||
![]() |
4d8381a775 | ||
![]() |
de5e20fc21 | ||
![]() |
c33af49ed5 | ||
![]() |
3addda6c4d | ||
![]() |
33f6f55d6b | ||
![]() |
41d20d3731 | ||
![]() |
dde8fa5561 | ||
![]() |
588a94bc8c | ||
![]() |
06392f2c01 | ||
![]() |
f16e29559e | ||
![]() |
ea96403157 | ||
![]() |
b659eac453 | ||
![]() |
ab590cc03a | ||
![]() |
1a007a842b | ||
![]() |
9756354998 | ||
![]() |
3984dd750c | ||
![]() |
d5c1e16e43 | ||
![]() |
56ace9a087 | ||
![]() |
6e0bab1706 | ||
![]() |
193386f6ac | ||
![]() |
755131fcdf | ||
![]() |
9a71733adb | ||
![]() |
cd919d51ea | ||
![]() |
12adf66d07 | ||
![]() |
c02f58da8f | ||
![]() |
9662d181a0 | ||
![]() |
282df7aecc | ||
![]() |
b4c0e6f03b | ||
![]() |
4cd8488139 | ||
![]() |
69a052841c | ||
![]() |
a3f39890c2 | ||
![]() |
02d126ce2b | ||
![]() |
339a63370f | ||
![]() |
fef6aed627 | ||
![]() |
3445da807e | ||
![]() |
429c3598af | ||
![]() |
3d8136493a | ||
![]() |
8cd160db85 | ||
![]() |
a7dd756b34 | ||
![]() |
53be280681 | ||
![]() |
5ab10d57be | ||
![]() |
96061d2c00 | ||
![]() |
e78d20dc84 | ||
![]() |
6d2341c109 | ||
![]() |
968ad02473 | ||
![]() |
b93882804f | ||
![]() |
f58ebd4fbb | ||
![]() |
6f7f9528e5 | ||
![]() |
59c7ff8683 | ||
![]() |
4495e0341d | ||
![]() |
ba39924046 | ||
![]() |
751c3fef86 | ||
![]() |
102811adb9 | ||
![]() |
8f56eb620f | ||
![]() |
ec517b40e9 | ||
![]() |
22cb3815fe | ||
![]() |
f549354f78 | ||
![]() |
dc212d0e59 | ||
![]() |
8f14acb139 | ||
![]() |
c38ef72b06 | ||
![]() |
7d67d9ece4 | ||
![]() |
2c30962c74 | ||
![]() |
cc28334049 | ||
![]() |
dbdf5bacc4 | ||
![]() |
531f01f0b9 | ||
![]() |
794593b478 | ||
![]() |
afcf0d2e39 | ||
![]() |
29ee861366 | ||
![]() |
b1a984ef02 | ||
![]() |
cc545d8c9a | ||
![]() |
49ff816fb0 | ||
![]() |
8c33841567 | ||
![]() |
21b50fbbe3 | ||
![]() |
2a8e503a04 | ||
![]() |
4b695d4722 | ||
![]() |
2fa816184e | ||
![]() |
25f622e809 | ||
![]() |
7506acabe7 | ||
![]() |
3a828358cb | ||
![]() |
94a1d1414a | ||
![]() |
0f080b38f4 | ||
![]() |
f1ec4859c8 | ||
![]() |
63baba0308 | ||
![]() |
aeec861544 | ||
![]() |
e54d4678f9 | ||
![]() |
187b8adb4f | ||
![]() |
d6fd96f024 | ||
![]() |
e3b6d2c3c7 | ||
![]() |
1e9c46296c | ||
![]() |
48183b37be | ||
![]() |
9a3d248348 | ||
![]() |
03e22adb5b | ||
![]() |
5f5fc78236 | ||
![]() |
e12a8a69c7 | ||
![]() |
001af62585 | ||
![]() |
f5e89df6f2 | ||
![]() |
ce75adada6 | ||
![]() |
24d37df1a2 | ||
![]() |
a9d294c532 | ||
![]() |
9dcaa56db4 | ||
![]() |
98162aa2e1 | ||
![]() |
3934df622c | ||
![]() |
dbf5d79557 | ||
![]() |
97e29e501d | ||
![]() |
258c651a8f | ||
![]() |
43ca6da346 | ||
![]() |
9786bd932b | ||
![]() |
c72619d4db | ||
![]() |
8ecae17c46 | ||
![]() |
1e47ccb83a | ||
![]() |
d6421a69eb | ||
![]() |
000dff2fd4 | ||
![]() |
1e413477dd | ||
![]() |
8955e63a68 | ||
![]() |
bf14b424bb | ||
![]() |
14209a86a6 | ||
![]() |
b7d9900764 | ||
![]() |
bc155e7b90 | ||
![]() |
65f9ba345f | ||
![]() |
ca49bc5652 | ||
![]() |
b84b85a7e0 | ||
![]() |
016cdba16f | ||
![]() |
4806e6549f | ||
![]() |
c14b277150 | ||
![]() |
919025d9f3 | ||
![]() |
52f57c90eb | ||
![]() |
ee1fa3e50c | ||
![]() |
772928241b | ||
![]() |
7440bb4c36 | ||
![]() |
c464866deb | ||
![]() |
799a8a5090 | ||
![]() |
c218ee50e9 | ||
![]() |
8ff7a20320 | ||
![]() |
e3fe6bc0f7 | ||
![]() |
c6fcb1068f | ||
![]() |
54ac3e72ed | ||
![]() |
274fbebc4c | ||
![]() |
d40eb19918 | ||
![]() |
31de670bd2 | ||
![]() |
6c0961549b | ||
![]() |
c090bc5ebe | ||
![]() |
bca4d37d76 | ||
![]() |
9b484d2eea | ||
![]() |
a57b0e1e2d | ||
![]() |
e3cb3b29d9 | ||
![]() |
ac48ecd375 | ||
![]() |
0bb20d34db | ||
![]() |
971fda5c33 | ||
![]() |
dcc4423a9d | ||
![]() |
82c380b563 | ||
![]() |
8bcf6a31ae | ||
![]() |
ddd88e266a | ||
![]() |
08c597d83e | ||
![]() |
bf5340755d | ||
![]() |
f8e70a0c96 | ||
![]() |
7e468aefd5 | ||
![]() |
e685d04f84 | ||
![]() |
9d962f55b0 | ||
![]() |
00d3066b97 | ||
![]() |
5ca0dcecb2 | ||
![]() |
fa8fb7903b | ||
![]() |
f35ff441f2 | ||
![]() |
9ea9ee05c8 | ||
![]() |
24ddc49c1b | ||
![]() |
2f4266161c | ||
![]() |
7bcb0fff7d | ||
![]() |
cd332c6370 | ||
![]() |
6daf9677f3 | ||
![]() |
cb6450977d | ||
![]() |
bf62ac0769 | ||
![]() |
0223fe746b | ||
![]() |
12fba13441 | ||
![]() |
0c44f5a140 | ||
![]() |
f4853790c5 | ||
![]() |
9ed2e396f4 | ||
![]() |
3ee6fc937e | ||
![]() |
c9b6cc9a58 | ||
![]() |
58b394bcec | ||
![]() |
4d89eeca9b | ||
![]() |
bfc71e9dae | ||
![]() |
f061dcda74 | ||
![]() |
cc460894fd | ||
![]() |
5e09660e87 | ||
![]() |
5a8efb3b14 | ||
![]() |
99002027c4 | ||
![]() |
a247879be3 | ||
![]() |
7b46993fed | ||
![]() |
dd59f4ba34 | ||
![]() |
18ab14e659 | ||
![]() |
28eb5e1bf6 | ||
![]() |
c658ddbfa3 | ||
![]() |
12963c894f | ||
![]() |
61fa12508f | ||
![]() |
daf6acef6e | ||
![]() |
d30621e787 | ||
![]() |
dd4b365608 | ||
![]() |
157d47fc5a | ||
![]() |
13daa1b692 | ||
![]() |
f923e650f9 | ||
![]() |
1a1bbb8af2 | ||
![]() |
594fcc3c80 | ||
![]() |
76ec19b26e | ||
![]() |
00baaf868e | ||
![]() |
3b06347f65 | ||
![]() |
5b9e207db2 | ||
![]() |
d6fd9017c4 | ||
![]() |
913d79238e | ||
![]() |
250038fa9b | ||
![]() |
26c553fce7 | ||
![]() |
e24c242fb7 | ||
![]() |
ca14ce2629 | ||
![]() |
44f443946c | ||
![]() |
6e6bc89bda | ||
![]() |
8714ea6652 | ||
![]() |
df92f0a7d4 | ||
![]() |
d24b91157c | ||
![]() |
1a0f77388c | ||
![]() |
34571d4ad6 | ||
![]() |
a574f40732 | ||
![]() |
d4ffe244af | ||
![]() |
e08e66ad89 | ||
![]() |
0543710258 | ||
![]() |
5d994e48d5 | ||
![]() |
d1fa23e9c6 | ||
![]() |
f1db8b7871 | ||
![]() |
c5cca54c27 | ||
![]() |
a9c1648db8 | ||
![]() |
3bd911377e | ||
![]() |
fcb2f7d3aa | ||
![]() |
a8a9e0160a | ||
![]() |
9ca6aaeafd | ||
![]() |
aed5c39312 | ||
![]() |
eb36bb2a8f | ||
![]() |
8dcf860888 | ||
![]() |
a5b7cb6e6f | ||
![]() |
34c0bfefa6 | ||
![]() |
ea5db048f3 | ||
![]() |
e68a17f2c6 | ||
![]() |
4af9ec3d8a | ||
![]() |
eb90e2c894 | ||
![]() |
763f444d63 | ||
![]() |
6614c4322d | ||
![]() |
983422facf | ||
![]() |
d0bdd66238 | ||
![]() |
3a50d32299 | ||
![]() |
50ee3624c0 | ||
![]() |
2840cb54b5 | ||
![]() |
5c482d0d7e | ||
![]() |
f3ad990b55 | ||
![]() |
977603cd96 | ||
![]() |
1f919255fd | ||
![]() |
5140a9b6a3 | ||
![]() |
1732ad0af4 | ||
![]() |
e7510ae292 | ||
![]() |
0c224ba4a7 | ||
![]() |
86b4a867ef | ||
![]() |
6049e5f6eb | ||
![]() |
0339690a59 | ||
![]() |
2bae1b7e00 | ||
![]() |
ae5b605f99 | ||
![]() |
35898d94d2 | ||
![]() |
7e00bd5014 | ||
![]() |
1f3aefb0a3 | ||
![]() |
d4601d0e53 | ||
![]() |
935660e3d5 | ||
![]() |
17bfc41841 | ||
![]() |
49b38e3a78 | ||
![]() |
66f078ff84 | ||
![]() |
304a63507a | ||
![]() |
c7afc0eb5f | ||
![]() |
57cde78c56 | ||
![]() |
b01f6308d5 | ||
![]() |
13709bb7b7 | ||
![]() |
661ae1f230 | ||
![]() |
287e1039f5 | ||
![]() |
015dc4ee2e | ||
![]() |
46165982b1 | ||
![]() |
c9a111946e | ||
![]() |
62160021c1 | ||
![]() |
3290e2c189 | ||
![]() |
2a9fc3452a | ||
![]() |
2ea8a2e6ae | ||
![]() |
fe4a4ddcf9 | ||
![]() |
c45714fd3c | ||
![]() |
523d12d9a8 | ||
![]() |
5340e0184d | ||
![]() |
bca7698138 | ||
![]() |
5c26ce5385 | ||
![]() |
02137dda17 | ||
![]() |
4abac88895 | ||
![]() |
79c2a55e00 | ||
![]() |
71c169293c | ||
![]() |
bcc5ded205 | ||
![]() |
379a5d8fa0 | ||
![]() |
d8c2782949 | ||
![]() |
6dde6ca887 | ||
![]() |
8f8c262fb3 | ||
![]() |
93b8e771b6 | ||
![]() |
48088ee24a | ||
![]() |
c7df258ca6 | ||
![]() |
b8e8fa2dcd | ||
![]() |
8e885f4eb2 | ||
![]() |
116308fa17 | ||
![]() |
5eb4d858cb | ||
![]() |
8dd5f36b68 | ||
![]() |
e3ce3ab266 | ||
![]() |
0618cb98d1 | ||
![]() |
3b4a27ce7b | ||
![]() |
07afbd5619 | ||
![]() |
5d8cd207ec | ||
![]() |
3990589b08 | ||
![]() |
38d821461c | ||
![]() |
80b13a0059 | ||
![]() |
ab101d33be | ||
![]() |
cc742126ef | ||
![]() |
a1f21436a4 | ||
![]() |
95fdc92c1f | ||
![]() |
6680c6b72e | ||
![]() |
74b6bf14b8 | ||
![]() |
7c315fc14b | ||
![]() |
f51c9fc6c3 | ||
![]() |
3e713bb0fa | ||
![]() |
55bbb10984 | ||
![]() |
6e37f873f5 | ||
![]() |
d49cbecf8c | ||
![]() |
fe07645e3b | ||
![]() |
c5b8d5c92a | ||
![]() |
2278816cb3 | ||
![]() |
4bd305b6d3 | ||
![]() |
a26e0ff999 | ||
![]() |
4550fb83c0 | ||
![]() |
5b96c2e89f | ||
![]() |
18c8406091 | ||
![]() |
bccefa14cb | ||
![]() |
20fc5a174a | ||
![]() |
3abcb408d1 | ||
![]() |
a0d97d9294 | ||
![]() |
0979a6a875 | ||
![]() |
98de8e3257 | ||
![]() |
23b299c086 | ||
![]() |
adcd3364c9 | ||
![]() |
a2908fb9f7 | ||
![]() |
f514e72011 | ||
![]() |
b61d964eb8 | ||
![]() |
2066eda3cd | ||
![]() |
d8b186a381 | ||
![]() |
d258aec099 | ||
![]() |
3d1d5f755f | ||
![]() |
90778873d1 | ||
![]() |
1af57e13fb | ||
![]() |
28d25affcc | ||
![]() |
3ebaf33915 | ||
![]() |
e8d981b405 | ||
![]() |
02f222f6a3 | ||
![]() |
8345c6fb85 | ||
![]() |
3f23634c46 | ||
![]() |
d5766431a0 | ||
![]() |
1388bfe47d | ||
![]() |
579dec3b35 | ||
![]() |
9608ed9dbd | ||
![]() |
42b739d6d5 | ||
![]() |
91a0c71ed1 | ||
![]() |
6ee6fbe56b | ||
![]() |
be4eae3fa8 | ||
![]() |
ad70b88d5f | ||
![]() |
c1d230f25f | ||
![]() |
4bc52fc1a3 | ||
![]() |
7d728822f0 | ||
![]() |
e96640d2b9 | ||
![]() |
e196978c7c | ||
![]() |
de3d1e6c66 | ||
![]() |
2d8e0825fe | ||
![]() |
d5c06c4e2c | ||
![]() |
0d92b07dbd | ||
![]() |
6cfcbc0167 | ||
![]() |
f9e9fab2da | ||
![]() |
b3f790c259 | ||
![]() |
b5b5130bed | ||
![]() |
d670a2a5ce | ||
![]() |
0ee3a3c401 | ||
![]() |
ad6dc0d103 | ||
![]() |
6e373b46f8 | ||
![]() |
abe617c4ea | ||
![]() |
a0e80b23b9 | ||
![]() |
4d051eb6ff | ||
![]() |
0d89083cb5 | ||
![]() |
23e586fd85 | ||
![]() |
c2b116175b | ||
![]() |
a1f90620c3 | ||
![]() |
668879141f | ||
![]() |
267defd9d3 | ||
![]() |
603d3f2283 | ||
![]() |
02bfbbe269 | ||
![]() |
44d08d2c24 | ||
![]() |
c6faab10aa | ||
![]() |
baa203f115 | ||
![]() |
575a33846f | ||
![]() |
79df065730 | ||
![]() |
953ee2d0ca | ||
![]() |
6796b581ed | ||
![]() |
f49a5519b7 | ||
![]() |
e07a6f51dc | ||
![]() |
cb73d71cf1 | ||
![]() |
5949fc2c88 | ||
![]() |
fd10cfdebf | ||
![]() |
32506e222d | ||
![]() |
a7d5cc6d68 | ||
![]() |
222241f232 | ||
![]() |
aa1820eb5c | ||
![]() |
16ea5f68ba | ||
![]() |
aeec515b4f | ||
![]() |
6e2ec2950b | ||
![]() |
fe5772898d | ||
![]() |
384ddf8e93 | ||
![]() |
32c2e240f8 | ||
![]() |
b88c4792a7 | ||
![]() |
ac92e94b00 | ||
![]() |
4a01865f7b | ||
![]() |
025165e22e | ||
![]() |
cda9bc3e1d | ||
![]() |
caf21dda42 | ||
![]() |
e1779a2884 | ||
![]() |
f55a018fd9 | ||
![]() |
f5964e1dde | ||
![]() |
23e0fe2e21 | ||
![]() |
44438e6171 | ||
![]() |
af8e000a93 | ||
![]() |
375b82a593 | ||
![]() |
2030e2b089 | ||
![]() |
34aba94148 | ||
![]() |
43c909e19c | ||
![]() |
7c011d304f | ||
![]() |
1546fc7e5f | ||
![]() |
75a134f085 | ||
![]() |
d0c4675a9b | ||
![]() |
0507c3c63d | ||
![]() |
59caa93571 | ||
![]() |
b4b53a9a9f | ||
![]() |
be1cfffa45 | ||
![]() |
75b7109222 | ||
![]() |
c56cf8c0d2 | ||
![]() |
5c3df6e8ca | ||
![]() |
79087d08d9 | ||
![]() |
d31e503e5b | ||
![]() |
55b62c2168 | ||
![]() |
6c3511ee1d | ||
![]() |
d19fa74909 | ||
![]() |
a2ad2d1c9f | ||
![]() |
55863bd680 | ||
![]() |
7d4dcd52d9 | ||
![]() |
5e4e72ddd2 | ||
![]() |
447c48e2fd | ||
![]() |
3be4f4db86 | ||
![]() |
ca97a0fefb | ||
![]() |
59f56327fe | ||
![]() |
e4c871489a | ||
![]() |
c048101d90 | ||
![]() |
e0304bf509 | ||
![]() |
0e2a9fe26a | ||
![]() |
d1e01d5646 | ||
![]() |
7b04910f84 | ||
![]() |
0664a2cdb2 | ||
![]() |
fc38fe1c69 | ||
![]() |
29cb1d0ce0 | ||
![]() |
ce777e3c89 | ||
![]() |
bd44cedd0d | ||
![]() |
316a9a5d11 | ||
![]() |
4a04989bbb | ||
![]() |
2c4b529896 | ||
![]() |
e37c099ddb | ||
![]() |
4d7898a669 | ||
![]() |
91b0528abf | ||
![]() |
8ee3073350 | ||
![]() |
cb3c014a43 | ||
![]() |
2a01e9679a | ||
![]() |
519deac544 | ||
![]() |
c33a8dc223 | ||
![]() |
742e2fc7e4 | ||
![]() |
e90b616428 | ||
![]() |
3d037c5150 | ||
![]() |
fd60e97784 | ||
![]() |
c2cda6bc48 | ||
![]() |
1cd95a4bb7 | ||
![]() |
727eaf3c82 | ||
![]() |
d014671bcb | ||
![]() |
4edb073a20 | ||
![]() |
5d2b9514db | ||
![]() |
2491855678 | ||
![]() |
b23038db53 | ||
![]() |
6d68dcf13c | ||
![]() |
fbf6db035b | ||
![]() |
1a43fc1e62 | ||
![]() |
8210853276 | ||
![]() |
e8bf6ab352 | ||
![]() |
0aa91b99ed | ||
![]() |
d93b035f14 | ||
![]() |
adb0757f72 | ||
![]() |
2369a8f4e5 | ||
![]() |
a6844d26e0 | ||
![]() |
95c663224d | ||
![]() |
6dc01f0d94 | ||
![]() |
2d3eeecef8 | ||
![]() |
167a168a63 | ||
![]() |
10af235895 | ||
![]() |
5d6dec5a5c | ||
![]() |
6ae0696e2f | ||
![]() |
9688e91a6b | ||
![]() |
c026943c8e | ||
![]() |
662ab2d4c5 | ||
![]() |
722b00bbfb | ||
![]() |
6dbb56ba36 | ||
![]() |
2e5bdd2679 | ||
![]() |
97ec167452 | ||
![]() |
2b8dcc0f57 | ||
![]() |
6312658888 | ||
![]() |
213818ffb5 | ||
![]() |
aed5d1a88d | ||
![]() |
8b94128625 | ||
![]() |
4d91fbdf0f | ||
![]() |
d7aa9d38fa | ||
![]() |
b3369ac669 | ||
![]() |
e68fde6f4e | ||
![]() |
f0e49a54c0 | ||
![]() |
2c67571726 | ||
![]() |
fae6d3780f | ||
![]() |
34ba8e9527 | ||
![]() |
686d1bc1ea | ||
![]() |
9b42f9ab18 | ||
![]() |
1d508e1be3 | ||
![]() |
41f735a4ee | ||
![]() |
e9e6eb613b | ||
![]() |
6dd19594ab | ||
![]() |
4f0a8fce52 | ||
![]() |
7ff3b17f14 | ||
![]() |
f71669175f | ||
![]() |
27b72b7691 | ||
![]() |
c5e0270ef0 | ||
![]() |
c59d2d5b1c | ||
![]() |
a832d31ccd | ||
![]() |
47a8bde4da | ||
![]() |
13050a9fb3 | ||
![]() |
753e8b53d3 | ||
![]() |
af49f81ec5 | ||
![]() |
db1a7406ca | ||
![]() |
ecc9145d2c | ||
![]() |
7090983c67 | ||
![]() |
09fdea959f | ||
![]() |
e419e4ca93 | ||
![]() |
9e8f6e8d54 | ||
![]() |
753d69856a | ||
![]() |
6d28caefc7 | ||
![]() |
7b9eac02ff | ||
![]() |
138f8ba6e2 | ||
![]() |
046f9e89a1 | ||
![]() |
2cca64d01d | ||
![]() |
9aed13adb9 | ||
![]() |
85b6c344bd | ||
![]() |
9359c9b9db | ||
![]() |
d43f62cc5f | ||
![]() |
a30d4612f5 | ||
![]() |
e32009a7e3 | ||
![]() |
b0f3489d68 | ||
![]() |
9099e4c233 | ||
![]() |
a1b895e547 | ||
![]() |
df1ff0affa | ||
![]() |
95e828f3d8 | ||
![]() |
a28c6caac0 | ||
![]() |
514260d8cb | ||
![]() |
642ec1918f | ||
![]() |
bdae9f776b | ||
![]() |
5c86a3cca2 | ||
![]() |
ea53008604 | ||
![]() |
01ea8f46e7 | ||
![]() |
ff1e700b56 | ||
![]() |
5efa723289 | ||
![]() |
4985f87a52 | ||
![]() |
ae000f963c | ||
![]() |
0960f691a1 | ||
![]() |
713b19cac7 | ||
![]() |
05f1f07e51 | ||
![]() |
955a01dfa4 | ||
![]() |
928ee7569c | ||
![]() |
8190903821 | ||
![]() |
473347df41 | ||
![]() |
1ef52d7c8e | ||
![]() |
561fe13bad | ||
![]() |
c15ed38cef | ||
![]() |
fa4568d9c9 | ||
![]() |
ef4f78a6cd | ||
![]() |
da36d069db | ||
![]() |
6ff3e17a7d | ||
![]() |
bb200be57d | ||
![]() |
a238563fdb | ||
![]() |
bfc6f1d2a9 | ||
![]() |
99b8a08366 | ||
![]() |
dba5ae939d | ||
![]() |
7a4aa823d1 | ||
![]() |
89e387cb67 | ||
![]() |
19c46de69f | ||
![]() |
e35fbfab77 | ||
![]() |
478203dc68 | ||
![]() |
5713ffd143 | ||
![]() |
1711b6dee1 | ||
![]() |
7fbd4afaaa | ||
![]() |
f396dbcb4f | ||
![]() |
57fe3430fd | ||
![]() |
8428bef040 | ||
![]() |
47c91c9163 | ||
![]() |
6c57360eac | ||
![]() |
624292d685 | ||
![]() |
55ecc47dce | ||
![]() |
f2125882c5 | ||
![]() |
d23cb39a3f | ||
![]() |
7f7d5b899a | ||
![]() |
c44e854d05 | ||
![]() |
8fa8dbc269 | ||
![]() |
e59303d4ff | ||
![]() |
494d943a24 | ||
![]() |
d227da5554 | ||
![]() |
714590426f | ||
![]() |
9ffe179934 | ||
![]() |
9c4e44a0ad | ||
![]() |
1ef69a8bfb | ||
![]() |
55db090206 | ||
![]() |
f8ce84860c | ||
![]() |
795360fe48 | ||
![]() |
3d3d075496 | ||
![]() |
35630c219d | ||
![]() |
5ef9bb7752 | ||
![]() |
5bd5a219a6 | ||
![]() |
c1450d26ff | ||
![]() |
10d826597a | ||
![]() |
00cbcd5dbc | ||
![]() |
6bd8fda597 | ||
![]() |
8b88255b43 | ||
![]() |
bcbd78cea9 | ||
![]() |
22ad28bb17 | ||
![]() |
74bd8a9cf7 | ||
![]() |
023a6be67d | ||
![]() |
922a1983f3 | ||
![]() |
2758fc7e14 | ||
![]() |
3541fcae01 | ||
![]() |
eea06de6df | ||
![]() |
29658eddcc | ||
![]() |
2fc0d05a55 | ||
![]() |
faf64f1a26 | ||
![]() |
d340523d68 | ||
![]() |
089fa12ff8 | ||
![]() |
d9528819a3 | ||
![]() |
e3d5ca2997 | ||
![]() |
8fc76ab325 | ||
![]() |
e77678bd82 | ||
![]() |
dafd8dbe87 | ||
![]() |
5034919d23 | ||
![]() |
2bcfb72d38 | ||
![]() |
f27bff81ba | ||
![]() |
5c49bb45c7 | ||
![]() |
97fb9565ee | ||
![]() |
72eaca23fe | ||
![]() |
1f11b3844a | ||
![]() |
e129a6f47a | ||
![]() |
d983ac35fe | ||
![]() |
2dcf4f709b | ||
![]() |
a171fe3565 | ||
![]() |
c9aeab58e6 | ||
![]() |
517dac6ff8 | ||
![]() |
376653ec3d | ||
![]() |
28eea2994f | ||
![]() |
6d55caabe8 | ||
![]() |
d8260907df | ||
![]() |
9474f4bb33 | ||
![]() |
698b71e2fd | ||
![]() |
749301d133 | ||
![]() |
a20c0de6d8 | ||
![]() |
ad2ae63745 | ||
![]() |
d56ca4f107 | ||
![]() |
e09c3ddec2 | ||
![]() |
1882920c97 | ||
![]() |
b70cb60b65 | ||
![]() |
6a1e64f531 | ||
![]() |
5217b20901 | ||
![]() |
ed37969925 | ||
![]() |
32230e6520 | ||
![]() |
7a712a11b9 | ||
![]() |
e63d8e6163 | ||
![]() |
461a9093cd | ||
![]() |
8edb6ff22a | ||
![]() |
1f44be83af | ||
![]() |
1be078d01d | ||
![]() |
c07cde3308 | ||
![]() |
dda8b1a5b8 | ||
![]() |
ba45277640 | ||
![]() |
f03ae39fd1 | ||
![]() |
62145122be | ||
![]() |
44e33c3eb9 | ||
![]() |
ed5ed3e31e | ||
![]() |
cc866efba1 | ||
![]() |
f550262efb | ||
![]() |
890ec8d71c | ||
![]() |
62ed5ee318 | ||
![]() |
0a10ff70bc | ||
![]() |
0718e3459a | ||
![]() |
7ec93a496d | ||
![]() |
2170386ad9 | ||
![]() |
6c48effbf5 | ||
![]() |
97e3da0e3e | ||
![]() |
d6ff81ab4d | ||
![]() |
6dfc2e7075 | ||
![]() |
80e36d47c2 | ||
![]() |
e1826f89d4 | ||
![]() |
23df20fe6d | ||
![]() |
10ef7a0466 | ||
![]() |
7eba7d4028 | ||
![]() |
b09d741aed | ||
![]() |
594069961a | ||
![]() |
9eb445f0a2 | ||
![]() |
e791f61c52 | ||
![]() |
b074e18402 | ||
![]() |
5b6a289d30 | ||
![]() |
8e9bce44cc | ||
![]() |
7242238a25 | ||
![]() |
ef26ee3f1f | ||
![]() |
584ff9933a | ||
![]() |
bb07776606 | ||
![]() |
07df50fbdc | ||
![]() |
fc731f28cb | ||
![]() |
6474d7ef00 | ||
![]() |
0b23bbbbb0 | ||
![]() |
21406b119c | ||
![]() |
2b51980904 | ||
![]() |
1865e228c4 | ||
![]() |
179a1e423e | ||
![]() |
bd8de5bf2d | ||
![]() |
7c8c7eedca | ||
![]() |
8c1957c03e | ||
![]() |
803ad69eb1 | ||
![]() |
29d784e5fa | ||
![]() |
58b2201710 | ||
![]() |
02605d577b | ||
![]() |
42de252c12 | ||
![]() |
6c3c06a571 | ||
![]() |
6a4573ce5a | ||
![]() |
e77128dfa2 | ||
![]() |
19df8e45ec | ||
![]() |
4c7a1f541c | ||
![]() |
295e36efa3 | ||
![]() |
3f47cc8d00 | ||
![]() |
4006020d78 | ||
![]() |
6d4fa96aad | ||
![]() |
85def2bfc7 | ||
![]() |
266bbad8cd | ||
![]() |
1e3b7a6df1 | ||
![]() |
00fe864321 | ||
![]() |
3df720e909 | ||
![]() |
02a6ec7b3c | ||
![]() |
d3c1f7a872 | ||
![]() |
84568b3454 | ||
![]() |
2721b4c10d | ||
![]() |
31ed39303c | ||
![]() |
6bddecbf28 | ||
![]() |
54aebbb587 | ||
![]() |
e46f3803ad | ||
![]() |
28b7f72b96 | ||
![]() |
61421b3a67 | ||
![]() |
acbf0d99c4 | ||
![]() |
e7be8160dd | ||
![]() |
2af6597248 | ||
![]() |
a4444e4107 | ||
![]() |
4c86ecc531 | ||
![]() |
890a46c071 | ||
![]() |
8999b0c178 | ||
![]() |
a68fcb2fb8 | ||
![]() |
84868b57c7 | ||
![]() |
087bf70979 | ||
![]() |
039c343d0a | ||
![]() |
11abd94c04 | ||
![]() |
b3d0f19fe7 | ||
![]() |
9be7f2328f | ||
![]() |
40b8dfceed | ||
![]() |
41b20aec2b | ||
![]() |
98109ce3ea | ||
![]() |
61cd877145 | ||
![]() |
66813460c0 | ||
![]() |
ed9d495915 | ||
![]() |
7580ba4861 | ||
![]() |
c673979fee | ||
![]() |
7acd5bdc7f | ||
![]() |
3a4800754e | ||
![]() |
72f8611d3e | ||
![]() |
a0cd63c210 | ||
![]() |
2d9c6c3222 | ||
![]() |
b28692dc72 | ||
![]() |
dee0f138b8 | ||
![]() |
91ff20cf7a | ||
![]() |
1084d3c261 | ||
![]() |
124b41c1a0 | ||
![]() |
d282ec8179 | ||
![]() |
58997f7f9a | ||
![]() |
104a2b5e11 | ||
![]() |
e198c13161 | ||
![]() |
10b4481ba5 | ||
![]() |
4c1fbc9fdb | ||
![]() |
02dc10c053 | ||
![]() |
0c880369d8 | ||
![]() |
5b101ef105 | ||
![]() |
c6acaaf145 | ||
![]() |
6883d6bf86 | ||
![]() |
a77bde66de | ||
![]() |
a5e40ae36d | ||
![]() |
e556e92ec9 | ||
![]() |
b233c255bd | ||
![]() |
ee16d59221 | ||
![]() |
39a7780754 | ||
![]() |
ce81175cf3 | ||
![]() |
c31a998abb | ||
![]() |
00c4efb96e | ||
![]() |
edc8a5f249 | ||
![]() |
75e96b856e | ||
![]() |
549ab690a8 | ||
![]() |
621e203a8e | ||
![]() |
d7bcaa29c0 | ||
![]() |
e9a0273538 | ||
![]() |
0d7aa6d811 | ||
![]() |
40c61b0600 | ||
![]() |
b54a69e8d1 | ||
![]() |
4d54688782 | ||
![]() |
2d37d5474d | ||
![]() |
8ac27241b6 | ||
![]() |
fd70ac2d99 | ||
![]() |
a38acfb195 | ||
![]() |
6fa7d8b6a6 | ||
![]() |
eb5494e9cc | ||
![]() |
671dab97d5 | ||
![]() |
27a3ba1a59 | ||
![]() |
87e836f353 | ||
![]() |
883014e56a | ||
![]() |
eb625321ae | ||
![]() |
ddfec30941 | ||
![]() |
922ad2fbc6 | ||
![]() |
e8e6b90044 | ||
![]() |
560bb9f507 | ||
![]() |
78e5e31558 | ||
![]() |
cb685b049d | ||
![]() |
51c02be909 | ||
![]() |
f7db6bf3f9 | ||
![]() |
203d682d87 | ||
![]() |
7b27591321 | ||
![]() |
9539037096 | ||
![]() |
453ecdb77e | ||
![]() |
796d251061 | ||
![]() |
308761d5f9 | ||
![]() |
ded778004e | ||
![]() |
ad5d4ed235 | ||
![]() |
349867c879 | ||
![]() |
277e1ff396 | ||
![]() |
eda4d3fa06 | ||
![]() |
68e00e7073 | ||
![]() |
69d762ce6a | ||
![]() |
e92716ff2d | ||
![]() |
0eaab09e88 | ||
![]() |
c508ff1e5f | ||
![]() |
0f920a85e4 | ||
![]() |
a12ecb112a | ||
![]() |
9640d30ea9 | ||
![]() |
85b2becd06 | ||
![]() |
0331b0d044 | ||
![]() |
1ce81fc299 | ||
![]() |
5b1b97aa49 | ||
![]() |
799ab6974c | ||
![]() |
d94b7b9033 | ||
![]() |
a01adb7bdc | ||
![]() |
4ad62d8b09 | ||
![]() |
28675478ce | ||
![]() |
c05ed2c31a | ||
![]() |
c4d2f11368 | ||
![]() |
c1ba631943 | ||
![]() |
0b3bd21bd5 | ||
![]() |
8317477daf | ||
![]() |
07c1f7ced8 | ||
![]() |
264c0d6428 | ||
![]() |
2836dcaf4e | ||
![]() |
dba556c1f8 | ||
![]() |
6792e2c3a7 | ||
![]() |
bc9b39cb73 | ||
![]() |
f0c69ff3bf | ||
![]() |
ddae696cf8 | ||
![]() |
f449832d6f | ||
![]() |
a2189cb9b4 | ||
![]() |
70ec14d930 | ||
![]() |
1225bd7a44 | ||
![]() |
7a8a168b81 | ||
![]() |
cf3f275716 | ||
![]() |
d95bcd8d85 | ||
![]() |
5f58a4c079 | ||
![]() |
adc56ac792 | ||
![]() |
d9b0c4ee80 | ||
![]() |
492cad95e9 | ||
![]() |
0e755608c5 | ||
![]() |
c84ce0e00c | ||
![]() |
ea46c369a0 | ||
![]() |
8e5885fb31 | ||
![]() |
aa01b8edd1 | ||
![]() |
510416837f | ||
![]() |
d148d06ed3 | ||
![]() |
93bcd9e526 | ||
![]() |
3502fff120 | ||
![]() |
ea3ab4fcdc | ||
![]() |
8724f2be47 | ||
![]() |
9c0e5d809b | ||
![]() |
9df047ddce | ||
![]() |
885a548fa7 | ||
![]() |
156f256db6 | ||
![]() |
2c6be31bde | ||
![]() |
563c481bc0 | ||
![]() |
d98fc65f86 | ||
![]() |
4022f083d5 | ||
![]() |
49307b6cb2 | ||
![]() |
566ef43d5b | ||
![]() |
7e814da5c9 | ||
![]() |
7d8dff3a30 | ||
![]() |
f1ffd95ff9 | ||
![]() |
d0bc7cb86d | ||
![]() |
cff4f31bd6 | ||
![]() |
12963529af | ||
![]() |
ec758bfd5b | ||
![]() |
43c9abcea6 | ||
![]() |
780caa6617 | ||
![]() |
56bb329b07 | ||
![]() |
2bd7a18cd7 | ||
![]() |
e2b25b9acf | ||
![]() |
dbc283f0bd | ||
![]() |
7f9e8bc41c | ||
![]() |
49e5771430 | ||
![]() |
542d7a6d6d | ||
![]() |
e20843344a | ||
![]() |
6c37937744 | ||
![]() |
fb320ec313 | ||
![]() |
94885c2402 | ||
![]() |
8ae86fc58f | ||
![]() |
e05d47a85f | ||
![]() |
e9cc6d4016 | ||
![]() |
6ea15160e8 | ||
![]() |
8c1226ece8 | ||
![]() |
feebd35f91 | ||
![]() |
f552dbd199 | ||
![]() |
d978d7ee0d | ||
![]() |
a29fae15e7 | ||
![]() |
f3305862f3 | ||
![]() |
ed4cdb9ceb | ||
![]() |
5048cd3200 | ||
![]() |
c5309b01a3 | ||
![]() |
9ed3f37d04 | ||
![]() |
86730c7b17 | ||
![]() |
969c643d58 | ||
![]() |
b66f2ee2a7 | ||
![]() |
f63f7f4b39 | ||
![]() |
7f7fcde71e | ||
![]() |
346e04d14f | ||
![]() |
9ffbf5d056 | ||
![]() |
74de7c84b6 | ||
![]() |
ba547a7f51 | ||
![]() |
bf39900390 | ||
![]() |
7583cf20d8 | ||
![]() |
362b54c0d7 | ||
![]() |
097c04195a | ||
![]() |
705e0c6958 | ||
![]() |
87f03ddb52 | ||
![]() |
40bda00d8f | ||
![]() |
f5d672726b | ||
![]() |
d3fb298421 | ||
![]() |
62c7dfc664 | ||
![]() |
5919bd0799 | ||
![]() |
13e8029904 | ||
![]() |
651b63d0bb | ||
![]() |
6753cc0b81 | ||
![]() |
7994caaeda | ||
![]() |
d2a9e3f871 | ||
![]() |
1bda594f70 | ||
![]() |
6542c94cc1 | ||
![]() |
92e08b160e | ||
![]() |
800bffabbb | ||
![]() |
5b64c55048 | ||
![]() |
adef1460b4 | ||
![]() |
aa768938ff | ||
![]() |
cdb8fd68e2 | ||
![]() |
0e9c88385b | ||
![]() |
ec86081dcb | ||
![]() |
36f2856264 | ||
![]() |
0f91b13b2e | ||
![]() |
b4621e524c | ||
![]() |
963e2ca828 | ||
![]() |
091bfb7f2c | ||
![]() |
e53ad2e85e | ||
![]() |
88e9db7f2e | ||
![]() |
9f832e8410 | ||
![]() |
6f91514814 | ||
![]() |
18051dbb62 | ||
![]() |
9168c855cf | ||
![]() |
8f4f691e2b | ||
![]() |
d11950710d | ||
![]() |
84a523812b | ||
![]() |
bed1039f19 | ||
![]() |
1fddb69188 | ||
![]() |
64758dae3b | ||
![]() |
f8d3a2cba5 | ||
![]() |
2b1fe995e7 | ||
![]() |
e253734bc8 | ||
![]() |
d51d3dd1fb | ||
![]() |
861979a24f | ||
![]() |
63907d7f8f | ||
![]() |
73dae78ab3 | ||
![]() |
c1af62783a | ||
![]() |
0e698ff5c4 | ||
![]() |
533adaaa6d | ||
![]() |
3a15f57b45 | ||
![]() |
8f48bf7195 | ||
![]() |
c85391e3d8 | ||
![]() |
eacb824264 | ||
![]() |
2f712060bd | ||
![]() |
e50b758e12 | ||
![]() |
4a0af24624 | ||
![]() |
c46f3cfa8c | ||
![]() |
d8ec337f51 | ||
![]() |
827b1f1437 | ||
![]() |
561da58cea | ||
![]() |
0d37564a90 | ||
![]() |
3e3cd64150 | ||
![]() |
375bc6fc94 | ||
![]() |
4b2baa7e91 | ||
![]() |
1bd502d785 | ||
![]() |
72ca7df9b2 | ||
![]() |
5d48130cc6 | ||
![]() |
2e639f82c7 | ||
![]() |
63bad7cd79 | ||
![]() |
94b8bb0d87 | ||
![]() |
4f8e73e1c1 | ||
![]() |
4056c1f632 | ||
![]() |
3118647802 | ||
![]() |
1dac7338ed | ||
![]() |
8593249e3d | ||
![]() |
6008ae0c60 | ||
![]() |
db33124708 | ||
![]() |
f3588ad347 | ||
![]() |
7573c9bc1e | ||
![]() |
27bdba1dc7 | ||
![]() |
f42d8bf3e7 | ||
![]() |
d2462fb0af | ||
![]() |
32278eecb7 | ||
![]() |
d3c796f2ce | ||
![]() |
952df640ab | ||
![]() |
6420e5ce79 | ||
![]() |
a1e86781bd | ||
![]() |
d52fda6015 | ||
![]() |
379eeda576 | ||
![]() |
fc1e0178bf | ||
![]() |
1c09d0ac9b | ||
![]() |
987a63ed94 | ||
![]() |
ade544b4cc | ||
![]() |
94d81600d9 | ||
![]() |
6d20c54eef | ||
![]() |
e9ab82ff55 | ||
![]() |
a17c7e9cbb | ||
![]() |
7d5721fcfd | ||
![]() |
858b738775 | ||
![]() |
af49cb9724 | ||
![]() |
124363b1b5 | ||
![]() |
eec5dd88e0 | ||
![]() |
582476849e | ||
![]() |
f765f658ae | ||
![]() |
537c150041 | ||
![]() |
c4394822d5 | ||
![]() |
6855512301 | ||
![]() |
f721d4c625 | ||
![]() |
b5668bac53 | ||
![]() |
9c47ecaeb2 | ||
![]() |
19c20563cc | ||
![]() |
7143f1f9fa | ||
![]() |
51ecc550ba | ||
![]() |
a3697270d3 | ||
![]() |
b6d69bfad2 | ||
![]() |
0f74f796de | ||
![]() |
24d12c632c | ||
![]() |
441b68aca3 | ||
![]() |
60feb60c0a | ||
![]() |
88bdee05d0 | ||
![]() |
f02f605d4e | ||
![]() |
1abf0c6910 | ||
![]() |
ff90faa8ca | ||
![]() |
c074bf0865 | ||
![]() |
b961b42ece | ||
![]() |
3d4afb0d73 | ||
![]() |
5e1d2990d0 | ||
![]() |
c32d5a4eba | ||
![]() |
3ff7b8d381 | ||
![]() |
60d0cd1f21 | ||
![]() |
77c376129c | ||
![]() |
2e4462792c | ||
![]() |
b50f131a01 | ||
![]() |
13806213d9 | ||
![]() |
5a714a79ea | ||
![]() |
7cb873fb87 | ||
![]() |
408b0e0c45 | ||
![]() |
2b0268864c | ||
![]() |
0d449756dd | ||
![]() |
bc4ecccfbf | ||
![]() |
9ee4876eb2 | ||
![]() |
d96f8efb9c | ||
![]() |
a2dc11acd3 | ||
![]() |
2f0df0131c | ||
![]() |
dd8941abc9 | ||
![]() |
b341030a0f | ||
![]() |
1d6cea6af2 | ||
![]() |
327a7a4031 | ||
![]() |
6ac75f47e8 | ||
![]() |
843346ce1b | ||
![]() |
23f03966b4 | ||
![]() |
4540980337 | ||
![]() |
ec9d08e71e | ||
![]() |
397c066464 | ||
![]() |
4d1b5d6a88 | ||
![]() |
0cae943b5c | ||
![]() |
78c6c607db | ||
![]() |
0da1fae709 | ||
![]() |
94fc2314f1 | ||
![]() |
05761de8c7 | ||
![]() |
ecdf3ff297 | ||
![]() |
ea7e3e4f9f | ||
![]() |
8371bb4e19 | ||
![]() |
0a5f2fc94d | ||
![]() |
45b2c207db | ||
![]() |
e7f897f959 | ||
![]() |
1aaab97a16 | ||
![]() |
3053e701c0 | ||
![]() |
20572fb87b | ||
![]() |
7e2e063979 | ||
![]() |
16e27ba4a6 | ||
![]() |
2fda288cc5 | ||
![]() |
9986652b27 | ||
![]() |
fd46923216 | ||
![]() |
bb2975b7f1 | ||
![]() |
1168f19e60 | ||
![]() |
5d50ad3941 | ||
![]() |
a43156a861 | ||
![]() |
ec2729706b | ||
![]() |
494d3f9002 | ||
![]() |
4f8b856145 | ||
![]() |
0eca79e7e4 | ||
![]() |
f245bde772 | ||
![]() |
4aee067bb0 | ||
![]() |
cc25a0e561 | ||
![]() |
3f063153f0 | ||
![]() |
aa350a4ed1 | ||
![]() |
e36bee41a0 | ||
![]() |
138d0c7a13 | ||
![]() |
a688479564 | ||
![]() |
5ead4c2d56 | ||
![]() |
2e18fbbdeb | ||
![]() |
02eafeee03 | ||
![]() |
812a43621b | ||
![]() |
0fe338b526 | ||
![]() |
3dc02e55e6 | ||
![]() |
7023edb37c | ||
![]() |
f1fdaca345 | ||
![]() |
d4454e54dc | ||
![]() |
969718d176 | ||
![]() |
0a9179fddb | ||
![]() |
b5b0a76991 | ||
![]() |
59b39f3eba | ||
![]() |
7a0c4e8017 | ||
![]() |
1ddf4ee6ba | ||
![]() |
12d0507cb7 | ||
![]() |
cf99912352 | ||
![]() |
9723fe88f5 | ||
![]() |
2439ff56a5 | ||
![]() |
2ef8d09fc7 | ||
![]() |
e5e767b300 | ||
![]() |
1c6b38f36d | ||
![]() |
091cd47caa | ||
![]() |
1ebf1a0c6c | ||
![]() |
56761649a2 | ||
![]() |
6a19cf1b42 | ||
![]() |
ef4274ed2e | ||
![]() |
88b8fc63ef | ||
![]() |
639a6a6897 | ||
![]() |
af96fef1da | ||
![]() |
7550a41660 | ||
![]() |
ffd2a34d9e | ||
![]() |
6a74a82e19 | ||
![]() |
ebb7c5ac8f | ||
![]() |
14c7bfe9ce | ||
![]() |
ed52b505d4 | ||
![]() |
b111064e22 | ||
![]() |
17d47accf9 | ||
![]() |
d7fb298a6b | ||
![]() |
107ea768ab | ||
![]() |
8797dd35f7 | ||
![]() |
0596a46cd9 | ||
![]() |
9d406463d4 | ||
![]() |
86906bf5b3 | ||
![]() |
03ddccbc93 | ||
![]() |
12db37906b | ||
![]() |
b158a15754 | ||
![]() |
b82f78003c | ||
![]() |
49616d3020 | ||
![]() |
8467f8ae8a | ||
![]() |
5b6137d91a | ||
![]() |
b7edcbecd7 | ||
![]() |
5ccbe68f16 | ||
![]() |
9fe4cef89e | ||
![]() |
165c6cef08 | ||
![]() |
0efd5287c4 | ||
![]() |
b1ab01280a | ||
![]() |
ab84876e2c | ||
![]() |
e2d5be83e7 | ||
![]() |
85cdf37d3b | ||
![]() |
06521b44b6 | ||
![]() |
1e5325eea0 | ||
![]() |
0995a29c5c | ||
![]() |
133d6e2656 | ||
![]() |
36117444aa | ||
![]() |
330a9a7c9a | ||
![]() |
0dc3fc2d21 | ||
![]() |
a972314fa6 | ||
![]() |
16d1ed3591 | ||
![]() |
5c25f16df2 | ||
![]() |
b3ccaa81a7 | ||
![]() |
a0041731a3 |
4
.devcontainer/devcontainer.json
Normal file
4
.devcontainer/devcontainer.json
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"image": "ghcr.io/spack/ubuntu20.04-runner-amd64-gcc-11.4:2023.08.01",
|
||||||
|
"postCreateCommand": "./.devcontainer/postCreateCommand.sh"
|
||||||
|
}
|
20
.devcontainer/postCreateCommand.sh
Executable file
20
.devcontainer/postCreateCommand.sh
Executable file
@@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Load spack environment at terminal startup
|
||||||
|
cat <<EOF >> /root/.bashrc
|
||||||
|
. /workspaces/spack/share/spack/setup-env.sh
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# Load spack environment in this script
|
||||||
|
. /workspaces/spack/share/spack/setup-env.sh
|
||||||
|
|
||||||
|
# Ensure generic targets for maximum matching with buildcaches
|
||||||
|
spack config --scope site add "packages:all:require:[target=x86_64_v3]"
|
||||||
|
spack config --scope site add "concretizer:targets:granularity:generic"
|
||||||
|
|
||||||
|
# Find compiler and install gcc-runtime
|
||||||
|
spack compiler find --scope site
|
||||||
|
|
||||||
|
# Setup buildcaches
|
||||||
|
spack mirror add --scope site develop https://binaries.spack.io/develop
|
||||||
|
spack buildcache keys --install --trust
|
6
.github/pull_request_template.md
vendored
Normal file
6
.github/pull_request_template.md
vendored
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<!--
|
||||||
|
Remember that `spackbot` can help with your PR in multiple ways:
|
||||||
|
- `@spackbot help` shows all the commands that are currently available
|
||||||
|
- `@spackbot fix style` tries to push a commit to fix style issues in this PR
|
||||||
|
- `@spackbot re-run pipeline` runs the pipelines again, if you have write access to the repository
|
||||||
|
-->
|
42
.github/workflows/audit.yaml
vendored
42
.github/workflows/audit.yaml
vendored
@@ -17,33 +17,53 @@ concurrency:
|
|||||||
jobs:
|
jobs:
|
||||||
# Run audits on all the packages in the built-in repository
|
# Run audits on all the packages in the built-in repository
|
||||||
package-audits:
|
package-audits:
|
||||||
runs-on: ${{ matrix.operating_system }}
|
runs-on: ${{ matrix.system.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
operating_system: ["ubuntu-latest", "macos-latest"]
|
system:
|
||||||
|
- { os: windows-latest, shell: 'powershell Invoke-Expression -Command "./share/spack/qa/windows_test_setup.ps1"; {0}' }
|
||||||
|
- { os: ubuntu-latest, shell: bash }
|
||||||
|
- { os: macos-latest, shell: bash }
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: ${{ matrix.system.shell }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # @v2
|
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
|
||||||
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # @v2
|
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d
|
||||||
with:
|
with:
|
||||||
python-version: ${{inputs.python_version}}
|
python-version: ${{inputs.python_version}}
|
||||||
- name: Install Python packages
|
- name: Install Python packages
|
||||||
run: |
|
run: |
|
||||||
pip install --upgrade pip setuptools pytest coverage[toml]
|
pip install --upgrade pip setuptools pytest coverage[toml]
|
||||||
|
- name: Setup for Windows run
|
||||||
|
if: runner.os == 'Windows'
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pywin32
|
||||||
- name: Package audits (with coverage)
|
- name: Package audits (with coverage)
|
||||||
if: ${{ inputs.with_coverage == 'true' }}
|
if: ${{ inputs.with_coverage == 'true' && runner.os != 'Windows' }}
|
||||||
run: |
|
run: |
|
||||||
. share/spack/setup-env.sh
|
. share/spack/setup-env.sh
|
||||||
coverage run $(which spack) audit packages
|
coverage run $(which spack) audit packages
|
||||||
coverage run $(which spack) audit externals
|
coverage run $(which spack) -d audit externals
|
||||||
coverage combine
|
coverage combine
|
||||||
coverage xml
|
coverage xml
|
||||||
- name: Package audits (without coverage)
|
- name: Package audits (without coverage)
|
||||||
if: ${{ inputs.with_coverage == 'false' }}
|
if: ${{ inputs.with_coverage == 'false' && runner.os != 'Windows' }}
|
||||||
run: |
|
run: |
|
||||||
. share/spack/setup-env.sh
|
. share/spack/setup-env.sh
|
||||||
$(which spack) audit packages
|
spack -d audit packages
|
||||||
$(which spack) audit externals
|
spack -d audit externals
|
||||||
- uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # @v2.1.0
|
- name: Package audits (without coverage)
|
||||||
|
if: ${{ runner.os == 'Windows' }}
|
||||||
|
run: |
|
||||||
|
. share/spack/setup-env.sh
|
||||||
|
spack -d audit packages
|
||||||
|
./share/spack/qa/validate_last_exit.ps1
|
||||||
|
spack -d audit externals
|
||||||
|
./share/spack/qa/validate_last_exit.ps1
|
||||||
|
- uses: codecov/codecov-action@5ecb98a3c6b747ed38dc09f787459979aebb39be
|
||||||
if: ${{ inputs.with_coverage == 'true' }}
|
if: ${{ inputs.with_coverage == 'true' }}
|
||||||
with:
|
with:
|
||||||
flags: unittests,audits
|
flags: unittests,audits
|
||||||
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
verbose: true
|
||||||
|
5
.github/workflows/bootstrap-test.sh
vendored
5
.github/workflows/bootstrap-test.sh
vendored
@@ -1,7 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -ex
|
set -e
|
||||||
source share/spack/setup-env.sh
|
source share/spack/setup-env.sh
|
||||||
|
$PYTHON bin/spack bootstrap disable github-actions-v0.4
|
||||||
$PYTHON bin/spack bootstrap disable spack-install
|
$PYTHON bin/spack bootstrap disable spack-install
|
||||||
$PYTHON bin/spack -d solve zlib
|
$PYTHON bin/spack $SPACK_FLAGS solve zlib
|
||||||
tree $BOOTSTRAP/store
|
tree $BOOTSTRAP/store
|
||||||
exit 0
|
exit 0
|
||||||
|
346
.github/workflows/bootstrap.yml
vendored
346
.github/workflows/bootstrap.yml
vendored
@@ -13,118 +13,22 @@ concurrency:
|
|||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
fedora-clingo-sources:
|
distros-clingo-sources:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: "fedora:latest"
|
container: ${{ matrix.image }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
image: ["fedora:latest", "opensuse/leap:latest"]
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
- name: Setup Fedora
|
||||||
|
if: ${{ matrix.image == 'fedora:latest' }}
|
||||||
run: |
|
run: |
|
||||||
dnf install -y \
|
dnf install -y \
|
||||||
bzip2 curl file gcc-c++ gcc gcc-gfortran git gnupg2 gzip \
|
bzip2 curl file gcc-c++ gcc gcc-gfortran git gzip \
|
||||||
make patch unzip which xz python3 python3-devel tree \
|
make patch unzip which xz python3 python3-devel tree \
|
||||||
cmake bison bison-devel libstdc++-static
|
cmake bison bison-devel libstdc++-static
|
||||||
- name: Checkout
|
- name: Setup OpenSUSE
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
if: ${{ matrix.image == 'opensuse/leap:latest' }}
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- name: Setup non-root user
|
|
||||||
run: |
|
|
||||||
# See [1] below
|
|
||||||
git config --global --add safe.directory /__w/spack/spack
|
|
||||||
useradd spack-test && mkdir -p ~spack-test
|
|
||||||
chown -R spack-test . ~spack-test
|
|
||||||
- name: Setup repo
|
|
||||||
shell: runuser -u spack-test -- bash {0}
|
|
||||||
run: |
|
|
||||||
git --version
|
|
||||||
. .github/workflows/setup_git.sh
|
|
||||||
- name: Bootstrap clingo
|
|
||||||
shell: runuser -u spack-test -- bash {0}
|
|
||||||
run: |
|
|
||||||
source share/spack/setup-env.sh
|
|
||||||
spack bootstrap disable github-actions-v0.5
|
|
||||||
spack bootstrap disable github-actions-v0.4
|
|
||||||
spack external find cmake bison
|
|
||||||
spack -d solve zlib
|
|
||||||
tree ~/.spack/bootstrap/store/
|
|
||||||
|
|
||||||
ubuntu-clingo-sources:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container: "ubuntu:latest"
|
|
||||||
steps:
|
|
||||||
- name: Install dependencies
|
|
||||||
env:
|
|
||||||
DEBIAN_FRONTEND: noninteractive
|
|
||||||
run: |
|
|
||||||
apt-get update -y && apt-get upgrade -y
|
|
||||||
apt-get install -y \
|
|
||||||
bzip2 curl file g++ gcc gfortran git gnupg2 gzip \
|
|
||||||
make patch unzip xz-utils python3 python3-dev tree \
|
|
||||||
cmake bison
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- name: Setup non-root user
|
|
||||||
run: |
|
|
||||||
# See [1] below
|
|
||||||
git config --global --add safe.directory /__w/spack/spack
|
|
||||||
useradd spack-test && mkdir -p ~spack-test
|
|
||||||
chown -R spack-test . ~spack-test
|
|
||||||
- name: Setup repo
|
|
||||||
shell: runuser -u spack-test -- bash {0}
|
|
||||||
run: |
|
|
||||||
git --version
|
|
||||||
. .github/workflows/setup_git.sh
|
|
||||||
- name: Bootstrap clingo
|
|
||||||
shell: runuser -u spack-test -- bash {0}
|
|
||||||
run: |
|
|
||||||
source share/spack/setup-env.sh
|
|
||||||
spack bootstrap disable github-actions-v0.5
|
|
||||||
spack bootstrap disable github-actions-v0.4
|
|
||||||
spack external find cmake bison
|
|
||||||
spack -d solve zlib
|
|
||||||
tree ~/.spack/bootstrap/store/
|
|
||||||
|
|
||||||
ubuntu-clingo-binaries-and-patchelf:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container: "ubuntu:latest"
|
|
||||||
steps:
|
|
||||||
- name: Install dependencies
|
|
||||||
env:
|
|
||||||
DEBIAN_FRONTEND: noninteractive
|
|
||||||
run: |
|
|
||||||
apt-get update -y && apt-get upgrade -y
|
|
||||||
apt-get install -y \
|
|
||||||
bzip2 curl file g++ gcc gfortran git gnupg2 gzip \
|
|
||||||
make patch unzip xz-utils python3 python3-dev tree
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- name: Setup non-root user
|
|
||||||
run: |
|
|
||||||
# See [1] below
|
|
||||||
git config --global --add safe.directory /__w/spack/spack
|
|
||||||
useradd spack-test && mkdir -p ~spack-test
|
|
||||||
chown -R spack-test . ~spack-test
|
|
||||||
- name: Setup repo
|
|
||||||
shell: runuser -u spack-test -- bash {0}
|
|
||||||
run: |
|
|
||||||
git --version
|
|
||||||
. .github/workflows/setup_git.sh
|
|
||||||
- name: Bootstrap clingo
|
|
||||||
shell: runuser -u spack-test -- bash {0}
|
|
||||||
run: |
|
|
||||||
source share/spack/setup-env.sh
|
|
||||||
spack -d solve zlib
|
|
||||||
tree ~/.spack/bootstrap/store/
|
|
||||||
|
|
||||||
opensuse-clingo-sources:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container: "opensuse/leap:latest"
|
|
||||||
steps:
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
run: |
|
||||||
# Harden CI by applying the workaround described here: https://www.suse.com/support/kb/doc/?id=000019505
|
# Harden CI by applying the workaround described here: https://www.suse.com/support/kb/doc/?id=000019505
|
||||||
zypper update -y || zypper update -y
|
zypper update -y || zypper update -y
|
||||||
@@ -133,15 +37,9 @@ jobs:
|
|||||||
make patch unzip which xz python3 python3-devel tree \
|
make patch unzip which xz python3 python3-devel tree \
|
||||||
cmake bison
|
cmake bison
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Setup repo
|
|
||||||
run: |
|
|
||||||
# See [1] below
|
|
||||||
git config --global --add safe.directory /__w/spack/spack
|
|
||||||
git --version
|
|
||||||
. .github/workflows/setup_git.sh
|
|
||||||
- name: Bootstrap clingo
|
- name: Bootstrap clingo
|
||||||
run: |
|
run: |
|
||||||
source share/spack/setup-env.sh
|
source share/spack/setup-env.sh
|
||||||
@@ -151,77 +49,102 @@ jobs:
|
|||||||
spack -d solve zlib
|
spack -d solve zlib
|
||||||
tree ~/.spack/bootstrap/store/
|
tree ~/.spack/bootstrap/store/
|
||||||
|
|
||||||
macos-clingo-sources:
|
clingo-sources:
|
||||||
runs-on: macos-latest
|
runs-on: ${{ matrix.runner }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
runner: ['macos-13', 'macos-14', "ubuntu-latest"]
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
- name: Setup macOS
|
||||||
|
if: ${{ matrix.runner != 'ubuntu-latest' }}
|
||||||
run: |
|
run: |
|
||||||
brew install cmake bison@2.7 tree
|
brew install cmake bison tree
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
|
||||||
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # @v2
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d
|
||||||
with:
|
with:
|
||||||
python-version: "3.12"
|
python-version: "3.12"
|
||||||
- name: Bootstrap clingo
|
- name: Bootstrap clingo
|
||||||
run: |
|
run: |
|
||||||
source share/spack/setup-env.sh
|
source share/spack/setup-env.sh
|
||||||
export PATH=/usr/local/opt/bison@2.7/bin:$PATH
|
|
||||||
spack bootstrap disable github-actions-v0.5
|
spack bootstrap disable github-actions-v0.5
|
||||||
spack bootstrap disable github-actions-v0.4
|
spack bootstrap disable github-actions-v0.4
|
||||||
spack external find --not-buildable cmake bison
|
spack external find --not-buildable cmake bison
|
||||||
spack -d solve zlib
|
spack -d solve zlib
|
||||||
tree ~/.spack/bootstrap/store/
|
tree ~/.spack/bootstrap/store/
|
||||||
|
|
||||||
macos-clingo-binaries:
|
gnupg-sources:
|
||||||
runs-on: ${{ matrix.macos-version }}
|
runs-on: ${{ matrix.runner }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
macos-version: ['macos-11', 'macos-12']
|
runner: [ 'macos-13', 'macos-14', "ubuntu-latest" ]
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
- name: Setup macOS
|
||||||
|
if: ${{ matrix.runner != 'ubuntu-latest' }}
|
||||||
run: |
|
run: |
|
||||||
brew install tree
|
brew install tree
|
||||||
- name: Checkout
|
# Remove GnuPG since we want to bootstrap it
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
sudo rm -rf /usr/local/bin/gpg
|
||||||
- name: Bootstrap clingo
|
- name: Setup Ubuntu
|
||||||
|
if: ${{ matrix.runner == 'ubuntu-latest' }}
|
||||||
run: |
|
run: |
|
||||||
set -ex
|
sudo rm -rf $(which gpg) $(which gpg2) $(which patchelf)
|
||||||
for ver in '3.7' '3.8' '3.9' '3.10' '3.11' ; do
|
|
||||||
not_found=1
|
|
||||||
ver_dir="$(find $RUNNER_TOOL_CACHE/Python -wholename "*/${ver}.*/*/bin" | grep . || true)"
|
|
||||||
echo "Testing $ver_dir"
|
|
||||||
if [[ -d "$ver_dir" ]] ; then
|
|
||||||
if $ver_dir/python --version ; then
|
|
||||||
export PYTHON="$ver_dir/python"
|
|
||||||
not_found=0
|
|
||||||
old_path="$PATH"
|
|
||||||
export PATH="$ver_dir:$PATH"
|
|
||||||
./bin/spack-tmpconfig -b ./.github/workflows/bootstrap-test.sh
|
|
||||||
export PATH="$old_path"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
# NOTE: test all pythons that exist, not all do on 12
|
|
||||||
done
|
|
||||||
|
|
||||||
ubuntu-clingo-binaries:
|
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Setup repo
|
- name: Bootstrap GnuPG
|
||||||
run: |
|
run: |
|
||||||
git --version
|
source share/spack/setup-env.sh
|
||||||
. .github/workflows/setup_git.sh
|
spack solve zlib
|
||||||
|
spack bootstrap disable github-actions-v0.5
|
||||||
|
spack bootstrap disable github-actions-v0.4
|
||||||
|
spack -d gpg list
|
||||||
|
tree ~/.spack/bootstrap/store/
|
||||||
|
|
||||||
|
from-binaries:
|
||||||
|
runs-on: ${{ matrix.runner }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
runner: ['macos-13', 'macos-14', "ubuntu-latest"]
|
||||||
|
steps:
|
||||||
|
- name: Setup macOS
|
||||||
|
if: ${{ matrix.runner != 'ubuntu-latest' }}
|
||||||
|
run: |
|
||||||
|
brew install tree
|
||||||
|
# Remove GnuPG since we want to bootstrap it
|
||||||
|
sudo rm -rf /usr/local/bin/gpg
|
||||||
|
- name: Setup Ubuntu
|
||||||
|
if: ${{ matrix.runner == 'ubuntu-latest' }}
|
||||||
|
run: |
|
||||||
|
sudo rm -rf $(which gpg) $(which gpg2) $(which patchelf)
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d
|
||||||
|
with:
|
||||||
|
python-version: |
|
||||||
|
3.8
|
||||||
|
3.9
|
||||||
|
3.10
|
||||||
|
3.11
|
||||||
|
3.12
|
||||||
|
- name: Set bootstrap sources
|
||||||
|
run: |
|
||||||
|
source share/spack/setup-env.sh
|
||||||
|
spack bootstrap disable github-actions-v0.4
|
||||||
|
spack bootstrap disable spack-install
|
||||||
- name: Bootstrap clingo
|
- name: Bootstrap clingo
|
||||||
run: |
|
run: |
|
||||||
set -ex
|
set -e
|
||||||
for ver in '3.7' '3.8' '3.9' '3.10' '3.11' ; do
|
for ver in '3.8' '3.9' '3.10' '3.11' '3.12' ; do
|
||||||
not_found=1
|
not_found=1
|
||||||
ver_dir="$(find $RUNNER_TOOL_CACHE/Python -wholename "*/${ver}.*/*/bin" | grep . || true)"
|
ver_dir="$(find $RUNNER_TOOL_CACHE/Python -wholename "*/${ver}.*/*/bin" | grep . || true)"
|
||||||
echo "Testing $ver_dir"
|
|
||||||
if [[ -d "$ver_dir" ]] ; then
|
if [[ -d "$ver_dir" ]] ; then
|
||||||
|
echo "Testing $ver_dir"
|
||||||
if $ver_dir/python --version ; then
|
if $ver_dir/python --version ; then
|
||||||
export PYTHON="$ver_dir/python"
|
export PYTHON="$ver_dir/python"
|
||||||
not_found=0
|
not_found=0
|
||||||
@@ -236,122 +159,9 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
ubuntu-gnupg-binaries:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container: "ubuntu:latest"
|
|
||||||
steps:
|
|
||||||
- name: Install dependencies
|
|
||||||
env:
|
|
||||||
DEBIAN_FRONTEND: noninteractive
|
|
||||||
run: |
|
|
||||||
apt-get update -y && apt-get upgrade -y
|
|
||||||
apt-get install -y \
|
|
||||||
bzip2 curl file g++ gcc patchelf gfortran git gzip \
|
|
||||||
make patch unzip xz-utils python3 python3-dev tree
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- name: Setup non-root user
|
|
||||||
run: |
|
|
||||||
# See [1] below
|
|
||||||
git config --global --add safe.directory /__w/spack/spack
|
|
||||||
useradd spack-test && mkdir -p ~spack-test
|
|
||||||
chown -R spack-test . ~spack-test
|
|
||||||
- name: Setup repo
|
|
||||||
shell: runuser -u spack-test -- bash {0}
|
|
||||||
run: |
|
|
||||||
git --version
|
|
||||||
. .github/workflows/setup_git.sh
|
|
||||||
- name: Bootstrap GnuPG
|
|
||||||
shell: runuser -u spack-test -- bash {0}
|
|
||||||
run: |
|
|
||||||
source share/spack/setup-env.sh
|
|
||||||
spack bootstrap disable github-actions-v0.4
|
|
||||||
spack bootstrap disable spack-install
|
|
||||||
spack -d gpg list
|
|
||||||
tree ~/.spack/bootstrap/store/
|
|
||||||
|
|
||||||
ubuntu-gnupg-sources:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container: "ubuntu:latest"
|
|
||||||
steps:
|
|
||||||
- name: Install dependencies
|
|
||||||
env:
|
|
||||||
DEBIAN_FRONTEND: noninteractive
|
|
||||||
run: |
|
|
||||||
apt-get update -y && apt-get upgrade -y
|
|
||||||
apt-get install -y \
|
|
||||||
bzip2 curl file g++ gcc patchelf gfortran git gzip \
|
|
||||||
make patch unzip xz-utils python3 python3-dev tree \
|
|
||||||
gawk
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- name: Setup non-root user
|
|
||||||
run: |
|
|
||||||
# See [1] below
|
|
||||||
git config --global --add safe.directory /__w/spack/spack
|
|
||||||
useradd spack-test && mkdir -p ~spack-test
|
|
||||||
chown -R spack-test . ~spack-test
|
|
||||||
- name: Setup repo
|
|
||||||
shell: runuser -u spack-test -- bash {0}
|
|
||||||
run: |
|
|
||||||
git --version
|
|
||||||
. .github/workflows/setup_git.sh
|
|
||||||
- name: Bootstrap GnuPG
|
|
||||||
shell: runuser -u spack-test -- bash {0}
|
|
||||||
run: |
|
|
||||||
source share/spack/setup-env.sh
|
|
||||||
spack solve zlib
|
|
||||||
spack bootstrap disable github-actions-v0.5
|
|
||||||
spack bootstrap disable github-actions-v0.4
|
|
||||||
spack -d gpg list
|
|
||||||
tree ~/.spack/bootstrap/store/
|
|
||||||
|
|
||||||
macos-gnupg-binaries:
|
|
||||||
runs-on: macos-latest
|
|
||||||
steps:
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
brew install tree
|
|
||||||
# Remove GnuPG since we want to bootstrap it
|
|
||||||
sudo rm -rf /usr/local/bin/gpg
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
|
||||||
- name: Bootstrap GnuPG
|
- name: Bootstrap GnuPG
|
||||||
run: |
|
run: |
|
||||||
source share/spack/setup-env.sh
|
source share/spack/setup-env.sh
|
||||||
spack bootstrap disable github-actions-v0.4
|
|
||||||
spack bootstrap disable spack-install
|
|
||||||
spack -d gpg list
|
spack -d gpg list
|
||||||
tree ~/.spack/bootstrap/store/
|
tree ~/.spack/bootstrap/store/
|
||||||
|
|
||||||
macos-gnupg-sources:
|
|
||||||
runs-on: macos-latest
|
|
||||||
steps:
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
brew install gawk tree
|
|
||||||
# Remove GnuPG since we want to bootstrap it
|
|
||||||
sudo rm -rf /usr/local/bin/gpg
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
|
||||||
- name: Bootstrap GnuPG
|
|
||||||
run: |
|
|
||||||
source share/spack/setup-env.sh
|
|
||||||
spack solve zlib
|
|
||||||
spack bootstrap disable github-actions-v0.5
|
|
||||||
spack bootstrap disable github-actions-v0.4
|
|
||||||
spack -d gpg list
|
|
||||||
tree ~/.spack/bootstrap/store/
|
|
||||||
|
|
||||||
|
|
||||||
# [1] Distros that have patched git to resolve CVE-2022-24765 (e.g. Ubuntu patching v2.25.1)
|
|
||||||
# introduce breaking behaviorso we have to set `safe.directory` in gitconfig ourselves.
|
|
||||||
# See:
|
|
||||||
# - https://github.blog/2022-04-12-git-security-vulnerability-announced/
|
|
||||||
# - https://github.com/actions/checkout/issues/760
|
|
||||||
# - http://changelogs.ubuntu.com/changelogs/pool/main/g/git/git_2.25.1-1ubuntu3.3/changelog
|
|
||||||
|
34
.github/workflows/build-containers.yml
vendored
34
.github/workflows/build-containers.yml
vendored
@@ -45,19 +45,20 @@ jobs:
|
|||||||
[leap15, 'linux/amd64,linux/arm64,linux/ppc64le', 'opensuse/leap:15'],
|
[leap15, 'linux/amd64,linux/arm64,linux/ppc64le', 'opensuse/leap:15'],
|
||||||
[ubuntu-focal, 'linux/amd64,linux/arm64,linux/ppc64le', 'ubuntu:20.04'],
|
[ubuntu-focal, 'linux/amd64,linux/arm64,linux/ppc64le', 'ubuntu:20.04'],
|
||||||
[ubuntu-jammy, 'linux/amd64,linux/arm64,linux/ppc64le', 'ubuntu:22.04'],
|
[ubuntu-jammy, 'linux/amd64,linux/arm64,linux/ppc64le', 'ubuntu:22.04'],
|
||||||
|
[ubuntu-noble, 'linux/amd64,linux/arm64,linux/ppc64le', 'ubuntu:24.04'],
|
||||||
[almalinux8, 'linux/amd64,linux/arm64,linux/ppc64le', 'almalinux:8'],
|
[almalinux8, 'linux/amd64,linux/arm64,linux/ppc64le', 'almalinux:8'],
|
||||||
[almalinux9, 'linux/amd64,linux/arm64,linux/ppc64le', 'almalinux:9'],
|
[almalinux9, 'linux/amd64,linux/arm64,linux/ppc64le', 'almalinux:9'],
|
||||||
[rockylinux8, 'linux/amd64,linux/arm64', 'rockylinux:8'],
|
[rockylinux8, 'linux/amd64,linux/arm64', 'rockylinux:8'],
|
||||||
[rockylinux9, 'linux/amd64,linux/arm64', 'rockylinux:9'],
|
[rockylinux9, 'linux/amd64,linux/arm64', 'rockylinux:9'],
|
||||||
[fedora37, 'linux/amd64,linux/arm64,linux/ppc64le', 'fedora:37'],
|
[fedora39, 'linux/amd64,linux/arm64,linux/ppc64le', 'fedora:39'],
|
||||||
[fedora38, 'linux/amd64,linux/arm64,linux/ppc64le', 'fedora:38']]
|
[fedora40, 'linux/amd64,linux/arm64,linux/ppc64le', 'fedora:40']]
|
||||||
name: Build ${{ matrix.dockerfile[0] }}
|
name: Build ${{ matrix.dockerfile[0] }}
|
||||||
if: github.repository == 'spack/spack'
|
if: github.repository == 'spack/spack'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # @v2
|
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
|
||||||
|
|
||||||
- uses: docker/metadata-action@31cebacef4805868f9ce9a0cb03ee36c32df2ac4
|
- uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81
|
||||||
id: docker_meta
|
id: docker_meta
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
@@ -87,19 +88,19 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Upload Dockerfile
|
- name: Upload Dockerfile
|
||||||
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32
|
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808
|
||||||
with:
|
with:
|
||||||
name: dockerfiles
|
name: dockerfiles_${{ matrix.dockerfile[0] }}
|
||||||
path: dockerfiles
|
path: dockerfiles
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3
|
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226
|
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb
|
||||||
|
|
||||||
- name: Log in to GitHub Container Registry
|
- name: Log in to GitHub Container Registry
|
||||||
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d
|
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
@@ -107,18 +108,27 @@ jobs:
|
|||||||
|
|
||||||
- name: Log in to DockerHub
|
- name: Log in to DockerHub
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d
|
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Build & Deploy ${{ matrix.dockerfile[0] }}
|
- name: Build & Deploy ${{ matrix.dockerfile[0] }}
|
||||||
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56
|
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0
|
||||||
with:
|
with:
|
||||||
context: dockerfiles/${{ matrix.dockerfile[0] }}
|
context: dockerfiles/${{ matrix.dockerfile[0] }}
|
||||||
platforms: ${{ matrix.dockerfile[1] }}
|
platforms: ${{ matrix.dockerfile[1] }}
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
cache-from: type=gha
|
|
||||||
cache-to: type=gha,mode=max
|
|
||||||
tags: ${{ steps.docker_meta.outputs.tags }}
|
tags: ${{ steps.docker_meta.outputs.tags }}
|
||||||
labels: ${{ steps.docker_meta.outputs.labels }}
|
labels: ${{ steps.docker_meta.outputs.labels }}
|
||||||
|
|
||||||
|
merge-dockerfiles:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: deploy-images
|
||||||
|
steps:
|
||||||
|
- name: Merge Artifacts
|
||||||
|
uses: actions/upload-artifact/merge@65462800fd760344b1a7b4382951275a0abb4808
|
||||||
|
with:
|
||||||
|
name: dockerfiles
|
||||||
|
pattern: dockerfiles_*
|
||||||
|
delete-merged: true
|
||||||
|
13
.github/workflows/ci.yaml
vendored
13
.github/workflows/ci.yaml
vendored
@@ -18,6 +18,7 @@ jobs:
|
|||||||
prechecks:
|
prechecks:
|
||||||
needs: [ changes ]
|
needs: [ changes ]
|
||||||
uses: ./.github/workflows/valid-style.yml
|
uses: ./.github/workflows/valid-style.yml
|
||||||
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
with_coverage: ${{ needs.changes.outputs.core }}
|
with_coverage: ${{ needs.changes.outputs.core }}
|
||||||
all-prechecks:
|
all-prechecks:
|
||||||
@@ -35,12 +36,12 @@ jobs:
|
|||||||
core: ${{ steps.filter.outputs.core }}
|
core: ${{ steps.filter.outputs.core }}
|
||||||
packages: ${{ steps.filter.outputs.packages }}
|
packages: ${{ steps.filter.outputs.packages }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # @v2
|
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
|
||||||
if: ${{ github.event_name == 'push' }}
|
if: ${{ github.event_name == 'push' }}
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
# For pull requests it's not necessary to checkout the code
|
# For pull requests it's not necessary to checkout the code
|
||||||
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50
|
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
|
||||||
id: filter
|
id: filter
|
||||||
with:
|
with:
|
||||||
# See https://github.com/dorny/paths-filter/issues/56 for the syntax used below
|
# See https://github.com/dorny/paths-filter/issues/56 for the syntax used below
|
||||||
@@ -70,16 +71,14 @@ jobs:
|
|||||||
if: ${{ github.repository == 'spack/spack' && needs.changes.outputs.bootstrap == 'true' }}
|
if: ${{ github.repository == 'spack/spack' && needs.changes.outputs.bootstrap == 'true' }}
|
||||||
needs: [ prechecks, changes ]
|
needs: [ prechecks, changes ]
|
||||||
uses: ./.github/workflows/bootstrap.yml
|
uses: ./.github/workflows/bootstrap.yml
|
||||||
|
secrets: inherit
|
||||||
unit-tests:
|
unit-tests:
|
||||||
if: ${{ github.repository == 'spack/spack' && needs.changes.outputs.core == 'true' }}
|
if: ${{ github.repository == 'spack/spack' && needs.changes.outputs.core == 'true' }}
|
||||||
needs: [ prechecks, changes ]
|
needs: [ prechecks, changes ]
|
||||||
uses: ./.github/workflows/unit_tests.yaml
|
uses: ./.github/workflows/unit_tests.yaml
|
||||||
windows:
|
secrets: inherit
|
||||||
if: ${{ github.repository == 'spack/spack' && needs.changes.outputs.core == 'true' }}
|
|
||||||
needs: [ prechecks ]
|
|
||||||
uses: ./.github/workflows/windows_python.yml
|
|
||||||
all:
|
all:
|
||||||
needs: [ windows, unit-tests, bootstrap ]
|
needs: [ unit-tests, bootstrap ]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Success
|
- name: Success
|
||||||
|
4
.github/workflows/nightly-win-builds.yml
vendored
4
.github/workflows/nightly-win-builds.yml
vendored
@@ -14,10 +14,10 @@ jobs:
|
|||||||
build-paraview-deps:
|
build-paraview-deps:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c
|
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d
|
||||||
with:
|
with:
|
||||||
python-version: 3.9
|
python-version: 3.9
|
||||||
- name: Install Python packages
|
- name: Install Python packages
|
||||||
|
10
.github/workflows/style/requirements.txt
vendored
10
.github/workflows/style/requirements.txt
vendored
@@ -1,7 +1,7 @@
|
|||||||
black==23.11.0
|
black==24.4.2
|
||||||
clingo==5.6.2
|
clingo==5.7.1
|
||||||
flake8==6.1.0
|
flake8==7.0.0
|
||||||
isort==5.12.0
|
isort==5.13.2
|
||||||
mypy==1.7.1
|
mypy==1.8.0
|
||||||
types-six==1.16.21.9
|
types-six==1.16.21.9
|
||||||
vermin==1.6.0
|
vermin==1.6.0
|
||||||
|
68
.github/workflows/unit_tests.yaml
vendored
68
.github/workflows/unit_tests.yaml
vendored
@@ -51,10 +51,10 @@ jobs:
|
|||||||
on_develop: false
|
on_develop: false
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # @v2
|
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # @v2
|
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Install System packages
|
- name: Install System packages
|
||||||
@@ -91,17 +91,19 @@ jobs:
|
|||||||
UNIT_TEST_COVERAGE: ${{ matrix.python-version == '3.11' }}
|
UNIT_TEST_COVERAGE: ${{ matrix.python-version == '3.11' }}
|
||||||
run: |
|
run: |
|
||||||
share/spack/qa/run-unit-tests
|
share/spack/qa/run-unit-tests
|
||||||
- uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d
|
- uses: codecov/codecov-action@5ecb98a3c6b747ed38dc09f787459979aebb39be
|
||||||
with:
|
with:
|
||||||
flags: unittests,linux,${{ matrix.concretizer }}
|
flags: unittests,linux,${{ matrix.concretizer }}
|
||||||
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
verbose: true
|
||||||
# Test shell integration
|
# Test shell integration
|
||||||
shell:
|
shell:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # @v2
|
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # @v2
|
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
- name: Install System packages
|
- name: Install System packages
|
||||||
@@ -122,9 +124,11 @@ jobs:
|
|||||||
COVERAGE: true
|
COVERAGE: true
|
||||||
run: |
|
run: |
|
||||||
share/spack/qa/run-shell-tests
|
share/spack/qa/run-shell-tests
|
||||||
- uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d
|
- uses: codecov/codecov-action@5ecb98a3c6b747ed38dc09f787459979aebb39be
|
||||||
with:
|
with:
|
||||||
flags: shelltests,linux
|
flags: shelltests,linux
|
||||||
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
verbose: true
|
||||||
|
|
||||||
# Test RHEL8 UBI with platform Python. This job is run
|
# Test RHEL8 UBI with platform Python. This job is run
|
||||||
# only on PRs modifying core Spack
|
# only on PRs modifying core Spack
|
||||||
@@ -137,7 +141,7 @@ jobs:
|
|||||||
dnf install -y \
|
dnf install -y \
|
||||||
bzip2 curl file gcc-c++ gcc gcc-gfortran git gnupg2 gzip \
|
bzip2 curl file gcc-c++ gcc gcc-gfortran git gnupg2 gzip \
|
||||||
make patch tcl unzip which xz
|
make patch tcl unzip which xz
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # @v2
|
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
|
||||||
- name: Setup repo and non-root user
|
- name: Setup repo and non-root user
|
||||||
run: |
|
run: |
|
||||||
git --version
|
git --version
|
||||||
@@ -156,10 +160,10 @@ jobs:
|
|||||||
clingo-cffi:
|
clingo-cffi:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # @v2
|
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # @v2
|
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
- name: Install System packages
|
- name: Install System packages
|
||||||
@@ -181,20 +185,23 @@ jobs:
|
|||||||
SPACK_TEST_SOLVER: clingo
|
SPACK_TEST_SOLVER: clingo
|
||||||
run: |
|
run: |
|
||||||
share/spack/qa/run-unit-tests
|
share/spack/qa/run-unit-tests
|
||||||
- uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # @v2.1.0
|
- uses: codecov/codecov-action@5ecb98a3c6b747ed38dc09f787459979aebb39be
|
||||||
with:
|
with:
|
||||||
flags: unittests,linux,clingo
|
flags: unittests,linux,clingo
|
||||||
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
verbose: true
|
||||||
# Run unit tests on MacOS
|
# Run unit tests on MacOS
|
||||||
macos:
|
macos:
|
||||||
runs-on: macos-latest
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
os: [macos-13, macos-14]
|
||||||
python-version: ["3.11"]
|
python-version: ["3.11"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # @v2
|
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # @v2
|
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Install Python packages
|
- name: Install Python packages
|
||||||
@@ -216,6 +223,39 @@ jobs:
|
|||||||
$(which spack) solve zlib
|
$(which spack) solve zlib
|
||||||
common_args=(--dist loadfile --tx '4*popen//python=./bin/spack-tmpconfig python -u ./bin/spack python' -x)
|
common_args=(--dist loadfile --tx '4*popen//python=./bin/spack-tmpconfig python -u ./bin/spack python' -x)
|
||||||
$(which spack) unit-test --verbose --cov --cov-config=pyproject.toml --cov-report=xml:coverage.xml "${common_args[@]}"
|
$(which spack) unit-test --verbose --cov --cov-config=pyproject.toml --cov-report=xml:coverage.xml "${common_args[@]}"
|
||||||
- uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d
|
- uses: codecov/codecov-action@5ecb98a3c6b747ed38dc09f787459979aebb39be
|
||||||
with:
|
with:
|
||||||
flags: unittests,macos
|
flags: unittests,macos
|
||||||
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
verbose: true
|
||||||
|
# Run unit tests on Windows
|
||||||
|
windows:
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell:
|
||||||
|
powershell Invoke-Expression -Command "./share/spack/qa/windows_test_setup.ps1"; {0}
|
||||||
|
runs-on: windows-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d
|
||||||
|
with:
|
||||||
|
python-version: 3.9
|
||||||
|
- name: Install Python packages
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip pywin32 setuptools pytest-cov clingo
|
||||||
|
- name: Create local develop
|
||||||
|
run: |
|
||||||
|
./.github/workflows/setup_git.ps1
|
||||||
|
- name: Unit Test
|
||||||
|
run: |
|
||||||
|
spack unit-test -x --verbose --cov --cov-config=pyproject.toml
|
||||||
|
./share/spack/qa/validate_last_exit.ps1
|
||||||
|
coverage combine -a
|
||||||
|
coverage xml
|
||||||
|
- uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c
|
||||||
|
with:
|
||||||
|
flags: unittests,windows
|
||||||
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
verbose: true
|
||||||
|
11
.github/workflows/valid-style.yml
vendored
11
.github/workflows/valid-style.yml
vendored
@@ -18,8 +18,8 @@ jobs:
|
|||||||
validate:
|
validate:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
|
||||||
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c
|
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
cache: 'pip'
|
cache: 'pip'
|
||||||
@@ -35,10 +35,10 @@ jobs:
|
|||||||
style:
|
style:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c
|
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
cache: 'pip'
|
cache: 'pip'
|
||||||
@@ -56,6 +56,7 @@ jobs:
|
|||||||
share/spack/qa/run-style-tests
|
share/spack/qa/run-style-tests
|
||||||
audit:
|
audit:
|
||||||
uses: ./.github/workflows/audit.yaml
|
uses: ./.github/workflows/audit.yaml
|
||||||
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
with_coverage: ${{ inputs.with_coverage }}
|
with_coverage: ${{ inputs.with_coverage }}
|
||||||
python_version: '3.11'
|
python_version: '3.11'
|
||||||
@@ -69,7 +70,7 @@ jobs:
|
|||||||
dnf install -y \
|
dnf install -y \
|
||||||
bzip2 curl file gcc-c++ gcc gcc-gfortran git gnupg2 gzip \
|
bzip2 curl file gcc-c++ gcc gcc-gfortran git gnupg2 gzip \
|
||||||
make patch tcl unzip which xz
|
make patch tcl unzip which xz
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # @v2
|
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
|
||||||
- name: Setup repo and non-root user
|
- name: Setup repo and non-root user
|
||||||
run: |
|
run: |
|
||||||
git --version
|
git --version
|
||||||
|
79
.github/workflows/windows_python.yml
vendored
79
.github/workflows/windows_python.yml
vendored
@@ -1,79 +0,0 @@
|
|||||||
name: windows
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_call:
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: windows-${{github.ref}}-${{github.event.pull_request.number || github.run_number}}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
shell:
|
|
||||||
powershell Invoke-Expression -Command "./share/spack/qa/windows_test_setup.ps1"; {0}
|
|
||||||
jobs:
|
|
||||||
unit-tests:
|
|
||||||
runs-on: windows-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c
|
|
||||||
with:
|
|
||||||
python-version: 3.9
|
|
||||||
- name: Install Python packages
|
|
||||||
run: |
|
|
||||||
python -m pip install --upgrade pip pywin32 setuptools pytest-cov clingo
|
|
||||||
- name: Create local develop
|
|
||||||
run: |
|
|
||||||
./.github/workflows/setup_git.ps1
|
|
||||||
- name: Unit Test
|
|
||||||
run: |
|
|
||||||
spack unit-test -x --verbose --cov --cov-config=pyproject.toml --ignore=lib/spack/spack/test/cmd
|
|
||||||
./share/spack/qa/validate_last_exit.ps1
|
|
||||||
coverage combine -a
|
|
||||||
coverage xml
|
|
||||||
- uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d
|
|
||||||
with:
|
|
||||||
flags: unittests,windows
|
|
||||||
unit-tests-cmd:
|
|
||||||
runs-on: windows-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c
|
|
||||||
with:
|
|
||||||
python-version: 3.9
|
|
||||||
- name: Install Python packages
|
|
||||||
run: |
|
|
||||||
python -m pip install --upgrade pip pywin32 setuptools coverage pytest-cov clingo
|
|
||||||
- name: Create local develop
|
|
||||||
run: |
|
|
||||||
./.github/workflows/setup_git.ps1
|
|
||||||
- name: Command Unit Test
|
|
||||||
run: |
|
|
||||||
spack unit-test -x --verbose --cov --cov-config=pyproject.toml lib/spack/spack/test/cmd
|
|
||||||
./share/spack/qa/validate_last_exit.ps1
|
|
||||||
coverage combine -a
|
|
||||||
coverage xml
|
|
||||||
- uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d
|
|
||||||
with:
|
|
||||||
flags: unittests,windows
|
|
||||||
build-abseil:
|
|
||||||
runs-on: windows-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c
|
|
||||||
with:
|
|
||||||
python-version: 3.9
|
|
||||||
- name: Install Python packages
|
|
||||||
run: |
|
|
||||||
python -m pip install --upgrade pip pywin32 setuptools coverage
|
|
||||||
- name: Build Test
|
|
||||||
run: |
|
|
||||||
spack compiler find
|
|
||||||
spack -d external find cmake ninja
|
|
||||||
spack -d install abseil-cpp
|
|
403
CHANGELOG.md
403
CHANGELOG.md
@@ -1,3 +1,406 @@
|
|||||||
|
# v0.22.1 (2024-07-04)
|
||||||
|
|
||||||
|
## Bugfixes
|
||||||
|
- Fix reuse of externals on Linux (#44316)
|
||||||
|
- Ensure parent gcc-runtime version >= child (#44834, #44870)
|
||||||
|
- Ensure the latest gcc-runtime is rpath'ed when multiple exist among link deps (#44219)
|
||||||
|
- Improve version detection of glibc (#44154)
|
||||||
|
- Improve heuristics for solver (#44893, #44976, #45023)
|
||||||
|
- Make strong preferences override reuse (#44373)
|
||||||
|
- Reduce verbosity when C compiler is missing (#44182)
|
||||||
|
- Make missing ccache executable an error when required (#44740)
|
||||||
|
- Make every environment view containing `python` a `venv` (#44382)
|
||||||
|
- Fix external detection for compilers with os but no target (#44156)
|
||||||
|
- Fix version optimization for roots (#44272)
|
||||||
|
- Handle common implementations of pagination of tags in OCI build caches (#43136)
|
||||||
|
- Apply fetched patches to develop specs (#44950)
|
||||||
|
- Avoid Windows wrappers for filesystem utilities on non-Windows (#44126)
|
||||||
|
- Fix issue with long filenames in build caches on Windows (#43851)
|
||||||
|
- Fix formatting issue in `spack audit` (#45045)
|
||||||
|
- CI fixes (#44582, #43965, #43967, #44279, #44213)
|
||||||
|
|
||||||
|
## Package updates
|
||||||
|
- protobuf: fix 3.4:3.21 patch checksum (#44443)
|
||||||
|
- protobuf: update hash for patch needed when="@3.4:3.21" (#44210)
|
||||||
|
- git: bump v2.39 to 2.45; deprecate unsafe versions (#44248)
|
||||||
|
- gcc: use -rpath {rpath_dir} not -rpath={rpath dir} (#44315)
|
||||||
|
- Remove mesa18 and libosmesa (#44264)
|
||||||
|
- Enforce consistency of `gl` providers (#44307)
|
||||||
|
- Require libiconv for iconv (#44335, #45026).
|
||||||
|
Notice that glibc/musl also provide iconv, but are not guaranteed to be
|
||||||
|
complete. Set `packages:iconv:require:[glibc]` to restore the old behavior.
|
||||||
|
- py-matplotlib: qualify when to do a post install (#44191)
|
||||||
|
- rust: fix v1.78.0 instructions (#44127)
|
||||||
|
- suite-sparse: improve setting of the `libs` property (#44214)
|
||||||
|
- netlib-lapack: provide blas and lapack together (#44981)
|
||||||
|
|
||||||
|
|
||||||
|
# v0.22.0 (2024-05-12)
|
||||||
|
|
||||||
|
`v0.22.0` is a major feature release.
|
||||||
|
|
||||||
|
## Features in this release
|
||||||
|
|
||||||
|
1. **Compiler dependencies**
|
||||||
|
|
||||||
|
We are in the process of making compilers proper dependencies in Spack, and a number
|
||||||
|
of changes in `v0.22` support that effort. You may notice nodes in your dependency
|
||||||
|
graphs for compiler runtime libraries like `gcc-runtime` or `libgfortran`, and you
|
||||||
|
may notice that Spack graphs now include `libc`. We've also begun moving compiler
|
||||||
|
configuration from `compilers.yaml` to `packages.yaml` to make it consistent with
|
||||||
|
other externals. We are trying to do this with the least disruption possible, so
|
||||||
|
your existing `compilers.yaml` files should still work. We expect to be done with
|
||||||
|
this transition by the `v0.23` release in November.
|
||||||
|
|
||||||
|
* #41104: Packages compiled with `%gcc` on Linux, macOS and FreeBSD now depend on a
|
||||||
|
new package `gcc-runtime`, which contains a copy of the shared compiler runtime
|
||||||
|
libraries. This enables gcc runtime libraries to be installed and relocated when
|
||||||
|
using a build cache. When building minimal Spack-generated container images it is
|
||||||
|
no longer necessary to install libgfortran, libgomp etc. using the system package
|
||||||
|
manager.
|
||||||
|
|
||||||
|
* #42062: Packages compiled with `%oneapi` now depend on a new package
|
||||||
|
`intel-oneapi-runtime`. This is similar to `gcc-runtime`, and the runtimes can
|
||||||
|
provide virtuals and compilers can inject dependencies on virtuals into compiled
|
||||||
|
packages. This allows us to model library soname compatibility and allows
|
||||||
|
compilers like `%oneapi` to provide virtuals like `sycl` (which can also be
|
||||||
|
provided by standalone libraries). Note that until we have an agreement in place
|
||||||
|
with intel, Intel packages are marked `redistribute(source=False, binary=False)`
|
||||||
|
and must be downloaded outside of Spack.
|
||||||
|
|
||||||
|
* #43272: changes to the optimization criteria of the solver improve the hit-rate of
|
||||||
|
buildcaches by a fair amount. The solver more relaxed compatibility rules and will
|
||||||
|
not try to strictly match compilers or targets of reused specs. Users can still
|
||||||
|
enforce the previous strict behavior with `require:` sections in `packages.yaml`.
|
||||||
|
Note that to enforce correct linking, Spack will *not* reuse old `%gcc` and
|
||||||
|
`%oneapi` specs that do not have the runtime libraries as a dependency.
|
||||||
|
|
||||||
|
* #43539: Spack will reuse specs built with compilers that are *not* explicitly
|
||||||
|
configured in `compilers.yaml`. Because we can now keep runtime libraries in build
|
||||||
|
cache, we do not require you to also have a local configured compiler to *use* the
|
||||||
|
runtime libraries. This improves reuse in buildcaches and avoids conflicts with OS
|
||||||
|
updates that happen underneath Spack.
|
||||||
|
|
||||||
|
* #43190: binary compatibility on `linux` is now based on the `libc` version,
|
||||||
|
instead of on the `os` tag. Spack builds now detect the host `libc` (`glibc` or
|
||||||
|
`musl`) and add it as an implicit external node in the dependency graph. Binaries
|
||||||
|
with a `libc` with the same name and a version less than or equal to that of the
|
||||||
|
detected `libc` can be reused. This is only on `linux`, not `macos` or `Windows`.
|
||||||
|
|
||||||
|
* #43464: each package that can provide a compiler is now detectable using `spack
|
||||||
|
external find`. External packages defining compiler paths are effectively used as
|
||||||
|
compilers, and `spack external find -t compiler` can be used as a substitute for
|
||||||
|
`spack compiler find`. More details on this transition are in
|
||||||
|
[the docs](https://spack.readthedocs.io/en/latest/getting_started.html#manual-compiler-configuration)
|
||||||
|
|
||||||
|
2. **Improved `spack find` UI for Environments**
|
||||||
|
|
||||||
|
If you're working in an enviroment, you likely care about:
|
||||||
|
|
||||||
|
* What are the roots
|
||||||
|
* Which ones are installed / not installed
|
||||||
|
* What's been added that still needs to be concretized
|
||||||
|
|
||||||
|
We've tweaked `spack find` in environments to show this information much more
|
||||||
|
clearly. Installation status is shown next to each root, so you can see what is
|
||||||
|
installed. Roots are also shown in bold in the list of installed packages. There is
|
||||||
|
also a new option for `spack find -r` / `--only-roots` that will only show env
|
||||||
|
roots, if you don't want to look at all the installed specs.
|
||||||
|
|
||||||
|
More details in #42334.
|
||||||
|
|
||||||
|
3. **Improved command-line string quoting**
|
||||||
|
|
||||||
|
We are making some breaking changes to how Spack parses specs on the CLI in order to
|
||||||
|
respect shell quoting instead of trying to fight it. If you (sadly) had to write
|
||||||
|
something like this on the command line:
|
||||||
|
|
||||||
|
```
|
||||||
|
spack install zlib cflags=\"-O2 -g\"
|
||||||
|
```
|
||||||
|
|
||||||
|
That will now result in an error, but you can now write what you probably expected
|
||||||
|
to work in the first place:
|
||||||
|
|
||||||
|
```
|
||||||
|
spack install zlib cflags="-O2 -g"
|
||||||
|
```
|
||||||
|
|
||||||
|
Quoted can also now include special characters, so you can supply flags like:
|
||||||
|
|
||||||
|
```
|
||||||
|
spack intall zlib ldflags='-Wl,-rpath=$ORIGIN/_libs'
|
||||||
|
```
|
||||||
|
|
||||||
|
To reduce ambiguity in parsing, we now require that you *not* put spaces around `=`
|
||||||
|
and `==` when for flags or variants. This would not have broken before but will now
|
||||||
|
result in an error:
|
||||||
|
|
||||||
|
```
|
||||||
|
spack install zlib cflags = "-O2 -g"
|
||||||
|
```
|
||||||
|
|
||||||
|
More details and discussion in #30634.
|
||||||
|
|
||||||
|
4. **Revert default `spack install` behavior to `--reuse`**
|
||||||
|
|
||||||
|
We changed the default concretizer behavior from `--reuse` to `--reuse-deps` in
|
||||||
|
#30990 (in `v0.20`), which meant that *every* `spack install` invocation would
|
||||||
|
attempt to build a new version of the requested package / any environment roots.
|
||||||
|
While this is a common ask for *upgrading* and for *developer* workflows, we don't
|
||||||
|
think it should be the default for a package manager.
|
||||||
|
|
||||||
|
We are going to try to stick to this policy:
|
||||||
|
1. Prioritize reuse and build as little as possible by default.
|
||||||
|
2. Only upgrade or install duplicates if they are explicitly asked for, or if there
|
||||||
|
is a known security issue that necessitates an upgrade.
|
||||||
|
|
||||||
|
With the install command you now have three options:
|
||||||
|
|
||||||
|
* `--reuse` (default): reuse as many existing installations as possible.
|
||||||
|
* `--reuse-deps` / `--fresh-roots`: upgrade (freshen) roots but reuse dependencies if possible.
|
||||||
|
* `--fresh`: install fresh versions of requested packages (roots) and their dependencies.
|
||||||
|
|
||||||
|
We've also introduced `--fresh-roots` as an alias for `--reuse-deps` to make it more clear
|
||||||
|
that it may give you fresh versions. More details in #41302 and #43988.
|
||||||
|
|
||||||
|
5. **More control over reused specs**
|
||||||
|
|
||||||
|
You can now control which packages to reuse and how. There is a new
|
||||||
|
`concretizer:reuse` config option, which accepts the following properties:
|
||||||
|
|
||||||
|
- `roots`: `true` to reuse roots, `false` to reuse just dependencies
|
||||||
|
- `exclude`: list of constraints used to select which specs *not* to reuse
|
||||||
|
- `include`: list of constraints used to select which specs *to* reuse
|
||||||
|
- `from`: list of sources for reused specs (some combination of `local`,
|
||||||
|
`buildcache`, or `external`)
|
||||||
|
|
||||||
|
For example, to reuse only specs compiled with GCC, you could write:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
concretizer:
|
||||||
|
reuse:
|
||||||
|
roots: true
|
||||||
|
include:
|
||||||
|
- "%gcc"
|
||||||
|
```
|
||||||
|
|
||||||
|
Or, if `openmpi` must be used from externals, and it must be the only external used:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
concretizer:
|
||||||
|
reuse:
|
||||||
|
roots: true
|
||||||
|
from:
|
||||||
|
- type: local
|
||||||
|
exclude: ["openmpi"]
|
||||||
|
- type: buildcache
|
||||||
|
exclude: ["openmpi"]
|
||||||
|
- type: external
|
||||||
|
include: ["openmpi"]
|
||||||
|
```
|
||||||
|
|
||||||
|
6. **New `redistribute()` directive**
|
||||||
|
|
||||||
|
Some packages can't be redistributed in source or binary form. We need an explicit
|
||||||
|
way to say that in a package.
|
||||||
|
|
||||||
|
Now there is a `redistribute()` directive so that package authors can write:
|
||||||
|
|
||||||
|
```python
|
||||||
|
class MyPackage(Package):
|
||||||
|
redistribute(source=False, binary=False)
|
||||||
|
```
|
||||||
|
|
||||||
|
Like other directives, this works with `when=`:
|
||||||
|
|
||||||
|
```python
|
||||||
|
class MyPackage(Package):
|
||||||
|
# 12.0 and higher are proprietary
|
||||||
|
redistribute(source=False, binary=False, when="@12.0:")
|
||||||
|
|
||||||
|
# can't redistribute when we depend on some proprietary dependency
|
||||||
|
redistribute(source=False, binary=False, when="^proprietary-dependency")
|
||||||
|
```
|
||||||
|
|
||||||
|
More in #20185.
|
||||||
|
|
||||||
|
7. **New `conflict:` and `prefer:` syntax for package preferences**
|
||||||
|
|
||||||
|
Previously, you could express conflicts and preferences in `packages.yaml` through
|
||||||
|
some contortions with `require:`:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
packages:
|
||||||
|
zlib-ng:
|
||||||
|
require:
|
||||||
|
- one_of: ["%clang", "@:"] # conflict on %clang
|
||||||
|
- any_of: ["+shared", "@:"] # strong preference for +shared
|
||||||
|
```
|
||||||
|
|
||||||
|
You can now use `require:` and `prefer:` for a much more readable configuration:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
packages:
|
||||||
|
zlib-ng:
|
||||||
|
conflict:
|
||||||
|
- "%clang"
|
||||||
|
prefer:
|
||||||
|
- "+shared"
|
||||||
|
```
|
||||||
|
|
||||||
|
See [the documentation](https://spack.readthedocs.io/en/latest/packages_yaml.html#conflicts-and-strong-preferences)
|
||||||
|
and #41832 for more details.
|
||||||
|
|
||||||
|
8. **`include_concrete` in environments**
|
||||||
|
|
||||||
|
You may want to build on the *concrete* contents of another environment without
|
||||||
|
changing that environment. You can now include the concrete specs from another
|
||||||
|
environment's `spack.lock` with `include_concrete`:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
spack:
|
||||||
|
specs: []
|
||||||
|
concretizer:
|
||||||
|
unify: true
|
||||||
|
include_concrete:
|
||||||
|
- /path/to/environment1
|
||||||
|
- /path/to/environment2
|
||||||
|
```
|
||||||
|
|
||||||
|
Now, when *this* environment is concretized, it will bring in the already concrete
|
||||||
|
specs from `environment1` and `environment2`, and build on top of them without
|
||||||
|
changing them. This is useful if you have phased deployments, where old deployments
|
||||||
|
should not be modified but you want to use as many of them as possible. More details
|
||||||
|
in #33768.
|
||||||
|
|
||||||
|
9. **`python-venv` isolation**
|
||||||
|
|
||||||
|
Spack has unique requirements for Python because it:
|
||||||
|
1. installs every package in its own independent directory, and
|
||||||
|
2. allows users to register *external* python installations.
|
||||||
|
|
||||||
|
External installations may contain their own installed packages that can interfere
|
||||||
|
with Spack installations, and some distributions (Debian and Ubuntu) even change the
|
||||||
|
`sysconfig` in ways that alter the installation layout of installed Python packages
|
||||||
|
(e.g., with the addition of a `/local` prefix on Debian or Ubuntu). To isolate Spack
|
||||||
|
from these and other issues, we now insert a small `python-venv` package in between
|
||||||
|
`python` and packages that need to install Python code. This isolates Spack's build
|
||||||
|
environment, isolates Spack from any issues with an external python, and resolves a
|
||||||
|
large number of issues we've had with Python installations.
|
||||||
|
|
||||||
|
See #40773 for further details.
|
||||||
|
|
||||||
|
## New commands, options, and directives
|
||||||
|
|
||||||
|
* Allow packages to be pushed to build cache after install from source (#42423)
|
||||||
|
* `spack develop`: stage build artifacts in same root as non-dev builds #41373
|
||||||
|
* Don't delete `spack develop` build artifacts after install (#43424)
|
||||||
|
* `spack find`: add options for local/upstream only (#42999)
|
||||||
|
* `spack logs`: print log files for packages (either partially built or installed) (#42202)
|
||||||
|
* `patch`: support reversing patches (#43040)
|
||||||
|
* `develop`: Add -b/--build-directory option to set build_directory package attribute (#39606)
|
||||||
|
* `spack list`: add `--namesapce` / `--repo` option (#41948)
|
||||||
|
* directives: add `checked_by` field to `license()`, add some license checks
|
||||||
|
* `spack gc`: add options for environments and build dependencies (#41731)
|
||||||
|
* Add `--create` to `spack env activate` (#40896)
|
||||||
|
|
||||||
|
## Performance improvements
|
||||||
|
|
||||||
|
* environment.py: fix excessive re-reads (#43746)
|
||||||
|
* ruamel yaml: fix quadratic complexity bug (#43745)
|
||||||
|
* Refactor to improve `spec format` speed (#43712)
|
||||||
|
* Do not acquire a write lock on the env post install if no views (#43505)
|
||||||
|
* asp.py: fewer calls to `spec.copy()` (#43715)
|
||||||
|
* spec.py: early return in `__str__`
|
||||||
|
* avoid `jinja2` import at startup unless needed (#43237)
|
||||||
|
|
||||||
|
## Other new features of note
|
||||||
|
|
||||||
|
* `archspec`: update to `v0.2.4`: support for Windows, bugfixes for `neoverse-v1` and
|
||||||
|
`neoverse-v2` detection.
|
||||||
|
* `spack config get`/`blame`: with no args, show entire config
|
||||||
|
* `spack env create <env>`: dir if dir-like (#44024)
|
||||||
|
* ASP-based solver: update os compatibility for macOS (#43862)
|
||||||
|
* Add handling of custom ssl certs in urllib ops (#42953)
|
||||||
|
* Add ability to rename environments (#43296)
|
||||||
|
* Add config option and compiler support to reuse across OS's (#42693)
|
||||||
|
* Support for prereleases (#43140)
|
||||||
|
* Only reuse externals when configured (#41707)
|
||||||
|
* Environments: Add support for including views (#42250)
|
||||||
|
|
||||||
|
## Binary caches
|
||||||
|
* Build cache: make signed/unsigned a mirror property (#41507)
|
||||||
|
* tools stack
|
||||||
|
|
||||||
|
## Removals, deprecations, and syntax changes
|
||||||
|
* remove `dpcpp` compiler and package (#43418)
|
||||||
|
* spack load: remove --only argument (#42120)
|
||||||
|
|
||||||
|
## Notable Bugfixes
|
||||||
|
* repo.py: drop deleted packages from provider cache (#43779)
|
||||||
|
* Allow `+` in module file names (#41999)
|
||||||
|
* `cmd/python`: use runpy to allow multiprocessing in scripts (#41789)
|
||||||
|
* Show extension commands with spack -h (#41726)
|
||||||
|
* Support environment variable expansion inside module projections (#42917)
|
||||||
|
* Alert user to failed concretizations (#42655)
|
||||||
|
* shell: fix zsh color formatting for PS1 in environments (#39497)
|
||||||
|
* spack mirror create --all: include patches (#41579)
|
||||||
|
|
||||||
|
## Spack community stats
|
||||||
|
|
||||||
|
* 7,994 total packages; 525 since `v0.21.0`
|
||||||
|
* 178 new Python packages, 5 new R packages
|
||||||
|
* 358 people contributed to this release
|
||||||
|
* 344 committers to packages
|
||||||
|
* 45 committers to core
|
||||||
|
|
||||||
|
|
||||||
|
# v0.21.2 (2024-03-01)
|
||||||
|
|
||||||
|
## Bugfixes
|
||||||
|
|
||||||
|
- Containerize: accommodate nested or pre-existing spack-env paths (#41558)
|
||||||
|
- Fix setup-env script, when going back and forth between instances (#40924)
|
||||||
|
- Fix using fully-qualified namespaces from root specs (#41957)
|
||||||
|
- Fix a bug when a required provider is requested for multiple virtuals (#42088)
|
||||||
|
- OCI buildcaches:
|
||||||
|
- only push in parallel when forking (#42143)
|
||||||
|
- use pickleable errors (#42160)
|
||||||
|
- Fix using sticky variants in externals (#42253)
|
||||||
|
- Fix a rare issue with conditional requirements and multi-valued variants (#42566)
|
||||||
|
|
||||||
|
## Package updates
|
||||||
|
- rust: add v1.75, rework a few variants (#41161,#41903)
|
||||||
|
- py-transformers: add v4.35.2 (#41266)
|
||||||
|
- mgard: fix OpenMP on AppleClang (#42933)
|
||||||
|
|
||||||
|
# v0.21.1 (2024-01-11)
|
||||||
|
|
||||||
|
## New features
|
||||||
|
- Add support for reading buildcaches created by Spack v0.22 (#41773)
|
||||||
|
|
||||||
|
## Bugfixes
|
||||||
|
|
||||||
|
- spack graph: fix coloring with environments (#41240)
|
||||||
|
- spack info: sort variants in --variants-by-name (#41389)
|
||||||
|
- Spec.format: error on old style format strings (#41934)
|
||||||
|
- ASP-based solver:
|
||||||
|
- fix infinite recursion when computing concretization errors (#41061)
|
||||||
|
- don't error for type mismatch on preferences (#41138)
|
||||||
|
- don't emit spurious debug output (#41218)
|
||||||
|
- Improve the error message for deprecated preferences (#41075)
|
||||||
|
- Fix MSVC preview version breaking clingo build on Windows (#41185)
|
||||||
|
- Fix multi-word aliases (#41126)
|
||||||
|
- Add a warning for unconfigured compiler (#41213)
|
||||||
|
- environment: fix an issue with deconcretization/reconcretization of specs (#41294)
|
||||||
|
- buildcache: don't error if a patch is missing, when installing from binaries (#41986)
|
||||||
|
- Multiple improvements to unit-tests (#41215,#41369,#41495,#41359,#41361,#41345,#41342,#41308,#41226)
|
||||||
|
|
||||||
|
## Package updates
|
||||||
|
- root: add a webgui patch to address security issue (#41404)
|
||||||
|
- BerkeleyGW: update source urls (#38218)
|
||||||
|
|
||||||
# v0.21.0 (2023-11-11)
|
# v0.21.0 (2023-11-11)
|
||||||
|
|
||||||
`v0.21.0` is a major feature release.
|
`v0.21.0` is a major feature release.
|
||||||
|
20
CITATION.cff
20
CITATION.cff
@@ -31,13 +31,17 @@ type: software
|
|||||||
message: "If you are referencing Spack in a publication, please cite the paper below."
|
message: "If you are referencing Spack in a publication, please cite the paper below."
|
||||||
title: "The Spack Package Manager: Bringing Order to HPC Software Chaos"
|
title: "The Spack Package Manager: Bringing Order to HPC Software Chaos"
|
||||||
abstract: >-
|
abstract: >-
|
||||||
Large HPC centers spend considerable time supporting software for thousands of users, but the complexity of HPC software is quickly outpacing the capabilities of existing software management tools.
|
Large HPC centers spend considerable time supporting software for thousands of users, but the
|
||||||
Scientific applications require specific versions of compilers, MPI, and other dependency libraries, so using a single, standard software stack is infeasible.
|
complexity of HPC software is quickly outpacing the capabilities of existing software management
|
||||||
However, managing many configurations is difficult because the configuration space is combinatorial in size.
|
tools. Scientific applications require specific versions of compilers, MPI, and other dependency
|
||||||
We introduce Spack, a tool used at Lawrence Livermore National Laboratory to manage this complexity.
|
libraries, so using a single, standard software stack is infeasible. However, managing many
|
||||||
Spack provides a novel, re- cursive specification syntax to invoke parametric builds of packages and dependencies.
|
configurations is difficult because the configuration space is combinatorial in size. We
|
||||||
It allows any number of builds to coexist on the same system, and it ensures that installed packages can find their dependencies, regardless of the environment.
|
introduce Spack, a tool used at Lawrence Livermore National Laboratory to manage this complexity.
|
||||||
We show through real-world use cases that Spack supports diverse and demanding applications, bringing order to HPC software chaos.
|
Spack provides a novel, re- cursive specification syntax to invoke parametric builds of packages
|
||||||
|
and dependencies. It allows any number of builds to coexist on the same system, and it ensures
|
||||||
|
that installed packages can find their dependencies, regardless of the environment. We show
|
||||||
|
through real-world use cases that Spack supports diverse and demanding applications, bringing
|
||||||
|
order to HPC software chaos.
|
||||||
preferred-citation:
|
preferred-citation:
|
||||||
title: "The Spack Package Manager: Bringing Order to HPC Software Chaos"
|
title: "The Spack Package Manager: Bringing Order to HPC Software Chaos"
|
||||||
type: conference-paper
|
type: conference-paper
|
||||||
@@ -71,7 +75,7 @@ preferred-citation:
|
|||||||
type: doi
|
type: doi
|
||||||
value: 10.1145/2807591.2807623
|
value: 10.1145/2807591.2807623
|
||||||
- description: "The DOE Document Release Number of the work"
|
- description: "The DOE Document Release Number of the work"
|
||||||
type: other
|
type: other
|
||||||
value: "LLNL-CONF-669890"
|
value: "LLNL-CONF-669890"
|
||||||
authors:
|
authors:
|
||||||
- family-names: "Gamblin"
|
- family-names: "Gamblin"
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2013-2023 LLNS, LLC and other Spack Project Developers.
|
Copyright (c) 2013-2024 LLNS, LLC and other Spack Project Developers.
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
41
README.md
41
README.md
@@ -1,13 +1,34 @@
|
|||||||
# <img src="https://cdn.rawgit.com/spack/spack/develop/share/spack/logo/spack-logo.svg" width="64" valign="middle" alt="Spack"/> Spack
|
<div align="left">
|
||||||
|
|
||||||
[](https://github.com/spack/spack/actions)
|
<h2>
|
||||||
[](https://github.com/spack/spack/actions/workflows/bootstrap.yml)
|
<picture>
|
||||||
[](https://codecov.io/gh/spack/spack)
|
<source media="(prefers-color-scheme: dark)" srcset="https://cdn.rawgit.com/spack/spack/develop/share/spack/logo/spack-logo-white-text.svg" width="250">
|
||||||
[](https://github.com/spack/spack/actions/workflows/build-containers.yml)
|
<source media="(prefers-color-scheme: light)" srcset="https://cdn.rawgit.com/spack/spack/develop/share/spack/logo/spack-logo-text.svg" width="250">
|
||||||
[](https://spack.readthedocs.io)
|
<img alt="Spack" src="https://cdn.rawgit.com/spack/spack/develop/share/spack/logo/spack-logo-text.svg" width="250">
|
||||||
[](https://github.com/psf/black)
|
</picture>
|
||||||
[](https://slack.spack.io)
|
|
||||||
[](https://matrix.to/#/#spack-space:matrix.org)
|
<br>
|
||||||
|
<br clear="all">
|
||||||
|
|
||||||
|
<a href="https://github.com/spack/spack/actions/workflows/ci.yml"><img src="https://github.com/spack/spack/workflows/ci/badge.svg" alt="CI Status"></a>
|
||||||
|
<a href="https://github.com/spack/spack/actions/workflows/bootstrapping.yml"><img src="https://github.com/spack/spack/actions/workflows/bootstrap.yml/badge.svg" alt="Bootstrap Status"></a>
|
||||||
|
<a href="https://github.com/spack/spack/actions/workflows/build-containers.yml"><img src="https://github.com/spack/spack/actions/workflows/build-containers.yml/badge.svg" alt="Containers Status"></a>
|
||||||
|
<a href="https://spack.readthedocs.io"><img src="https://readthedocs.org/projects/spack/badge/?version=latest" alt="Documentation Status"></a>
|
||||||
|
<a href="https://codecov.io/gh/spack/spack"><img src="https://codecov.io/gh/spack/spack/branch/develop/graph/badge.svg" alt="Code coverage"/></a>
|
||||||
|
<a href="https://slack.spack.io"><img src="https://slack.spack.io/badge.svg" alt="Slack"/></a>
|
||||||
|
<a href="https://matrix.to/#/#spack-space:matrix.org"><img src="https://img.shields.io/matrix/spack-space%3Amatrix.org?label=matrix" alt="Matrix"/></a>
|
||||||
|
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
**[Getting Started] • [Config] • [Community] • [Contributing] • [Packaging Guide]**
|
||||||
|
|
||||||
|
[Getting Started]: https://spack.readthedocs.io/en/latest/getting_started.html
|
||||||
|
[Config]: https://spack.readthedocs.io/en/latest/configuration.html
|
||||||
|
[Community]: #community
|
||||||
|
[Contributing]: https://spack.readthedocs.io/en/latest/contribution_guide.html
|
||||||
|
[Packaging Guide]: https://spack.readthedocs.io/en/latest/packaging_guide.html
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
Spack is a multi-platform package manager that builds and installs
|
Spack is a multi-platform package manager that builds and installs
|
||||||
multiple versions and configurations of software. It works on Linux,
|
multiple versions and configurations of software. It works on Linux,
|
||||||
@@ -67,7 +88,7 @@ Resources:
|
|||||||
[bridged](https://github.com/matrix-org/matrix-appservice-slack#matrix-appservice-slack) to Slack.
|
[bridged](https://github.com/matrix-org/matrix-appservice-slack#matrix-appservice-slack) to Slack.
|
||||||
* [**Github Discussions**](https://github.com/spack/spack/discussions):
|
* [**Github Discussions**](https://github.com/spack/spack/discussions):
|
||||||
for Q&A and discussions. Note the pinned discussions for announcements.
|
for Q&A and discussions. Note the pinned discussions for announcements.
|
||||||
* **Twitter**: [@spackpm](https://twitter.com/spackpm). Be sure to
|
* **X**: [@spackpm](https://twitter.com/spackpm). Be sure to
|
||||||
`@mention` us!
|
`@mention` us!
|
||||||
* **Mailing list**: [groups.google.com/d/forum/spack](https://groups.google.com/d/forum/spack):
|
* **Mailing list**: [groups.google.com/d/forum/spack](https://groups.google.com/d/forum/spack):
|
||||||
only for announcements. Please use other venues for discussions.
|
only for announcements. Please use other venues for discussions.
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
# sbang project developers. See the top-level COPYRIGHT file for details.
|
# sbang project developers. See the top-level COPYRIGHT file for details.
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# -*- python -*-
|
# -*- python -*-
|
||||||
#
|
#
|
||||||
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
:: Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
:: Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
:: Spack Project Developers. See the top-level COPYRIGHT file for details.
|
:: Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
::
|
::
|
||||||
:: SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
:: SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
@@ -144,3 +144,5 @@ switch($SpackSubCommand)
|
|||||||
"unload" {Invoke-SpackLoad}
|
"unload" {Invoke-SpackLoad}
|
||||||
default {python "$Env:SPACK_ROOT/bin/spack" $SpackCMD_params $SpackSubCommand $SpackSubCommandArgs}
|
default {python "$Env:SPACK_ROOT/bin/spack" $SpackCMD_params $SpackSubCommand $SpackSubCommandArgs}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
exit $LASTEXITCODE
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -15,7 +15,7 @@ concretizer:
|
|||||||
# as possible, rather than building. If `false`, we'll always give you a fresh
|
# as possible, rather than building. If `false`, we'll always give you a fresh
|
||||||
# concretization. If `dependencies`, we'll only reuse dependencies but
|
# concretization. If `dependencies`, we'll only reuse dependencies but
|
||||||
# give you a fresh concretization for your root specs.
|
# give you a fresh concretization for your root specs.
|
||||||
reuse: dependencies
|
reuse: true
|
||||||
# Options that tune which targets are considered for concretization. The
|
# Options that tune which targets are considered for concretization. The
|
||||||
# concretization process is very sensitive to the number targets, and the time
|
# concretization process is very sensitive to the number targets, and the time
|
||||||
# needed to reach a solution increases noticeably with the number of targets
|
# needed to reach a solution increases noticeably with the number of targets
|
||||||
@@ -42,3 +42,8 @@ concretizer:
|
|||||||
# "minimal": allows the duplication of 'build-tools' nodes only (e.g. py-setuptools, cmake etc.)
|
# "minimal": allows the duplication of 'build-tools' nodes only (e.g. py-setuptools, cmake etc.)
|
||||||
# "full" (experimental): allows separation of the entire build-tool stack (e.g. the entire "cmake" subDAG)
|
# "full" (experimental): allows separation of the entire build-tool stack (e.g. the entire "cmake" subDAG)
|
||||||
strategy: minimal
|
strategy: minimal
|
||||||
|
# Option to specify compatiblity between operating systems for reuse of compilers and packages
|
||||||
|
# Specified as a key: [list] where the key is the os that is being targeted, and the list contains the OS's
|
||||||
|
# it can reuse. Note this is a directional compatibility so mutual compatibility between two OS's
|
||||||
|
# requires two entries i.e. os_compatible: {sonoma: [monterey], monterey: [sonoma]}
|
||||||
|
os_compatible: {}
|
||||||
|
@@ -101,6 +101,12 @@ config:
|
|||||||
verify_ssl: true
|
verify_ssl: true
|
||||||
|
|
||||||
|
|
||||||
|
# This is where custom certs for proxy/firewall are stored.
|
||||||
|
# It can be a path or environment variable. To match ssl env configuration
|
||||||
|
# the default is the environment variable SSL_CERT_FILE
|
||||||
|
ssl_certs: $SSL_CERT_FILE
|
||||||
|
|
||||||
|
|
||||||
# Suppress gpg warnings from binary package verification
|
# Suppress gpg warnings from binary package verification
|
||||||
# Only suppresses warnings, gpg failure will still fail the install
|
# Only suppresses warnings, gpg failure will still fail the install
|
||||||
# Potential rationale to set True: users have already explicitly trusted the
|
# Potential rationale to set True: users have already explicitly trusted the
|
||||||
|
@@ -19,7 +19,6 @@ packages:
|
|||||||
- apple-clang
|
- apple-clang
|
||||||
- clang
|
- clang
|
||||||
- gcc
|
- gcc
|
||||||
- intel
|
|
||||||
providers:
|
providers:
|
||||||
elf: [libelf]
|
elf: [libelf]
|
||||||
fuse: [macfuse]
|
fuse: [macfuse]
|
||||||
|
3
etc/spack/defaults/linux/packages.yaml
Normal file
3
etc/spack/defaults/linux/packages.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
packages:
|
||||||
|
iconv:
|
||||||
|
require: [libiconv]
|
@@ -15,15 +15,17 @@
|
|||||||
# -------------------------------------------------------------------------
|
# -------------------------------------------------------------------------
|
||||||
packages:
|
packages:
|
||||||
all:
|
all:
|
||||||
compiler: [gcc, intel, pgi, clang, xl, nag, fj, aocc]
|
compiler: [gcc, clang, oneapi, xl, nag, fj, aocc]
|
||||||
providers:
|
providers:
|
||||||
awk: [gawk]
|
awk: [gawk]
|
||||||
|
armci: [armcimpi]
|
||||||
blas: [openblas, amdblis]
|
blas: [openblas, amdblis]
|
||||||
D: [ldc]
|
D: [ldc]
|
||||||
daal: [intel-oneapi-daal]
|
daal: [intel-oneapi-daal]
|
||||||
elf: [elfutils]
|
elf: [elfutils]
|
||||||
fftw-api: [fftw, amdfftw]
|
fftw-api: [fftw, amdfftw]
|
||||||
flame: [libflame, amdlibflame]
|
flame: [libflame, amdlibflame]
|
||||||
|
fortran-rt: [gcc-runtime, intel-oneapi-runtime]
|
||||||
fuse: [libfuse]
|
fuse: [libfuse]
|
||||||
gl: [glx, osmesa]
|
gl: [glx, osmesa]
|
||||||
glu: [mesa-glu, openglu]
|
glu: [mesa-glu, openglu]
|
||||||
@@ -34,9 +36,11 @@ packages:
|
|||||||
java: [openjdk, jdk, ibm-java]
|
java: [openjdk, jdk, ibm-java]
|
||||||
jpeg: [libjpeg-turbo, libjpeg]
|
jpeg: [libjpeg-turbo, libjpeg]
|
||||||
lapack: [openblas, amdlibflame]
|
lapack: [openblas, amdlibflame]
|
||||||
libglx: [mesa+glx, mesa18+glx]
|
libc: [glibc, musl]
|
||||||
|
libgfortran: [ gcc-runtime ]
|
||||||
|
libglx: [mesa+glx]
|
||||||
|
libifcore: [ intel-oneapi-runtime ]
|
||||||
libllvm: [llvm]
|
libllvm: [llvm]
|
||||||
libosmesa: [mesa+osmesa, mesa18+osmesa]
|
|
||||||
lua-lang: [lua, lua-luajit-openresty, lua-luajit]
|
lua-lang: [lua, lua-luajit-openresty, lua-luajit]
|
||||||
luajit: [lua-luajit-openresty, lua-luajit]
|
luajit: [lua-luajit-openresty, lua-luajit]
|
||||||
mariadb-client: [mariadb-c-client, mariadb]
|
mariadb-client: [mariadb-c-client, mariadb]
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
12
lib/spack/docs/_templates/layout.html
vendored
Normal file
12
lib/spack/docs/_templates/layout.html
vendored
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{% extends "!layout.html" %}
|
||||||
|
|
||||||
|
{%- block extrahead %}
|
||||||
|
<!-- Google tag (gtag.js) -->
|
||||||
|
<script async src="https://www.googletagmanager.com/gtag/js?id=G-S0PQ7WV75K"></script>
|
||||||
|
<script>
|
||||||
|
window.dataLayer = window.dataLayer || [];
|
||||||
|
function gtag(){dataLayer.push(arguments);}
|
||||||
|
gtag('js', new Date());
|
||||||
|
gtag('config', 'G-S0PQ7WV75K');
|
||||||
|
</script>
|
||||||
|
{% endblock %}
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
@@ -865,7 +865,7 @@ There are several different ways to use Spack packages once you have
|
|||||||
installed them. As you've seen, spack packages are installed into long
|
installed them. As you've seen, spack packages are installed into long
|
||||||
paths with hashes, and you need a way to get them into your path. The
|
paths with hashes, and you need a way to get them into your path. The
|
||||||
easiest way is to use :ref:`spack load <cmd-spack-load>`, which is
|
easiest way is to use :ref:`spack load <cmd-spack-load>`, which is
|
||||||
described in the next section.
|
described in this section.
|
||||||
|
|
||||||
Some more advanced ways to use Spack packages include:
|
Some more advanced ways to use Spack packages include:
|
||||||
|
|
||||||
@@ -959,7 +959,86 @@ use ``spack find --loaded``.
|
|||||||
You can also use ``spack load --list`` to get the same output, but it
|
You can also use ``spack load --list`` to get the same output, but it
|
||||||
does not have the full set of query options that ``spack find`` offers.
|
does not have the full set of query options that ``spack find`` offers.
|
||||||
|
|
||||||
We'll learn more about Spack's spec syntax in the next section.
|
We'll learn more about Spack's spec syntax in :ref:`a later section <sec-specs>`.
|
||||||
|
|
||||||
|
|
||||||
|
.. _extensions:
|
||||||
|
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
Python packages and virtual environments
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
Spack can install a large number of Python packages. Their names are
|
||||||
|
typically prefixed with ``py-``. Installing and using them is no
|
||||||
|
different from any other package:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ spack install py-numpy
|
||||||
|
$ spack load py-numpy
|
||||||
|
$ python3
|
||||||
|
>>> import numpy
|
||||||
|
|
||||||
|
The ``spack load`` command sets the ``PATH`` variable so that the right Python
|
||||||
|
executable is used, and makes sure that ``numpy`` and its dependencies can be
|
||||||
|
located in the ``PYTHONPATH``.
|
||||||
|
|
||||||
|
Spack is different from other Python package managers in that it installs
|
||||||
|
every package into its *own* prefix. This is in contrast to ``pip``, which
|
||||||
|
installs all packages into the same prefix, be it in a virtual environment
|
||||||
|
or not.
|
||||||
|
|
||||||
|
For many users, **virtual environments** are more convenient than repeated
|
||||||
|
``spack load`` commands, particularly when working with multiple Python
|
||||||
|
packages. Fortunately Spack supports environments itself, which together
|
||||||
|
with a view are no different from Python virtual environments.
|
||||||
|
|
||||||
|
The recommended way of working with Python extensions such as ``py-numpy``
|
||||||
|
is through :ref:`Environments <environments>`. The following example creates
|
||||||
|
a Spack environment with ``numpy`` in the current working directory. It also
|
||||||
|
puts a filesystem view in ``./view``, which is a more traditional combined
|
||||||
|
prefix for all packages in the environment.
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ spack env create --with-view view --dir .
|
||||||
|
$ spack -e . add py-numpy
|
||||||
|
$ spack -e . concretize
|
||||||
|
$ spack -e . install
|
||||||
|
|
||||||
|
Now you can activate the environment and start using the packages:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ spack env activate .
|
||||||
|
$ python3
|
||||||
|
>>> import numpy
|
||||||
|
|
||||||
|
The environment view is also a virtual environment, which is useful if you are
|
||||||
|
sharing the environment with others who are unfamiliar with Spack. They can
|
||||||
|
either use the Python executable directly:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ ./view/bin/python3
|
||||||
|
>>> import numpy
|
||||||
|
|
||||||
|
or use the activation script:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ source ./view/bin/activate
|
||||||
|
$ python3
|
||||||
|
>>> import numpy
|
||||||
|
|
||||||
|
In general, there should not be much difference between ``spack env activate``
|
||||||
|
and using the virtual environment. The main advantage of ``spack env activate``
|
||||||
|
is that it knows about more packages than just Python packages, and it may set
|
||||||
|
additional runtime variables that are not covered by the virtual environment
|
||||||
|
activation script.
|
||||||
|
|
||||||
|
See :ref:`environments` for a more in-depth description of Spack
|
||||||
|
environments and customizations to views.
|
||||||
|
|
||||||
|
|
||||||
.. _sec-specs:
|
.. _sec-specs:
|
||||||
@@ -1119,6 +1198,9 @@ and ``3.4.2``. Similarly, ``@4.2:`` means any version above and including
|
|||||||
``4.2``. As a short-hand, ``@3`` is equivalent to the range ``@3:3`` and
|
``4.2``. As a short-hand, ``@3`` is equivalent to the range ``@3:3`` and
|
||||||
includes any version with major version ``3``.
|
includes any version with major version ``3``.
|
||||||
|
|
||||||
|
Versions are ordered lexicograpically by its components. For more details
|
||||||
|
on the order, see :ref:`the packaging guide <version-comparison>`.
|
||||||
|
|
||||||
Notice that you can distinguish between the specific version ``@=3.2`` and
|
Notice that you can distinguish between the specific version ``@=3.2`` and
|
||||||
the range ``@3.2``. This is useful for packages that follow a versioning
|
the range ``@3.2``. This is useful for packages that follow a versioning
|
||||||
scheme that omits the zero patch version number: ``3.2``, ``3.2.1``,
|
scheme that omits the zero patch version number: ``3.2``, ``3.2.1``,
|
||||||
@@ -1130,6 +1212,10 @@ A version specifier can also be a list of ranges and specific versions,
|
|||||||
separated by commas. For example, ``@1.0:1.5,=1.7.1`` matches any version
|
separated by commas. For example, ``@1.0:1.5,=1.7.1`` matches any version
|
||||||
in the range ``1.0:1.5`` and the specific version ``1.7.1``.
|
in the range ``1.0:1.5`` and the specific version ``1.7.1``.
|
||||||
|
|
||||||
|
^^^^^^^^^^^^
|
||||||
|
Git versions
|
||||||
|
^^^^^^^^^^^^
|
||||||
|
|
||||||
For packages with a ``git`` attribute, ``git`` references
|
For packages with a ``git`` attribute, ``git`` references
|
||||||
may be specified instead of a numerical version i.e. branches, tags
|
may be specified instead of a numerical version i.e. branches, tags
|
||||||
and commits. Spack will stage and build based off the ``git``
|
and commits. Spack will stage and build based off the ``git``
|
||||||
@@ -1698,165 +1784,6 @@ check only local packages (as opposed to those used transparently from
|
|||||||
``upstream`` spack instances) and the ``-j,--json`` option to output
|
``upstream`` spack instances) and the ``-j,--json`` option to output
|
||||||
machine-readable json data for any errors.
|
machine-readable json data for any errors.
|
||||||
|
|
||||||
|
|
||||||
.. _extensions:
|
|
||||||
|
|
||||||
---------------------------
|
|
||||||
Extensions & Python support
|
|
||||||
---------------------------
|
|
||||||
|
|
||||||
Spack's installation model assumes that each package will live in its
|
|
||||||
own install prefix. However, certain packages are typically installed
|
|
||||||
*within* the directory hierarchy of other packages. For example,
|
|
||||||
`Python <https://www.python.org>`_ packages are typically installed in the
|
|
||||||
``$prefix/lib/python-2.7/site-packages`` directory.
|
|
||||||
|
|
||||||
In Spack, installation prefixes are immutable, so this type of installation
|
|
||||||
is not directly supported. However, it is possible to create views that
|
|
||||||
allow you to merge install prefixes of multiple packages into a single new prefix.
|
|
||||||
Views are a convenient way to get a more traditional filesystem structure.
|
|
||||||
Using *extensions*, you can ensure that Python packages always share the
|
|
||||||
same prefix in the view as Python itself. Suppose you have
|
|
||||||
Python installed like so:
|
|
||||||
|
|
||||||
.. code-block:: console
|
|
||||||
|
|
||||||
$ spack find python
|
|
||||||
==> 1 installed packages.
|
|
||||||
-- linux-debian7-x86_64 / gcc@4.4.7 --------------------------------
|
|
||||||
python@2.7.8
|
|
||||||
|
|
||||||
.. _cmd-spack-extensions:
|
|
||||||
|
|
||||||
^^^^^^^^^^^^^^^^^^^^
|
|
||||||
``spack extensions``
|
|
||||||
^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
You can find extensions for your Python installation like this:
|
|
||||||
|
|
||||||
.. code-block:: console
|
|
||||||
|
|
||||||
$ spack extensions python
|
|
||||||
==> python@2.7.8%gcc@4.4.7 arch=linux-debian7-x86_64-703c7a96
|
|
||||||
==> 36 extensions:
|
|
||||||
geos py-ipython py-pexpect py-pyside py-sip
|
|
||||||
py-basemap py-libxml2 py-pil py-pytz py-six
|
|
||||||
py-biopython py-mako py-pmw py-rpy2 py-sympy
|
|
||||||
py-cython py-matplotlib py-pychecker py-scientificpython py-virtualenv
|
|
||||||
py-dateutil py-mpi4py py-pygments py-scikit-learn
|
|
||||||
py-epydoc py-mx py-pylint py-scipy
|
|
||||||
py-gnuplot py-nose py-pyparsing py-setuptools
|
|
||||||
py-h5py py-numpy py-pyqt py-shiboken
|
|
||||||
|
|
||||||
==> 12 installed:
|
|
||||||
-- linux-debian7-x86_64 / gcc@4.4.7 --------------------------------
|
|
||||||
py-dateutil@2.4.0 py-nose@1.3.4 py-pyside@1.2.2
|
|
||||||
py-dateutil@2.4.0 py-numpy@1.9.1 py-pytz@2014.10
|
|
||||||
py-ipython@2.3.1 py-pygments@2.0.1 py-setuptools@11.3.1
|
|
||||||
py-matplotlib@1.4.2 py-pyparsing@2.0.3 py-six@1.9.0
|
|
||||||
|
|
||||||
The extensions are a subset of what's returned by ``spack list``, and
|
|
||||||
they are packages like any other. They are installed into their own
|
|
||||||
prefixes, and you can see this with ``spack find --paths``:
|
|
||||||
|
|
||||||
.. code-block:: console
|
|
||||||
|
|
||||||
$ spack find --paths py-numpy
|
|
||||||
==> 1 installed packages.
|
|
||||||
-- linux-debian7-x86_64 / gcc@4.4.7 --------------------------------
|
|
||||||
py-numpy@1.9.1 ~/spack/opt/linux-debian7-x86_64/gcc@4.4.7/py-numpy@1.9.1-66733244
|
|
||||||
|
|
||||||
However, even though this package is installed, you cannot use it
|
|
||||||
directly when you run ``python``:
|
|
||||||
|
|
||||||
.. code-block:: console
|
|
||||||
|
|
||||||
$ spack load python
|
|
||||||
$ python
|
|
||||||
Python 2.7.8 (default, Feb 17 2015, 01:35:25)
|
|
||||||
[GCC 4.4.7 20120313 (Red Hat 4.4.7-11)] on linux2
|
|
||||||
Type "help", "copyright", "credits" or "license" for more information.
|
|
||||||
>>> import numpy
|
|
||||||
Traceback (most recent call last):
|
|
||||||
File "<stdin>", line 1, in <module>
|
|
||||||
ImportError: No module named numpy
|
|
||||||
>>>
|
|
||||||
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
Using Extensions in Environments
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
The recommended way of working with extensions such as ``py-numpy``
|
|
||||||
above is through :ref:`Environments <environments>`. For example,
|
|
||||||
the following creates an environment in the current working directory
|
|
||||||
with a filesystem view in the ``./view`` directory:
|
|
||||||
|
|
||||||
.. code-block:: console
|
|
||||||
|
|
||||||
$ spack env create --with-view view --dir .
|
|
||||||
$ spack -e . add py-numpy
|
|
||||||
$ spack -e . concretize
|
|
||||||
$ spack -e . install
|
|
||||||
|
|
||||||
We recommend environments for two reasons. Firstly, environments
|
|
||||||
can be activated (requires :ref:`shell-support`):
|
|
||||||
|
|
||||||
.. code-block:: console
|
|
||||||
|
|
||||||
$ spack env activate .
|
|
||||||
|
|
||||||
which sets all the right environment variables such as ``PATH`` and
|
|
||||||
``PYTHONPATH``. This ensures that
|
|
||||||
|
|
||||||
.. code-block:: console
|
|
||||||
|
|
||||||
$ python
|
|
||||||
>>> import numpy
|
|
||||||
|
|
||||||
works. Secondly, even without shell support, the view ensures
|
|
||||||
that Python can locate its extensions:
|
|
||||||
|
|
||||||
.. code-block:: console
|
|
||||||
|
|
||||||
$ ./view/bin/python
|
|
||||||
>>> import numpy
|
|
||||||
|
|
||||||
See :ref:`environments` for a more in-depth description of Spack
|
|
||||||
environments and customizations to views.
|
|
||||||
|
|
||||||
^^^^^^^^^^^^^^^^^^^^
|
|
||||||
Using ``spack load``
|
|
||||||
^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
A more traditional way of using Spack and extensions is ``spack load``
|
|
||||||
(requires :ref:`shell-support`). This will add the extension to ``PYTHONPATH``
|
|
||||||
in your current shell, and Python itself will be available in the ``PATH``:
|
|
||||||
|
|
||||||
.. code-block:: console
|
|
||||||
|
|
||||||
$ spack load py-numpy
|
|
||||||
$ python
|
|
||||||
>>> import numpy
|
|
||||||
|
|
||||||
The loaded packages can be checked using ``spack find --loaded``
|
|
||||||
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
Loading Extensions via Modules
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
Apart from ``spack env activate`` and ``spack load``, you can load numpy
|
|
||||||
through your environment modules (using ``environment-modules`` or
|
|
||||||
``lmod``). This will also add the extension to the ``PYTHONPATH`` in
|
|
||||||
your current shell.
|
|
||||||
|
|
||||||
.. code-block:: console
|
|
||||||
|
|
||||||
$ module load <name of numpy module>
|
|
||||||
|
|
||||||
If you do not know the name of the specific numpy module you wish to
|
|
||||||
load, you can use the ``spack module tcl|lmod loads`` command to get
|
|
||||||
the name of the module from the Spack spec.
|
|
||||||
|
|
||||||
-----------------------
|
-----------------------
|
||||||
Filesystem requirements
|
Filesystem requirements
|
||||||
-----------------------
|
-----------------------
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
@@ -220,6 +220,40 @@ section of the configuration:
|
|||||||
|
|
||||||
.. _binary_caches_oci:
|
.. _binary_caches_oci:
|
||||||
|
|
||||||
|
---------------------------------
|
||||||
|
Automatic push to a build cache
|
||||||
|
---------------------------------
|
||||||
|
|
||||||
|
Sometimes it is convenient to push packages to a build cache as soon as they are installed. Spack can do this by setting autopush flag when adding a mirror:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ spack mirror add --autopush <name> <url or path>
|
||||||
|
|
||||||
|
Or the autopush flag can be set for an existing mirror:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ spack mirror set --autopush <name> # enable automatic push for an existing mirror
|
||||||
|
$ spack mirror set --no-autopush <name> # disable automatic push for an existing mirror
|
||||||
|
|
||||||
|
Then after installing a package it is automatically pushed to all mirrors with ``autopush: true``. The command
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ spack install <package>
|
||||||
|
|
||||||
|
will have the same effect as
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ spack install <package>
|
||||||
|
$ spack buildcache push <cache> <package> # for all caches with autopush: true
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
Packages are automatically pushed to a build cache only if they are built from source.
|
||||||
|
|
||||||
-----------------------------------------
|
-----------------------------------------
|
||||||
OCI / Docker V2 registries as build cache
|
OCI / Docker V2 registries as build cache
|
||||||
-----------------------------------------
|
-----------------------------------------
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
@@ -87,7 +87,7 @@ You can check what is installed in the bootstrapping store at any time using:
|
|||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
% spack find -b
|
% spack -b find
|
||||||
==> Showing internal bootstrap store at "/Users/spack/.spack/bootstrap/store"
|
==> Showing internal bootstrap store at "/Users/spack/.spack/bootstrap/store"
|
||||||
==> 11 installed packages
|
==> 11 installed packages
|
||||||
-- darwin-catalina-x86_64 / apple-clang@12.0.0 ------------------
|
-- darwin-catalina-x86_64 / apple-clang@12.0.0 ------------------
|
||||||
@@ -101,7 +101,7 @@ In case it is needed you can remove all the software in the current bootstrappin
|
|||||||
% spack clean -b
|
% spack clean -b
|
||||||
==> Removing bootstrapped software and configuration in "/Users/spack/.spack/bootstrap"
|
==> Removing bootstrapped software and configuration in "/Users/spack/.spack/bootstrap"
|
||||||
|
|
||||||
% spack find -b
|
% spack -b find
|
||||||
==> Showing internal bootstrap store at "/Users/spack/.spack/bootstrap/store"
|
==> Showing internal bootstrap store at "/Users/spack/.spack/bootstrap/store"
|
||||||
==> 0 installed packages
|
==> 0 installed packages
|
||||||
|
|
||||||
@@ -175,4 +175,4 @@ bootstrapping.
|
|||||||
|
|
||||||
This command needs to be run on a machine with internet access and the resulting folder
|
This command needs to be run on a machine with internet access and the resulting folder
|
||||||
has to be moved over to the air-gapped system. Once the local sources are added using the
|
has to be moved over to the air-gapped system. Once the local sources are added using the
|
||||||
commands suggested at the prompt, they can be used to bootstrap Spack.
|
commands suggested at the prompt, they can be used to bootstrap Spack.
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
@@ -21,23 +21,86 @@ is the following:
|
|||||||
Reuse already installed packages
|
Reuse already installed packages
|
||||||
--------------------------------
|
--------------------------------
|
||||||
|
|
||||||
The ``reuse`` attribute controls whether Spack will prefer to use installed packages (``true``), or
|
The ``reuse`` attribute controls how aggressively Spack reuses binary packages during concretization. The
|
||||||
whether it will do a "fresh" installation and prefer the latest settings from
|
attribute can either be a single value, or an object for more complex configurations.
|
||||||
``package.py`` files and ``packages.yaml`` (``false``).
|
|
||||||
You can use:
|
In the former case ("single value") it allows Spack to:
|
||||||
|
|
||||||
|
1. Reuse installed packages and buildcaches for all the specs to be concretized, when ``true``
|
||||||
|
2. Reuse installed packages and buildcaches only for the dependencies of the root specs, when ``dependencies``
|
||||||
|
3. Disregard reusing installed packages and buildcaches, when ``false``
|
||||||
|
|
||||||
|
In case a finer control over which specs are reused is needed, then the value of this attribute can be
|
||||||
|
an object, with the following keys:
|
||||||
|
|
||||||
|
1. ``roots``: if ``true`` root specs are reused, if ``false`` only dependencies of root specs are reused
|
||||||
|
2. ``from``: list of sources from which reused specs are taken
|
||||||
|
|
||||||
|
Each source in ``from`` is itself an object:
|
||||||
|
|
||||||
|
.. list-table:: Attributes for a source or reusable specs
|
||||||
|
:header-rows: 1
|
||||||
|
|
||||||
|
* - Attribute name
|
||||||
|
- Description
|
||||||
|
* - type (mandatory, string)
|
||||||
|
- Can be ``local``, ``buildcache``, or ``external``
|
||||||
|
* - include (optional, list of specs)
|
||||||
|
- If present, reusable specs must match at least one of the constraint in the list
|
||||||
|
* - exclude (optional, list of specs)
|
||||||
|
- If present, reusable specs must not match any of the constraint in the list.
|
||||||
|
|
||||||
|
For instance, the following configuration:
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
concretizer:
|
||||||
|
reuse:
|
||||||
|
roots: true
|
||||||
|
from:
|
||||||
|
- type: local
|
||||||
|
include:
|
||||||
|
- "%gcc"
|
||||||
|
- "%clang"
|
||||||
|
|
||||||
|
tells the concretizer to reuse all specs compiled with either ``gcc`` or ``clang``, that are installed
|
||||||
|
in the local store. Any spec from remote buildcaches is disregarded.
|
||||||
|
|
||||||
|
To reduce the boilerplate in configuration files, default values for the ``include`` and
|
||||||
|
``exclude`` options can be pushed up one level:
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
concretizer:
|
||||||
|
reuse:
|
||||||
|
roots: true
|
||||||
|
include:
|
||||||
|
- "%gcc"
|
||||||
|
from:
|
||||||
|
- type: local
|
||||||
|
- type: buildcache
|
||||||
|
- type: local
|
||||||
|
include:
|
||||||
|
- "foo %oneapi"
|
||||||
|
|
||||||
|
In the example above we reuse all specs compiled with ``gcc`` from the local store
|
||||||
|
and remote buildcaches, and we also reuse ``foo %oneapi``. Note that the last source of
|
||||||
|
specs override the default ``include`` attribute.
|
||||||
|
|
||||||
|
For one-off concretizations, the are command line arguments for each of the simple "single value"
|
||||||
|
configurations. This means a user can:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
% spack install --reuse <spec>
|
% spack install --reuse <spec>
|
||||||
|
|
||||||
to enable reuse for a single installation, and you can use:
|
to enable reuse for a single installation, or:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
spack install --fresh <spec>
|
spack install --fresh <spec>
|
||||||
|
|
||||||
to do a fresh install if ``reuse`` is enabled by default.
|
to do a fresh install if ``reuse`` is enabled by default.
|
||||||
``reuse: dependencies`` is the default.
|
|
||||||
|
|
||||||
.. seealso::
|
.. seealso::
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
@@ -250,7 +250,7 @@ generator is Ninja. To switch to the Ninja generator, simply add:
|
|||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
generator = "Ninja"
|
generator("ninja")
|
||||||
|
|
||||||
|
|
||||||
``CMakePackage`` defaults to "Unix Makefiles". If you switch to the
|
``CMakePackage`` defaults to "Unix Makefiles". If you switch to the
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
@@ -90,7 +90,7 @@ and optimizers do require a paid license. In Spack, they are packaged as:
|
|||||||
TODO: Confirm and possible change(!) the scope of MPI components (runtime
|
TODO: Confirm and possible change(!) the scope of MPI components (runtime
|
||||||
vs. devel) in current (and previous?) *cluster/professional/composer*
|
vs. devel) in current (and previous?) *cluster/professional/composer*
|
||||||
editions, i.e., presence in downloads, possibly subject to license
|
editions, i.e., presence in downloads, possibly subject to license
|
||||||
coverage(!); see `disussion in PR #4300
|
coverage(!); see `discussion in PR #4300
|
||||||
<https://github.com/spack/spack/pull/4300#issuecomment-305582898>`_. [NB:
|
<https://github.com/spack/spack/pull/4300#issuecomment-305582898>`_. [NB:
|
||||||
An "mpi" subdirectory is not indicative of the full MPI SDK being present
|
An "mpi" subdirectory is not indicative of the full MPI SDK being present
|
||||||
(i.e., ``mpicc``, ..., and header files). The directory may just as well
|
(i.e., ``mpicc``, ..., and header files). The directory may just as well
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
@@ -88,13 +88,13 @@ command-line. However, Makefiles that use ``?=`` for assignment honor
|
|||||||
environment variables. Since Spack already sets ``CC``, ``CXX``, ``F77``,
|
environment variables. Since Spack already sets ``CC``, ``CXX``, ``F77``,
|
||||||
and ``FC``, you won't need to worry about setting these variables. If
|
and ``FC``, you won't need to worry about setting these variables. If
|
||||||
there are any other variables you need to set, you can do this in the
|
there are any other variables you need to set, you can do this in the
|
||||||
``edit`` method:
|
``setup_build_environment`` method:
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
def edit(self, spec, prefix):
|
def setup_build_environment(self, env):
|
||||||
env["PREFIX"] = prefix
|
env.set("PREFIX", prefix)
|
||||||
env["BLASLIB"] = spec["blas"].libs.ld_flags
|
env.set("BLASLIB", spec["blas"].libs.ld_flags)
|
||||||
|
|
||||||
|
|
||||||
`cbench <https://github.com/spack/spack/blob/develop/var/spack/repos/builtin/packages/cbench/package.py>`_
|
`cbench <https://github.com/spack/spack/blob/develop/var/spack/repos/builtin/packages/cbench/package.py>`_
|
||||||
@@ -140,7 +140,7 @@ Edit Makefile
|
|||||||
Some Makefiles are just plain stubborn and will ignore command-line
|
Some Makefiles are just plain stubborn and will ignore command-line
|
||||||
variables. The only way to ensure that these packages build correctly
|
variables. The only way to ensure that these packages build correctly
|
||||||
is to directly edit the Makefile. Spack provides a ``FileFilter`` class
|
is to directly edit the Makefile. Spack provides a ``FileFilter`` class
|
||||||
and a ``filter_file`` method to help with this. For example:
|
and a ``filter`` method to help with this. For example:
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
@@ -173,6 +173,72 @@ arguments to ``Makefile.PL`` or ``Build.PL`` by overriding
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
^^^^^^^
|
||||||
|
Testing
|
||||||
|
^^^^^^^
|
||||||
|
|
||||||
|
``PerlPackage`` provides a simple stand-alone test of the successfully
|
||||||
|
installed package to confirm that installed perl module(s) can be used.
|
||||||
|
These tests can be performed any time after the installation using
|
||||||
|
``spack -v test run``. (For more information on the command, see
|
||||||
|
:ref:`cmd-spack-test-run`.)
|
||||||
|
|
||||||
|
The base class automatically detects perl modules based on the presence
|
||||||
|
of ``*.pm`` files under the package's library directory. For example,
|
||||||
|
the files under ``perl-bignum``'s perl library are:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ find . -name "*.pm"
|
||||||
|
./bigfloat.pm
|
||||||
|
./bigrat.pm
|
||||||
|
./Math/BigFloat/Trace.pm
|
||||||
|
./Math/BigInt/Trace.pm
|
||||||
|
./Math/BigRat/Trace.pm
|
||||||
|
./bigint.pm
|
||||||
|
./bignum.pm
|
||||||
|
|
||||||
|
|
||||||
|
which results in the package having the ``use_modules`` property containing:
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
use_modules = [
|
||||||
|
"bigfloat",
|
||||||
|
"bigrat",
|
||||||
|
"Math::BigFloat::Trace",
|
||||||
|
"Math::BigInt::Trace",
|
||||||
|
"Math::BigRat::Trace",
|
||||||
|
"bigint",
|
||||||
|
"bignum",
|
||||||
|
]
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
This list can often be used to catch missing dependencies.
|
||||||
|
|
||||||
|
If the list is somehow wrong, you can provide the names of the modules
|
||||||
|
yourself by overriding ``use_modules`` like so:
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
use_modules = ["bigfloat", "bigrat", "bigint", "bignum"]
|
||||||
|
|
||||||
|
If you only want a subset of the automatically detected modules to be
|
||||||
|
tested, you could instead define the ``skip_modules`` property on the
|
||||||
|
package. So, instead of overriding ``use_modules`` as shown above, you
|
||||||
|
could define the following:
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
skip_modules = [
|
||||||
|
"Math::BigFloat::Trace",
|
||||||
|
"Math::BigInt::Trace",
|
||||||
|
"Math::BigRat::Trace",
|
||||||
|
]
|
||||||
|
|
||||||
|
for the same use tests.
|
||||||
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^
|
||||||
Alternatives to Spack
|
Alternatives to Spack
|
||||||
^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
@@ -718,23 +718,45 @@ command-line tool, or C/C++/Fortran program with optional Python
|
|||||||
modules? The former should be prepended with ``py-``, while the
|
modules? The former should be prepended with ``py-``, while the
|
||||||
latter should not.
|
latter should not.
|
||||||
|
|
||||||
""""""""""""""""""""""
|
""""""""""""""""""""""""""""""
|
||||||
extends vs. depends_on
|
``extends`` vs. ``depends_on``
|
||||||
""""""""""""""""""""""
|
""""""""""""""""""""""""""""""
|
||||||
|
|
||||||
This is very similar to the naming dilemma above, with a slight twist.
|
|
||||||
As mentioned in the :ref:`Packaging Guide <packaging_extensions>`,
|
As mentioned in the :ref:`Packaging Guide <packaging_extensions>`,
|
||||||
``extends`` and ``depends_on`` are very similar, but ``extends`` ensures
|
``extends`` and ``depends_on`` are very similar, but ``extends`` ensures
|
||||||
that the extension and extendee share the same prefix in views.
|
that the extension and extendee share the same prefix in views.
|
||||||
This allows the user to import a Python module without
|
This allows the user to import a Python module without
|
||||||
having to add that module to ``PYTHONPATH``.
|
having to add that module to ``PYTHONPATH``.
|
||||||
|
|
||||||
When deciding between ``extends`` and ``depends_on``, the best rule of
|
Additionally, ``extends("python")`` adds a dependency on the package
|
||||||
thumb is to check the installation prefix. If Python libraries are
|
``python-venv``. This improves isolation from the system, whether
|
||||||
installed to ``<prefix>/lib/pythonX.Y/site-packages``, then you
|
it's during the build or at runtime: user and system site packages
|
||||||
should use ``extends``. If Python libraries are installed elsewhere
|
cannot accidentally be used by any package that ``extends("python")``.
|
||||||
or the only files that get installed reside in ``<prefix>/bin``, then
|
|
||||||
don't use ``extends``.
|
As a rule of thumb: if a package does not install any Python modules
|
||||||
|
of its own, and merely puts a Python script in the ``bin`` directory,
|
||||||
|
then there is no need for ``extends``. If the package installs modules
|
||||||
|
in the ``site-packages`` directory, it requires ``extends``.
|
||||||
|
|
||||||
|
"""""""""""""""""""""""""""""""""""""
|
||||||
|
Executing ``python`` during the build
|
||||||
|
"""""""""""""""""""""""""""""""""""""
|
||||||
|
|
||||||
|
Whenever you need to execute a Python command or pass the path of the
|
||||||
|
Python interpreter to the build system, it is best to use the global
|
||||||
|
variable ``python`` directly. For example:
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
@run_before("install")
|
||||||
|
def recythonize(self):
|
||||||
|
python("setup.py", "clean") # use the `python` global
|
||||||
|
|
||||||
|
As mentioned in the previous section, ``extends("python")`` adds an
|
||||||
|
automatic dependency on ``python-venv``, which is a virtual environment
|
||||||
|
that guarantees build isolation. The ``python`` global always refers to
|
||||||
|
the correct Python interpreter, whether the package uses ``extends("python")``
|
||||||
|
or ``depends_on("python")``.
|
||||||
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^
|
||||||
Alternatives to Spack
|
Alternatives to Spack
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
@@ -199,6 +199,7 @@ def setup(sphinx):
|
|||||||
("py:class", "contextlib.contextmanager"),
|
("py:class", "contextlib.contextmanager"),
|
||||||
("py:class", "module"),
|
("py:class", "module"),
|
||||||
("py:class", "_io.BufferedReader"),
|
("py:class", "_io.BufferedReader"),
|
||||||
|
("py:class", "_io.BytesIO"),
|
||||||
("py:class", "unittest.case.TestCase"),
|
("py:class", "unittest.case.TestCase"),
|
||||||
("py:class", "_frozen_importlib_external.SourceFileLoader"),
|
("py:class", "_frozen_importlib_external.SourceFileLoader"),
|
||||||
("py:class", "clingo.Control"),
|
("py:class", "clingo.Control"),
|
||||||
@@ -215,6 +216,7 @@ def setup(sphinx):
|
|||||||
("py:class", "spack.spec.InstallStatus"),
|
("py:class", "spack.spec.InstallStatus"),
|
||||||
("py:class", "spack.spec.SpecfileReaderBase"),
|
("py:class", "spack.spec.SpecfileReaderBase"),
|
||||||
("py:class", "spack.install_test.Pb"),
|
("py:class", "spack.install_test.Pb"),
|
||||||
|
("py:class", "spack.filesystem_view.SimpleFilesystemView"),
|
||||||
]
|
]
|
||||||
|
|
||||||
# The reST default role (used for this markup: `text`) to use for all documents.
|
# The reST default role (used for this markup: `text`) to use for all documents.
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
@@ -145,6 +145,25 @@ hosts when making ``ssl`` connections. Set to ``false`` to disable, and
|
|||||||
tools like ``curl`` will use their ``--insecure`` options. Disabling
|
tools like ``curl`` will use their ``--insecure`` options. Disabling
|
||||||
this can expose you to attacks. Use at your own risk.
|
this can expose you to attacks. Use at your own risk.
|
||||||
|
|
||||||
|
--------------------
|
||||||
|
``ssl_certs``
|
||||||
|
--------------------
|
||||||
|
|
||||||
|
Path to custom certificats for SSL verification. The value can be a
|
||||||
|
filesytem path, or an environment variable that expands to an absolute file path.
|
||||||
|
The default value is set to the environment variable ``SSL_CERT_FILE``
|
||||||
|
to use the same syntax used by many other applications that automatically
|
||||||
|
detect custom certificates.
|
||||||
|
When ``url_fetch_method:curl`` the ``config:ssl_certs`` should resolve to
|
||||||
|
a single file. Spack will then set the environment variable ``CURL_CA_BUNDLE``
|
||||||
|
in the subprocess calling ``curl``.
|
||||||
|
If ``url_fetch_method:urllib`` then files and directories are supported i.e.
|
||||||
|
``config:ssl_certs:$SSL_CERT_FILE`` or ``config:ssl_certs:$SSL_CERT_DIR``
|
||||||
|
will work.
|
||||||
|
In all cases the expanded path must be absolute for Spack to use the certificates.
|
||||||
|
Certificates relative to an environment can be created by prepending the path variable
|
||||||
|
with the Spack configuration variable``$env``.
|
||||||
|
|
||||||
--------------------
|
--------------------
|
||||||
``checksum``
|
``checksum``
|
||||||
--------------------
|
--------------------
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
@@ -73,9 +73,12 @@ are six configuration scopes. From lowest to highest:
|
|||||||
Spack instance per project) or for site-wide settings on a multi-user
|
Spack instance per project) or for site-wide settings on a multi-user
|
||||||
machine (e.g., for a common Spack instance).
|
machine (e.g., for a common Spack instance).
|
||||||
|
|
||||||
|
#. **plugin**: Read from a Python project's entry points. Settings here affect
|
||||||
|
all instances of Spack running with the same Python installation. This scope takes higher precedence than site, system, and default scopes.
|
||||||
|
|
||||||
#. **user**: Stored in the home directory: ``~/.spack/``. These settings
|
#. **user**: Stored in the home directory: ``~/.spack/``. These settings
|
||||||
affect all instances of Spack and take higher precedence than site,
|
affect all instances of Spack and take higher precedence than site,
|
||||||
system, or defaults scopes.
|
system, plugin, or defaults scopes.
|
||||||
|
|
||||||
#. **custom**: Stored in a custom directory specified by ``--config-scope``.
|
#. **custom**: Stored in a custom directory specified by ``--config-scope``.
|
||||||
If multiple scopes are listed on the command line, they are ordered
|
If multiple scopes are listed on the command line, they are ordered
|
||||||
@@ -196,6 +199,45 @@ with MPICH. You can create different configuration scopes for use with
|
|||||||
mpi: [mpich]
|
mpi: [mpich]
|
||||||
|
|
||||||
|
|
||||||
|
.. _plugin-scopes:
|
||||||
|
|
||||||
|
^^^^^^^^^^^^^
|
||||||
|
Plugin scopes
|
||||||
|
^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
Python version >= 3.8 is required to enable plugin configuration.
|
||||||
|
|
||||||
|
Spack can be made aware of configuration scopes that are installed as part of a python package. To do so, register a function that returns the scope's path to the ``"spack.config"`` entry point. Consider the Python package ``my_package`` that includes Spack configurations:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
my-package/
|
||||||
|
├── src
|
||||||
|
│ ├── my_package
|
||||||
|
│ │ ├── __init__.py
|
||||||
|
│ │ └── spack/
|
||||||
|
│ │ │ └── config.yaml
|
||||||
|
└── pyproject.toml
|
||||||
|
|
||||||
|
adding the following to ``my_package``'s ``pyproject.toml`` will make ``my_package``'s ``spack/`` configurations visible to Spack when ``my_package`` is installed:
|
||||||
|
|
||||||
|
.. code-block:: toml
|
||||||
|
|
||||||
|
[project.entry_points."spack.config"]
|
||||||
|
my_package = "my_package:get_config_path"
|
||||||
|
|
||||||
|
The function ``my_package.get_extension_path`` in ``my_package/__init__.py`` might look like
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
import importlib.resources
|
||||||
|
|
||||||
|
def get_config_path():
|
||||||
|
dirname = importlib.resources.files("my_package").joinpath("spack")
|
||||||
|
if dirname.exists():
|
||||||
|
return str(dirname)
|
||||||
|
|
||||||
.. _platform-scopes:
|
.. _platform-scopes:
|
||||||
|
|
||||||
------------------------
|
------------------------
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
@@ -9,34 +9,96 @@
|
|||||||
Container Images
|
Container Images
|
||||||
================
|
================
|
||||||
|
|
||||||
Spack :ref:`environments` are a great tool to create container images, but
|
Spack :ref:`environments` can easily be turned into container images. This page
|
||||||
preparing one that is suitable for production requires some more boilerplate
|
outlines two ways in which this can be done:
|
||||||
than just:
|
|
||||||
|
1. By installing the environment on the host system, and copying the installations
|
||||||
|
into the container image. This approach does not require any tools like Docker
|
||||||
|
or Singularity to be installed.
|
||||||
|
2. By generating a Docker or Singularity recipe that can be used to build the
|
||||||
|
container image. In this approach, Spack builds the software inside the
|
||||||
|
container runtime, not on the host system.
|
||||||
|
|
||||||
|
The first approach is easiest if you already have an installed environment,
|
||||||
|
the second approach gives more control over the container image.
|
||||||
|
|
||||||
|
---------------------------
|
||||||
|
From existing installations
|
||||||
|
---------------------------
|
||||||
|
|
||||||
|
If you already have a Spack environment installed on your system, you can
|
||||||
|
share the binaries as an OCI compatible container image. To get started you
|
||||||
|
just have to configure and OCI registry and run ``spack buildcache push``.
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
# Create and install an environment in the current directory
|
||||||
|
spack env create -d .
|
||||||
|
spack -e . add pkg-a pkg-b
|
||||||
|
spack -e . install
|
||||||
|
|
||||||
|
# Configure the registry
|
||||||
|
spack -e . mirror add --oci-username ... --oci-password ... container-registry oci://example.com/name/image
|
||||||
|
|
||||||
|
# Push the image
|
||||||
|
spack -e . buildcache push --update-index --base-image ubuntu:22.04 --tag my_env container-registry
|
||||||
|
|
||||||
|
The resulting container image can then be run as follows:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ docker run -it example.com/name/image:my_env
|
||||||
|
|
||||||
|
The image generated by Spack consists of the specified base image with each package from the
|
||||||
|
environment as a separate layer on top. The image is minimal by construction, it only contains the
|
||||||
|
environment roots and its runtime dependencies.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
When using registries like GHCR and Docker Hub, the ``--oci-password`` flag is not
|
||||||
|
the password for your account, but a personal access token you need to generate separately.
|
||||||
|
|
||||||
|
The specified ``--base-image`` should have a libc that is compatible with the host system.
|
||||||
|
For example if your host system is Ubuntu 20.04, you can use ``ubuntu:20.04``, ``ubuntu:22.04``
|
||||||
|
or newer: the libc in the container image must be at least the version of the host system,
|
||||||
|
assuming ABI compatibility. It is also perfectly fine to use a completely different
|
||||||
|
Linux distribution as long as the libc is compatible.
|
||||||
|
|
||||||
|
For convenience, Spack also turns the OCI registry into a :ref:`build cache <binary_caches_oci>`,
|
||||||
|
so that future ``spack install`` of the environment will simply pull the binaries from the
|
||||||
|
registry instead of doing source builds. The flag ``--update-index`` is needed to make Spack
|
||||||
|
take the build cache into account when concretizing.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
When generating container images in CI, the approach above is recommended when CI jobs
|
||||||
|
already run in a sandboxed environment. You can simply use ``spack`` directly
|
||||||
|
in the CI job and push the resulting image to a registry. Subsequent CI jobs should
|
||||||
|
run faster because Spack can install from the same registry instead of rebuilding from
|
||||||
|
sources.
|
||||||
|
|
||||||
|
---------------------------------------------
|
||||||
|
Generating recipes for Docker and Singularity
|
||||||
|
---------------------------------------------
|
||||||
|
|
||||||
|
Apart from copying existing installations into container images, Spack can also
|
||||||
|
generate recipes for container images. This is useful if you want to run Spack
|
||||||
|
itself in a sandboxed environment instead of on the host system.
|
||||||
|
|
||||||
|
Since recipes need a little bit more boilerplate than
|
||||||
|
|
||||||
.. code-block:: docker
|
.. code-block:: docker
|
||||||
|
|
||||||
COPY spack.yaml /environment
|
COPY spack.yaml /environment
|
||||||
RUN spack -e /environment install
|
RUN spack -e /environment install
|
||||||
|
|
||||||
Additional actions may be needed to minimize the size of the
|
Spack provides a command to generate customizable recipes for container images. Customizations
|
||||||
container, or to update the system software that is installed in the base
|
include minimizing the size of the image, installing packages in the base image using the system
|
||||||
image, or to set up a proper entrypoint to run the image. These tasks are
|
package manager, and setting up a proper entrypoint to run the image.
|
||||||
usually both necessary and repetitive, so Spack comes with a command
|
|
||||||
to generate recipes for container images starting from a ``spack.yaml``.
|
|
||||||
|
|
||||||
.. seealso::
|
~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
This page is a reference for generating recipes to build container images.
|
|
||||||
It means that your environment is built from scratch inside the container
|
|
||||||
runtime.
|
|
||||||
|
|
||||||
Since v0.21, Spack can also create container images from existing package installations
|
|
||||||
on your host system. See :ref:`binary_caches_oci` for more information on
|
|
||||||
that topic.
|
|
||||||
|
|
||||||
--------------------
|
|
||||||
A Quick Introduction
|
A Quick Introduction
|
||||||
--------------------
|
~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
Consider having a Spack environment like the following:
|
Consider having a Spack environment like the following:
|
||||||
|
|
||||||
@@ -47,8 +109,8 @@ Consider having a Spack environment like the following:
|
|||||||
- gromacs+mpi
|
- gromacs+mpi
|
||||||
- mpich
|
- mpich
|
||||||
|
|
||||||
Producing a ``Dockerfile`` from it is as simple as moving to the directory
|
Producing a ``Dockerfile`` from it is as simple as changing directories to
|
||||||
where the ``spack.yaml`` file is stored and giving the following command:
|
where the ``spack.yaml`` file is stored and running the following command:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
@@ -114,9 +176,9 @@ configuration are discussed in details in the sections below.
|
|||||||
|
|
||||||
.. _container_spack_images:
|
.. _container_spack_images:
|
||||||
|
|
||||||
--------------------------
|
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
Spack Images on Docker Hub
|
Spack Images on Docker Hub
|
||||||
--------------------------
|
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
Docker images with Spack preinstalled and ready to be used are
|
Docker images with Spack preinstalled and ready to be used are
|
||||||
built when a release is tagged, or nightly on ``develop``. The images
|
built when a release is tagged, or nightly on ``develop``. The images
|
||||||
@@ -132,15 +194,15 @@ The OS that are currently supported are summarized in the table below:
|
|||||||
* - Operating System
|
* - Operating System
|
||||||
- Base Image
|
- Base Image
|
||||||
- Spack Image
|
- Spack Image
|
||||||
* - Ubuntu 18.04
|
|
||||||
- ``ubuntu:18.04``
|
|
||||||
- ``spack/ubuntu-bionic``
|
|
||||||
* - Ubuntu 20.04
|
* - Ubuntu 20.04
|
||||||
- ``ubuntu:20.04``
|
- ``ubuntu:20.04``
|
||||||
- ``spack/ubuntu-focal``
|
- ``spack/ubuntu-focal``
|
||||||
* - Ubuntu 22.04
|
* - Ubuntu 22.04
|
||||||
- ``ubuntu:22.04``
|
- ``ubuntu:22.04``
|
||||||
- ``spack/ubuntu-jammy``
|
- ``spack/ubuntu-jammy``
|
||||||
|
* - Ubuntu 24.04
|
||||||
|
- ``ubuntu:24.04``
|
||||||
|
- ``spack/ubuntu-noble``
|
||||||
* - CentOS 7
|
* - CentOS 7
|
||||||
- ``centos:7``
|
- ``centos:7``
|
||||||
- ``spack/centos7``
|
- ``spack/centos7``
|
||||||
@@ -165,12 +227,12 @@ The OS that are currently supported are summarized in the table below:
|
|||||||
* - Rocky Linux 9
|
* - Rocky Linux 9
|
||||||
- ``rockylinux:9``
|
- ``rockylinux:9``
|
||||||
- ``spack/rockylinux9``
|
- ``spack/rockylinux9``
|
||||||
* - Fedora Linux 37
|
* - Fedora Linux 39
|
||||||
- ``fedora:37``
|
- ``fedora:39``
|
||||||
- ``spack/fedora37``
|
- ``spack/fedora39``
|
||||||
* - Fedora Linux 38
|
* - Fedora Linux 40
|
||||||
- ``fedora:38``
|
- ``fedora:40``
|
||||||
- ``spack/fedora38``
|
- ``spack/fedora40``
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -186,9 +248,9 @@ by Spack use them as default base images for their ``build`` stage,
|
|||||||
even though handles to use custom base images provided by users are
|
even though handles to use custom base images provided by users are
|
||||||
available to accommodate complex use cases.
|
available to accommodate complex use cases.
|
||||||
|
|
||||||
---------------------------------
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
Creating Images From Environments
|
Configuring the Container Recipe
|
||||||
---------------------------------
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
Any Spack Environment can be used for the automatic generation of container
|
Any Spack Environment can be used for the automatic generation of container
|
||||||
recipes. Sensible defaults are provided for things like the base image or the
|
recipes. Sensible defaults are provided for things like the base image or the
|
||||||
@@ -229,18 +291,18 @@ under the ``container`` attribute of environments:
|
|||||||
|
|
||||||
A detailed description of the options available can be found in the :ref:`container_config_options` section.
|
A detailed description of the options available can be found in the :ref:`container_config_options` section.
|
||||||
|
|
||||||
-------------------
|
~~~~~~~~~~~~~~~~~~~
|
||||||
Setting Base Images
|
Setting Base Images
|
||||||
-------------------
|
~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
The ``images`` subsection is used to select both the image where
|
The ``images`` subsection is used to select both the image where
|
||||||
Spack builds the software and the image where the built software
|
Spack builds the software and the image where the built software
|
||||||
is installed. This attribute can be set in different ways and
|
is installed. This attribute can be set in different ways and
|
||||||
which one to use depends on the use case at hand.
|
which one to use depends on the use case at hand.
|
||||||
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
""""""""""""""""""""""""""""""""""""""""
|
||||||
Use Official Spack Images From Dockerhub
|
Use Official Spack Images From Dockerhub
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
""""""""""""""""""""""""""""""""""""""""
|
||||||
|
|
||||||
To generate a recipe that uses an official Docker image from the
|
To generate a recipe that uses an official Docker image from the
|
||||||
Spack organization to build the software and the corresponding official OS image
|
Spack organization to build the software and the corresponding official OS image
|
||||||
@@ -445,9 +507,9 @@ responsibility to ensure that:
|
|||||||
Therefore we don't recommend its use in cases that can be otherwise
|
Therefore we don't recommend its use in cases that can be otherwise
|
||||||
covered by the simplified mode shown first.
|
covered by the simplified mode shown first.
|
||||||
|
|
||||||
----------------------------
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
Singularity Definition Files
|
Singularity Definition Files
|
||||||
----------------------------
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
In addition to producing recipes in ``Dockerfile`` format Spack can produce
|
In addition to producing recipes in ``Dockerfile`` format Spack can produce
|
||||||
Singularity Definition Files by just changing the value of the ``format``
|
Singularity Definition Files by just changing the value of the ``format``
|
||||||
@@ -468,9 +530,9 @@ attribute:
|
|||||||
The minimum version of Singularity required to build a SIF (Singularity Image Format)
|
The minimum version of Singularity required to build a SIF (Singularity Image Format)
|
||||||
image from the recipes generated by Spack is ``3.5.3``.
|
image from the recipes generated by Spack is ``3.5.3``.
|
||||||
|
|
||||||
------------------------------
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
Extending the Jinja2 Templates
|
Extending the Jinja2 Templates
|
||||||
------------------------------
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
The Dockerfile and the Singularity definition file that Spack can generate are based on
|
The Dockerfile and the Singularity definition file that Spack can generate are based on
|
||||||
a few Jinja2 templates that are rendered according to the environment being containerized.
|
a few Jinja2 templates that are rendered according to the environment being containerized.
|
||||||
@@ -591,9 +653,9 @@ The recipe that gets generated contains the two extra instruction that we added
|
|||||||
|
|
||||||
.. _container_config_options:
|
.. _container_config_options:
|
||||||
|
|
||||||
-----------------------
|
~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
Configuration Reference
|
Configuration Reference
|
||||||
-----------------------
|
~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
The tables below describe all the configuration options that are currently supported
|
The tables below describe all the configuration options that are currently supported
|
||||||
to customize the generation of container recipes:
|
to customize the generation of container recipes:
|
||||||
@@ -690,13 +752,13 @@ to customize the generation of container recipes:
|
|||||||
- Description string
|
- Description string
|
||||||
- No
|
- No
|
||||||
|
|
||||||
--------------
|
~~~~~~~~~~~~~~
|
||||||
Best Practices
|
Best Practices
|
||||||
--------------
|
~~~~~~~~~~~~~~
|
||||||
|
|
||||||
^^^
|
"""
|
||||||
MPI
|
MPI
|
||||||
^^^
|
"""
|
||||||
Due to the dependency on Fortran for OpenMPI, which is the spack default
|
Due to the dependency on Fortran for OpenMPI, which is the spack default
|
||||||
implementation, consider adding ``gfortran`` to the ``apt-get install`` list.
|
implementation, consider adding ``gfortran`` to the ``apt-get install`` list.
|
||||||
|
|
||||||
@@ -707,9 +769,9 @@ For execution on HPC clusters, it can be helpful to import the docker
|
|||||||
image into Singularity in order to start a program with an *external*
|
image into Singularity in order to start a program with an *external*
|
||||||
MPI. Otherwise, also add ``openssh-server`` to the ``apt-get install`` list.
|
MPI. Otherwise, also add ``openssh-server`` to the ``apt-get install`` list.
|
||||||
|
|
||||||
^^^^
|
""""
|
||||||
CUDA
|
CUDA
|
||||||
^^^^
|
""""
|
||||||
Starting from CUDA 9.0, Nvidia provides minimal CUDA images based on
|
Starting from CUDA 9.0, Nvidia provides minimal CUDA images based on
|
||||||
Ubuntu. Please see `their instructions <https://hub.docker.com/r/nvidia/cuda/>`_.
|
Ubuntu. Please see `their instructions <https://hub.docker.com/r/nvidia/cuda/>`_.
|
||||||
Avoid double-installing CUDA by adding, e.g.
|
Avoid double-installing CUDA by adding, e.g.
|
||||||
@@ -728,9 +790,9 @@ to your ``spack.yaml``.
|
|||||||
Users will either need ``nvidia-docker`` or e.g. Singularity to *execute*
|
Users will either need ``nvidia-docker`` or e.g. Singularity to *execute*
|
||||||
device kernels.
|
device kernels.
|
||||||
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^
|
"""""""""""""""""""""""""
|
||||||
Docker on Windows and OSX
|
Docker on Windows and OSX
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^
|
"""""""""""""""""""""""""
|
||||||
|
|
||||||
On Mac OS and Windows, docker runs on a hypervisor that is not allocated much
|
On Mac OS and Windows, docker runs on a hypervisor that is not allocated much
|
||||||
memory by default, and some spack packages may fail to build due to lack of
|
memory by default, and some spack packages may fail to build due to lack of
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
@@ -357,91 +357,23 @@ If there is a hook that you would like and is missing, you can propose to add a
|
|||||||
``pre_install(spec)``
|
``pre_install(spec)``
|
||||||
"""""""""""""""""""""
|
"""""""""""""""""""""
|
||||||
|
|
||||||
A ``pre_install`` hook is run within an install subprocess, directly before
|
A ``pre_install`` hook is run within the install subprocess, directly before the install starts.
|
||||||
the install starts. It expects a single argument of a spec, and is run in
|
It expects a single argument of a spec.
|
||||||
a multiprocessing subprocess. Note that if you see ``pre_install`` functions associated with packages these are not hooks
|
|
||||||
as we have defined them here, but rather callback functions associated with
|
|
||||||
a package install.
|
|
||||||
|
|
||||||
|
|
||||||
""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""
|
||||||
``post_install(spec)``
|
``post_install(spec, explicit=None)``
|
||||||
""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""
|
||||||
|
|
||||||
A ``post_install`` hook is run within an install subprocess, directly after
|
A ``post_install`` hook is run within the install subprocess, directly after the install finishes,
|
||||||
the install finishes, but before the build stage is removed. If you
|
but before the build stage is removed and the spec is registered in the database. It expects two
|
||||||
write one of these hooks, you should expect it to accept a spec as the only
|
arguments: spec and an optional boolean indicating whether this spec is being installed explicitly.
|
||||||
argument. This is run in a multiprocessing subprocess. This ``post_install`` is
|
|
||||||
also seen in packages, but in this context not related to the hooks described
|
|
||||||
here.
|
|
||||||
|
|
||||||
|
""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
``pre_uninstall(spec)`` and ``post_uninstall(spec)``
|
||||||
|
""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
|
||||||
""""""""""""""""""""""""""
|
These hooks are currently used for cleaning up module files after uninstall.
|
||||||
``on_install_start(spec)``
|
|
||||||
""""""""""""""""""""""""""
|
|
||||||
|
|
||||||
This hook is run at the beginning of ``lib/spack/spack/installer.py``,
|
|
||||||
in the install function of a ``PackageInstaller``,
|
|
||||||
and importantly is not part of a build process, but before it. This is when
|
|
||||||
we have just newly grabbed the task, and are preparing to install. If you
|
|
||||||
write a hook of this type, you should provide the spec to it.
|
|
||||||
|
|
||||||
.. code-block:: python
|
|
||||||
|
|
||||||
def on_install_start(spec):
|
|
||||||
"""On start of an install, we want to...
|
|
||||||
"""
|
|
||||||
print('on_install_start')
|
|
||||||
|
|
||||||
|
|
||||||
""""""""""""""""""""""""""""
|
|
||||||
``on_install_success(spec)``
|
|
||||||
""""""""""""""""""""""""""""
|
|
||||||
|
|
||||||
This hook is run on a successful install, and is also run inside the build
|
|
||||||
process, akin to ``post_install``. The main difference is that this hook
|
|
||||||
is run outside of the context of the stage directory, meaning after the
|
|
||||||
build stage has been removed and the user is alerted that the install was
|
|
||||||
successful. If you need to write a hook that is run on success of a particular
|
|
||||||
phase, you should use ``on_phase_success``.
|
|
||||||
|
|
||||||
""""""""""""""""""""""""""""
|
|
||||||
``on_install_failure(spec)``
|
|
||||||
""""""""""""""""""""""""""""
|
|
||||||
|
|
||||||
This hook is run given an install failure that happens outside of the build
|
|
||||||
subprocess, but somewhere in ``installer.py`` when something else goes wrong.
|
|
||||||
If you need to write a hook that is relevant to a failure within a build
|
|
||||||
process, you would want to instead use ``on_phase_failure``.
|
|
||||||
|
|
||||||
|
|
||||||
"""""""""""""""""""""""""""
|
|
||||||
``on_install_cancel(spec)``
|
|
||||||
"""""""""""""""""""""""""""
|
|
||||||
|
|
||||||
The same, but triggered if a spec install is cancelled for any reason.
|
|
||||||
|
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""
|
|
||||||
``on_phase_success(pkg, phase_name, log_file)``
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""
|
|
||||||
|
|
||||||
This hook is run within the install subprocess, and specifically when a phase
|
|
||||||
successfully finishes. Since we are interested in the package, the name of
|
|
||||||
the phase, and any output from it, we require:
|
|
||||||
|
|
||||||
- **pkg**: the package variable, which also has the attached spec at ``pkg.spec``
|
|
||||||
- **phase_name**: the name of the phase that was successful (e.g., configure)
|
|
||||||
- **log_file**: the path to the file with output, in case you need to inspect or otherwise interact with it.
|
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""
|
|
||||||
``on_phase_error(pkg, phase_name, log_file)``
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""
|
|
||||||
|
|
||||||
In the case of an error during a phase, we might want to trigger some event
|
|
||||||
with a hook, and this is the purpose of this particular hook. Akin to
|
|
||||||
``on_phase_success`` we require the same variables - the package that failed,
|
|
||||||
the name of the phase, and the log file where we might find errors.
|
|
||||||
|
|
||||||
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^
|
||||||
@@ -620,11 +552,11 @@ With either interpreter you can run a single command:
|
|||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ spack python -c 'import distro; distro.linux_distribution()'
|
$ spack python -c 'from spack.spec import Spec; Spec("python").concretized()'
|
||||||
('Ubuntu', '18.04', 'Bionic Beaver')
|
...
|
||||||
|
|
||||||
$ spack python -i ipython -c 'import distro; distro.linux_distribution()'
|
$ spack python -i ipython -c 'from spack.spec import Spec; Spec("python").concretized()'
|
||||||
Out[1]: ('Ubuntu', '18.04', 'Bionic Beaver')
|
Out[1]: ...
|
||||||
|
|
||||||
or a file:
|
or a file:
|
||||||
|
|
||||||
@@ -1139,9 +1071,9 @@ Announcing a release
|
|||||||
|
|
||||||
We announce releases in all of the major Spack communication channels.
|
We announce releases in all of the major Spack communication channels.
|
||||||
Publishing the release takes care of GitHub. The remaining channels are
|
Publishing the release takes care of GitHub. The remaining channels are
|
||||||
Twitter, Slack, and the mailing list. Here are the steps:
|
X, Slack, and the mailing list. Here are the steps:
|
||||||
|
|
||||||
#. Announce the release on Twitter.
|
#. Announce the release on X.
|
||||||
|
|
||||||
* Compose the tweet on the ``@spackpm`` account per the
|
* Compose the tweet on the ``@spackpm`` account per the
|
||||||
``spack-twitter`` slack channel.
|
``spack-twitter`` slack channel.
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
@@ -142,6 +142,17 @@ user's prompt to begin with the environment name in brackets.
|
|||||||
$ spack env activate -p myenv
|
$ spack env activate -p myenv
|
||||||
[myenv] $ ...
|
[myenv] $ ...
|
||||||
|
|
||||||
|
The ``activate`` command can also be used to create a new environment if it does not already
|
||||||
|
exist.
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ spack env activate --create -p myenv
|
||||||
|
# ...
|
||||||
|
# [creates if myenv does not exist yet]
|
||||||
|
# ...
|
||||||
|
[myenv] $ ...
|
||||||
|
|
||||||
To deactivate an environment, use the command:
|
To deactivate an environment, use the command:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
@@ -161,21 +172,36 @@ environment will remove the view from the user environment.
|
|||||||
Anonymous Environments
|
Anonymous Environments
|
||||||
^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
Any directory can be treated as an environment if it contains a file
|
Apart from managed environments, Spack also supports anonymous environments.
|
||||||
``spack.yaml``. To load an anonymous environment, use:
|
|
||||||
|
Anonymous environments can be placed in any directory of choice.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
When uninstalling packages, Spack asks the user to confirm the removal of packages
|
||||||
|
that are still used in a managed environment. This is not the case for anonymous
|
||||||
|
environments.
|
||||||
|
|
||||||
|
To create an anonymous environment, use one of the following commands:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ spack env activate -d /path/to/directory
|
$ spack env create --dir my_env
|
||||||
|
$ spack env create ./my_env
|
||||||
|
|
||||||
Anonymous specs can be created in place using the command:
|
As a shorthand, you can also create an anonymous environment upon activation if it does not
|
||||||
|
already exist:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ spack env create -d .
|
$ spack env activate --create ./my_env
|
||||||
|
|
||||||
|
For convenience, Spack can also place an anonymous environment in a temporary directory for you:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ spack env activate --temp
|
||||||
|
|
||||||
In this case Spack simply creates a ``spack.yaml`` file in the requested
|
|
||||||
directory.
|
|
||||||
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
Environment Sensitive Commands
|
Environment Sensitive Commands
|
||||||
@@ -401,6 +427,23 @@ that git clone if ``foo`` is in the environment.
|
|||||||
Further development on ``foo`` can be tested by reinstalling the environment,
|
Further development on ``foo`` can be tested by reinstalling the environment,
|
||||||
and eventually committed and pushed to the upstream git repo.
|
and eventually committed and pushed to the upstream git repo.
|
||||||
|
|
||||||
|
If the package being developed supports out-of-source builds then users can use the
|
||||||
|
``--build_directory`` flag to control the location and name of the build directory.
|
||||||
|
This is a shortcut to set the ``package_attributes:build_directory`` in the
|
||||||
|
``packages`` configuration (see :ref:`assigning-package-attributes`).
|
||||||
|
The supplied location will become the build-directory for that package in all future builds.
|
||||||
|
|
||||||
|
.. warning::
|
||||||
|
Potential pitfalls of setting the build directory
|
||||||
|
Spack does not check for out-of-source build compatibility with the packages and
|
||||||
|
so the onerous of making sure the package supports out-of-source builds is on
|
||||||
|
the user.
|
||||||
|
For example, most ``autotool`` and ``makefile`` packages do not support out-of-source builds
|
||||||
|
while all ``CMake`` packages do.
|
||||||
|
Understanding these nuances are on the software developers and we strongly encourage
|
||||||
|
developers to only redirect the build directory if they understand their package's
|
||||||
|
build-system.
|
||||||
|
|
||||||
^^^^^^^
|
^^^^^^^
|
||||||
Loading
|
Loading
|
||||||
^^^^^^^
|
^^^^^^^
|
||||||
@@ -417,6 +460,125 @@ Sourcing that file in Bash will make the environment available to the
|
|||||||
user; and can be included in ``.bashrc`` files, etc. The ``loads``
|
user; and can be included in ``.bashrc`` files, etc. The ``loads``
|
||||||
file may also be copied out of the environment, renamed, etc.
|
file may also be copied out of the environment, renamed, etc.
|
||||||
|
|
||||||
|
|
||||||
|
.. _environment_include_concrete:
|
||||||
|
|
||||||
|
------------------------------
|
||||||
|
Included Concrete Environments
|
||||||
|
------------------------------
|
||||||
|
|
||||||
|
Spack environments can create an environment based off of information in already
|
||||||
|
established environments. You can think of it as a combination of existing
|
||||||
|
environments. It will gather information from the existing environment's
|
||||||
|
``spack.lock`` and use that during the creation of this included concrete
|
||||||
|
environment. When an included concrete environment is created it will generate
|
||||||
|
a ``spack.lock`` file for the newly created environment.
|
||||||
|
|
||||||
|
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
Creating included environments
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
To create a combined concrete environment, you must have at least one existing
|
||||||
|
concrete environment. You will use the command ``spack env create`` with the
|
||||||
|
argument ``--include-concrete`` followed by the name or path of the environment
|
||||||
|
you'd like to include. Here is an example of how to create a combined environment
|
||||||
|
from the command line.
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ spack env create myenv
|
||||||
|
$ spack -e myenv add python
|
||||||
|
$ spack -e myenv concretize
|
||||||
|
$ spack env create --include-concrete myenv included_env
|
||||||
|
|
||||||
|
|
||||||
|
You can also include an environment directly in the ``spack.yaml`` file. It
|
||||||
|
involves adding the ``include_concrete`` heading in the yaml followed by the
|
||||||
|
absolute path to the independent environments.
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
spack:
|
||||||
|
specs: []
|
||||||
|
concretizer:
|
||||||
|
unify: true
|
||||||
|
include_concrete:
|
||||||
|
- /absolute/path/to/environment1
|
||||||
|
- /absolute/path/to/environment2
|
||||||
|
|
||||||
|
|
||||||
|
Once the ``spack.yaml`` has been updated you must concretize the environment to
|
||||||
|
get the concrete specs from the included environments.
|
||||||
|
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
Updating an included environment
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
If changes were made to the base environment and you want that reflected in the
|
||||||
|
included environment you will need to reconcretize both the base environment and the
|
||||||
|
included environment for the change to be implemented. For example:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ spack env create myenv
|
||||||
|
$ spack -e myenv add python
|
||||||
|
$ spack -e myenv concretize
|
||||||
|
$ spack env create --include-concrete myenv included_env
|
||||||
|
|
||||||
|
|
||||||
|
$ spack -e myenv find
|
||||||
|
==> In environment myenv
|
||||||
|
==> Root specs
|
||||||
|
python
|
||||||
|
|
||||||
|
==> 0 installed packages
|
||||||
|
|
||||||
|
|
||||||
|
$ spack -e included_env find
|
||||||
|
==> In environment included_env
|
||||||
|
==> No root specs
|
||||||
|
==> Included specs
|
||||||
|
python
|
||||||
|
|
||||||
|
==> 0 installed packages
|
||||||
|
|
||||||
|
Here we see that ``included_env`` has access to the python package through
|
||||||
|
the ``myenv`` environment. But if we were to add another spec to ``myenv``,
|
||||||
|
``included_env`` will not be able to access the new information.
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ spack -e myenv add perl
|
||||||
|
$ spack -e myenv concretize
|
||||||
|
$ spack -e myenv find
|
||||||
|
==> In environment myenv
|
||||||
|
==> Root specs
|
||||||
|
perl python
|
||||||
|
|
||||||
|
==> 0 installed packages
|
||||||
|
|
||||||
|
|
||||||
|
$ spack -e included_env find
|
||||||
|
==> In environment included_env
|
||||||
|
==> No root specs
|
||||||
|
==> Included specs
|
||||||
|
python
|
||||||
|
|
||||||
|
==> 0 installed packages
|
||||||
|
|
||||||
|
It isn't until you run the ``spack concretize`` command that the combined
|
||||||
|
environment will get the updated information from the reconcretized base environmennt.
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ spack -e included_env concretize
|
||||||
|
$ spack -e included_env find
|
||||||
|
==> In environment included_env
|
||||||
|
==> No root specs
|
||||||
|
==> Included specs
|
||||||
|
perl python
|
||||||
|
|
||||||
|
==> 0 installed packages
|
||||||
|
|
||||||
.. _environment-configuration:
|
.. _environment-configuration:
|
||||||
|
|
||||||
------------------------
|
------------------------
|
||||||
@@ -457,11 +619,11 @@ a ``packages.yaml`` file) could contain:
|
|||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
spack:
|
spack:
|
||||||
...
|
# ...
|
||||||
packages:
|
packages:
|
||||||
all:
|
all:
|
||||||
compiler: [intel]
|
compiler: [intel]
|
||||||
...
|
# ...
|
||||||
|
|
||||||
This configuration sets the default compiler for all packages to
|
This configuration sets the default compiler for all packages to
|
||||||
``intel``.
|
``intel``.
|
||||||
@@ -768,6 +930,7 @@ For example, the following environment has three root packages:
|
|||||||
This allows for a much-needed reduction in redundancy between packages
|
This allows for a much-needed reduction in redundancy between packages
|
||||||
and constraints.
|
and constraints.
|
||||||
|
|
||||||
|
|
||||||
----------------
|
----------------
|
||||||
Filesystem Views
|
Filesystem Views
|
||||||
----------------
|
----------------
|
||||||
@@ -807,7 +970,7 @@ directories.
|
|||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
spack:
|
spack:
|
||||||
...
|
# ...
|
||||||
view:
|
view:
|
||||||
mpis:
|
mpis:
|
||||||
root: /path/to/view
|
root: /path/to/view
|
||||||
@@ -851,7 +1014,7 @@ automatically named ``default``, so that
|
|||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
spack:
|
spack:
|
||||||
...
|
# ...
|
||||||
view: True
|
view: True
|
||||||
|
|
||||||
is equivalent to
|
is equivalent to
|
||||||
@@ -859,7 +1022,7 @@ is equivalent to
|
|||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
spack:
|
spack:
|
||||||
...
|
# ...
|
||||||
view:
|
view:
|
||||||
default:
|
default:
|
||||||
root: .spack-env/view
|
root: .spack-env/view
|
||||||
@@ -869,7 +1032,7 @@ and
|
|||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
spack:
|
spack:
|
||||||
...
|
# ...
|
||||||
view: /path/to/view
|
view: /path/to/view
|
||||||
|
|
||||||
is equivalent to
|
is equivalent to
|
||||||
@@ -877,7 +1040,7 @@ is equivalent to
|
|||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
spack:
|
spack:
|
||||||
...
|
# ...
|
||||||
view:
|
view:
|
||||||
default:
|
default:
|
||||||
root: /path/to/view
|
root: /path/to/view
|
||||||
@@ -920,6 +1083,17 @@ function, as shown in the example below:
|
|||||||
^mpi: "{name}-{version}/{^mpi.name}-{^mpi.version}-{compiler.name}-{compiler.version}"
|
^mpi: "{name}-{version}/{^mpi.name}-{^mpi.version}-{compiler.name}-{compiler.version}"
|
||||||
all: "{name}-{version}/{compiler.name}-{compiler.version}"
|
all: "{name}-{version}/{compiler.name}-{compiler.version}"
|
||||||
|
|
||||||
|
Projections also permit environment and spack configuration variable
|
||||||
|
expansions as shown below:
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
projections:
|
||||||
|
all: "{name}-{version}/{compiler.name}-{compiler.version}/$date/$SYSTEM_ENV_VARIBLE"
|
||||||
|
|
||||||
|
where ``$date`` is the spack configuration variable that will expand with the ``YYYY-MM-DD``
|
||||||
|
format and ``$SYSTEM_ENV_VARIABLE`` is an environment variable defined in the shell.
|
||||||
|
|
||||||
The entries in the projections configuration file must all be either
|
The entries in the projections configuration file must all be either
|
||||||
specs or the keyword ``all``. For each spec, the projection used will
|
specs or the keyword ``all``. For each spec, the projection used will
|
||||||
be the first non-``all`` entry that the spec satisfies, or ``all`` if
|
be the first non-``all`` entry that the spec satisfies, or ``all`` if
|
||||||
@@ -990,7 +1164,7 @@ other targets to depend on the environment installation.
|
|||||||
|
|
||||||
A typical workflow is as follows:
|
A typical workflow is as follows:
|
||||||
|
|
||||||
.. code:: console
|
.. code-block:: console
|
||||||
|
|
||||||
spack env create -d .
|
spack env create -d .
|
||||||
spack -e . add perl
|
spack -e . add perl
|
||||||
@@ -1083,7 +1257,7 @@ its dependencies. This can be useful when certain flags should only apply to
|
|||||||
dependencies. Below we show a use case where a spec is installed with verbose
|
dependencies. Below we show a use case where a spec is installed with verbose
|
||||||
output (``spack install --verbose``) while its dependencies are installed silently:
|
output (``spack install --verbose``) while its dependencies are installed silently:
|
||||||
|
|
||||||
.. code:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ spack env depfile -o Makefile
|
$ spack env depfile -o Makefile
|
||||||
|
|
||||||
@@ -1105,7 +1279,7 @@ This can be accomplished through the generated ``[<prefix>/]SPACK_PACKAGE_IDS``
|
|||||||
variable. Assuming we have an active and concrete environment, we generate the
|
variable. Assuming we have an active and concrete environment, we generate the
|
||||||
associated ``Makefile`` with a prefix ``example``:
|
associated ``Makefile`` with a prefix ``example``:
|
||||||
|
|
||||||
.. code:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ spack env depfile -o env.mk --make-prefix example
|
$ spack env depfile -o env.mk --make-prefix example
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
@@ -111,3 +111,39 @@ The corresponding unit tests can be run giving the appropriate options to ``spac
|
|||||||
|
|
||||||
(5 durations < 0.005s hidden. Use -vv to show these durations.)
|
(5 durations < 0.005s hidden. Use -vv to show these durations.)
|
||||||
=========================================== 5 passed in 5.06s ============================================
|
=========================================== 5 passed in 5.06s ============================================
|
||||||
|
|
||||||
|
---------------------------------------
|
||||||
|
Registering Extensions via Entry Points
|
||||||
|
---------------------------------------
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
Python version >= 3.8 is required to register extensions via entry points.
|
||||||
|
|
||||||
|
Spack can be made aware of extensions that are installed as part of a python package. To do so, register a function that returns the extension path, or paths, to the ``"spack.extensions"`` entry point. Consider the Python package ``my_package`` that includes a Spack extension:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
my-package/
|
||||||
|
├── src
|
||||||
|
│ ├── my_package
|
||||||
|
│ │ └── __init__.py
|
||||||
|
│ └── spack-scripting/ # the spack extensions
|
||||||
|
└── pyproject.toml
|
||||||
|
|
||||||
|
adding the following to ``my_package``'s ``pyproject.toml`` will make the ``spack-scripting`` extension visible to Spack when ``my_package`` is installed:
|
||||||
|
|
||||||
|
.. code-block:: toml
|
||||||
|
|
||||||
|
[project.entry_points."spack.extenions"]
|
||||||
|
my_package = "my_package:get_extension_path"
|
||||||
|
|
||||||
|
The function ``my_package.get_extension_path`` in ``my_package/__init__.py`` might look like
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
import importlib.resources
|
||||||
|
|
||||||
|
def get_extension_path():
|
||||||
|
dirname = importlib.resources.files("my_package").joinpath("spack-scripting")
|
||||||
|
if dirname.exists():
|
||||||
|
return str(dirname)
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
@@ -250,9 +250,10 @@ Compiler configuration
|
|||||||
|
|
||||||
Spack has the ability to build packages with multiple compilers and
|
Spack has the ability to build packages with multiple compilers and
|
||||||
compiler versions. Compilers can be made available to Spack by
|
compiler versions. Compilers can be made available to Spack by
|
||||||
specifying them manually in ``compilers.yaml``, or automatically by
|
specifying them manually in ``compilers.yaml`` or ``packages.yaml``,
|
||||||
running ``spack compiler find``, but for convenience Spack will
|
or automatically by running ``spack compiler find``, but for
|
||||||
automatically detect compilers the first time it needs them.
|
convenience Spack will automatically detect compilers the first time
|
||||||
|
it needs them.
|
||||||
|
|
||||||
.. _cmd-spack-compilers:
|
.. _cmd-spack-compilers:
|
||||||
|
|
||||||
@@ -457,6 +458,54 @@ specification. The operations available to modify the environment are ``set``, `
|
|||||||
prepend_path: # Similar for append|remove_path
|
prepend_path: # Similar for append|remove_path
|
||||||
LD_LIBRARY_PATH: /ld/paths/added/by/setvars/sh
|
LD_LIBRARY_PATH: /ld/paths/added/by/setvars/sh
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
Spack is in the process of moving compilers from a separate
|
||||||
|
attribute to be handled like all other packages. As part of this
|
||||||
|
process, the ``compilers.yaml`` section will eventually be replaced
|
||||||
|
by configuration in the ``packages.yaml`` section. This new
|
||||||
|
configuration is now available, although it is not yet the default
|
||||||
|
behavior.
|
||||||
|
|
||||||
|
Compilers can also be configured as external packages in the
|
||||||
|
``packages.yaml`` config file. Any external package for a compiler
|
||||||
|
(e.g. ``gcc`` or ``llvm``) will be treated as a configured compiler
|
||||||
|
assuming the paths to the compiler executables are determinable from
|
||||||
|
the prefix.
|
||||||
|
|
||||||
|
If the paths to the compiler executable are not determinable from the
|
||||||
|
prefix, you can add them to the ``extra_attributes`` field. Similarly,
|
||||||
|
all other fields from the compilers config can be added to the
|
||||||
|
``extra_attributes`` field for an external representing a compiler.
|
||||||
|
|
||||||
|
Note that the format for the ``paths`` field in the
|
||||||
|
``extra_attributes`` section is different than in the ``compilers``
|
||||||
|
config. For compilers configured as external packages, the section is
|
||||||
|
named ``compilers`` and the dictionary maps language names (``c``,
|
||||||
|
``cxx``, ``fortran``) to paths, rather than using the names ``cc``,
|
||||||
|
``fc``, and ``f77``.
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
packages:
|
||||||
|
gcc:
|
||||||
|
external:
|
||||||
|
- spec: gcc@12.2.0 arch=linux-rhel8-skylake
|
||||||
|
prefix: /usr
|
||||||
|
extra_attributes:
|
||||||
|
environment:
|
||||||
|
set:
|
||||||
|
GCC_ROOT: /usr
|
||||||
|
external:
|
||||||
|
- spec: llvm+clang@15.0.0 arch=linux-rhel8-skylake
|
||||||
|
prefix: /usr
|
||||||
|
extra_attributes:
|
||||||
|
compilers:
|
||||||
|
c: /usr/bin/clang-with-suffix
|
||||||
|
cxx: /usr/bin/clang++-with-extra-info
|
||||||
|
fortran: /usr/bin/gfortran
|
||||||
|
extra_rpaths:
|
||||||
|
- /usr/lib/llvm/
|
||||||
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
Build Your Own Compiler
|
Build Your Own Compiler
|
||||||
@@ -623,7 +672,7 @@ Fortran.
|
|||||||
|
|
||||||
compilers:
|
compilers:
|
||||||
- compiler:
|
- compiler:
|
||||||
...
|
# ...
|
||||||
paths:
|
paths:
|
||||||
cc: /usr/bin/clang
|
cc: /usr/bin/clang
|
||||||
cxx: /usr/bin/clang++
|
cxx: /usr/bin/clang++
|
||||||
@@ -1529,6 +1578,8 @@ Microsoft Visual Studio
|
|||||||
"""""""""""""""""""""""
|
"""""""""""""""""""""""
|
||||||
|
|
||||||
Microsoft Visual Studio provides the only Windows C/C++ compiler that is currently supported by Spack.
|
Microsoft Visual Studio provides the only Windows C/C++ compiler that is currently supported by Spack.
|
||||||
|
Spack additionally requires that the Windows SDK (including WGL) to be installed as part of your
|
||||||
|
visual studio installation as it is required to build many packages from source.
|
||||||
|
|
||||||
We require several specific components to be included in the Visual Studio installation.
|
We require several specific components to be included in the Visual Studio installation.
|
||||||
One is the C/C++ toolset, which can be selected as "Desktop development with C++" or "C++ build tools,"
|
One is the C/C++ toolset, which can be selected as "Desktop development with C++" or "C++ build tools,"
|
||||||
@@ -1536,6 +1587,7 @@ depending on installation type (Professional, Build Tools, etc.) The other requ
|
|||||||
"C++ CMake tools for Windows," which can be selected from among the optional packages.
|
"C++ CMake tools for Windows," which can be selected from among the optional packages.
|
||||||
This provides CMake and Ninja for use during Spack configuration.
|
This provides CMake and Ninja for use during Spack configuration.
|
||||||
|
|
||||||
|
|
||||||
If you already have Visual Studio installed, you can make sure these components are installed by
|
If you already have Visual Studio installed, you can make sure these components are installed by
|
||||||
rerunning the installer. Next to your installation, select "Modify" and look at the
|
rerunning the installer. Next to your installation, select "Modify" and look at the
|
||||||
"Installation details" pane on the right.
|
"Installation details" pane on the right.
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
@@ -10,7 +10,7 @@ Modules (modules.yaml)
|
|||||||
======================
|
======================
|
||||||
|
|
||||||
The use of module systems to manage user environment in a controlled way
|
The use of module systems to manage user environment in a controlled way
|
||||||
is a common practice at HPC centers that is often embraced also by
|
is a common practice at HPC centers that is sometimes embraced also by
|
||||||
individual programmers on their development machines. To support this
|
individual programmers on their development machines. To support this
|
||||||
common practice Spack integrates with `Environment Modules
|
common practice Spack integrates with `Environment Modules
|
||||||
<http://modules.sourceforge.net/>`_ and `Lmod
|
<http://modules.sourceforge.net/>`_ and `Lmod
|
||||||
@@ -21,14 +21,38 @@ Modules are one of several ways you can use Spack packages. For other
|
|||||||
options that may fit your use case better, you should also look at
|
options that may fit your use case better, you should also look at
|
||||||
:ref:`spack load <spack-load>` and :ref:`environments <environments>`.
|
:ref:`spack load <spack-load>` and :ref:`environments <environments>`.
|
||||||
|
|
||||||
----------------------------
|
-----------
|
||||||
Using module files via Spack
|
Quick start
|
||||||
----------------------------
|
-----------
|
||||||
|
|
||||||
If you have installed a supported module system you should be able to
|
In the current version of Spack, module files are not generated by default. To get started, you
|
||||||
run ``module avail`` to see what module
|
can generate module files for all currently installed packages by running either
|
||||||
files have been installed. Here is sample output of those programs,
|
|
||||||
showing lots of installed packages:
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ spack module tcl refresh
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ spack module lmod refresh
|
||||||
|
|
||||||
|
Spack can also generate module files for all future installations automatically through the
|
||||||
|
following configuration:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ spack config add modules:default:enable:[tcl]
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
$ spack config add modules:default:enable:[lmod]
|
||||||
|
|
||||||
|
Assuming you have a module system installed, you should now be able to use the ``module`` command
|
||||||
|
to interact with them:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
@@ -65,33 +89,17 @@ scheme used at your site.
|
|||||||
Module file customization
|
Module file customization
|
||||||
-------------------------
|
-------------------------
|
||||||
|
|
||||||
Module files are generated by post-install hooks after the successful
|
|
||||||
installation of a package.
|
|
||||||
|
|
||||||
.. note::
|
|
||||||
|
|
||||||
Spack only generates modulefiles when a package is installed. If
|
|
||||||
you attempt to install a package and it is already installed, Spack
|
|
||||||
will not regenerate modulefiles for the package. This may lead to
|
|
||||||
inconsistent modulefiles if the Spack module configuration has
|
|
||||||
changed since the package was installed, either by editing a file
|
|
||||||
or changing scopes or environments.
|
|
||||||
|
|
||||||
Later in this section there is a subsection on :ref:`regenerating
|
|
||||||
modules <cmd-spack-module-refresh>` that will allow you to bring
|
|
||||||
your modules to a consistent state.
|
|
||||||
|
|
||||||
The table below summarizes the essential information associated with
|
The table below summarizes the essential information associated with
|
||||||
the different file formats that can be generated by Spack:
|
the different file formats that can be generated by Spack:
|
||||||
|
|
||||||
|
|
||||||
+-----------------------------+--------------------+-------------------------------+----------------------------------------------+----------------------+
|
+-----------+--------------+------------------------------+----------------------------------------------+----------------------+
|
||||||
| | **Hook name** | **Default root directory** | **Default template file** | **Compatible tools** |
|
| | Hierarchical | **Default root directory** | **Default template file** | **Compatible tools** |
|
||||||
+=============================+====================+===============================+==============================================+======================+
|
+===========+==============+==============================+==============================================+======================+
|
||||||
| **Tcl - Non-Hierarchical** | ``tcl`` | share/spack/modules | share/spack/templates/modules/modulefile.tcl | Env. Modules/Lmod |
|
| ``tcl`` | No | share/spack/modules | share/spack/templates/modules/modulefile.tcl | Env. Modules/Lmod |
|
||||||
+-----------------------------+--------------------+-------------------------------+----------------------------------------------+----------------------+
|
+-----------+--------------+------------------------------+----------------------------------------------+----------------------+
|
||||||
| **Lua - Hierarchical** | ``lmod`` | share/spack/lmod | share/spack/templates/modules/modulefile.lua | Lmod |
|
| ``lmod`` | Yes | share/spack/lmod | share/spack/templates/modules/modulefile.lua | Lmod |
|
||||||
+-----------------------------+--------------------+-------------------------------+----------------------------------------------+----------------------+
|
+-----------+--------------+------------------------------+----------------------------------------------+----------------------+
|
||||||
|
|
||||||
|
|
||||||
Spack ships with sensible defaults for the generation of module files, but
|
Spack ships with sensible defaults for the generation of module files, but
|
||||||
@@ -102,7 +110,7 @@ In general you can override or extend the default behavior by:
|
|||||||
2. writing specific rules in the ``modules.yaml`` configuration file
|
2. writing specific rules in the ``modules.yaml`` configuration file
|
||||||
3. writing your own templates to override or extend the defaults
|
3. writing your own templates to override or extend the defaults
|
||||||
|
|
||||||
The former method let you express changes in the run-time environment
|
The former method lets you express changes in the run-time environment
|
||||||
that are needed to use the installed software properly, e.g. injecting variables
|
that are needed to use the installed software properly, e.g. injecting variables
|
||||||
from language interpreters into their extensions. The latter two instead permit to
|
from language interpreters into their extensions. The latter two instead permit to
|
||||||
fine tune the filesystem layout, content and creation of module files to meet
|
fine tune the filesystem layout, content and creation of module files to meet
|
||||||
@@ -110,79 +118,62 @@ site specific conventions.
|
|||||||
|
|
||||||
.. _overide-api-calls-in-package-py:
|
.. _overide-api-calls-in-package-py:
|
||||||
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
Override API calls in ``package.py``
|
Setting environment variables dynamically in ``package.py``
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
There are two methods that you can override in any ``package.py`` to affect the
|
There are two methods that you can implement in any ``package.py`` to dynamically affect the
|
||||||
content of the module files generated by Spack. The first one:
|
content of the module files generated by Spack. The most important one is
|
||||||
|
``setup_run_environment``, which can be used to set environment variables in the module file that
|
||||||
|
depend on the spec:
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
def setup_run_environment(self, env):
|
def setup_run_environment(self, env):
|
||||||
pass
|
if self.spec.satisfies("+foo"):
|
||||||
|
env.set("FOO", "bar")
|
||||||
|
|
||||||
can alter the content of the module file associated with the same package where it is overridden.
|
The second, less commonly used, is ``setup_dependent_run_environment(self, env, dependent_spec)``,
|
||||||
The second method:
|
which allows a dependency to set variables in the module file of its dependents. This is typically
|
||||||
|
used in packages like ``python``, ``r``, or ``perl`` to prepend the dependent's prefix to the
|
||||||
|
search path of the interpreter (``PYTHONPATH``, ``R_LIBS``, ``PERL5LIB`` resp.), so it can locate
|
||||||
|
the packages at runtime.
|
||||||
|
|
||||||
|
For example, a simplified version of the ``python`` package could look like this:
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
def setup_dependent_run_environment(self, env, dependent_spec):
|
def setup_dependent_run_environment(self, env, dependent_spec):
|
||||||
pass
|
if dependent_spec.package.extends(self.spec):
|
||||||
|
env.prepend_path("PYTHONPATH", dependent_spec.prefix.lib.python)
|
||||||
|
|
||||||
can instead inject run-time environment modifications in the module files of packages
|
and would make any package that ``extends("python")`` have its library directory added to the
|
||||||
that depend on it. In both cases you need to fill ``env`` with the desired
|
``PYTHONPATH`` environment variable in the module file. It's much more convenient to set this
|
||||||
list of environment modifications.
|
variable here, than to repeat it in every Python extension's ``setup_run_environment`` method.
|
||||||
|
|
||||||
.. admonition:: The ``r`` package and callback APIs
|
|
||||||
|
|
||||||
An example in which it is crucial to override both methods
|
|
||||||
is given by the ``r`` package. This package installs libraries and headers
|
|
||||||
in non-standard locations and it is possible to prepend the appropriate directory
|
|
||||||
to the corresponding environment variables:
|
|
||||||
|
|
||||||
================== =================================
|
|
||||||
LD_LIBRARY_PATH ``self.prefix/rlib/R/lib``
|
|
||||||
PKG_CONFIG_PATH ``self.prefix/rlib/pkgconfig``
|
|
||||||
================== =================================
|
|
||||||
|
|
||||||
with the following snippet:
|
|
||||||
|
|
||||||
.. literalinclude:: _spack_root/var/spack/repos/builtin/packages/r/package.py
|
|
||||||
:pyobject: R.setup_run_environment
|
|
||||||
|
|
||||||
The ``r`` package also knows which environment variable should be modified
|
|
||||||
to make language extensions provided by other packages available, and modifies
|
|
||||||
it appropriately in the override of the second method:
|
|
||||||
|
|
||||||
.. literalinclude:: _spack_root/var/spack/repos/builtin/packages/r/package.py
|
|
||||||
:pyobject: R.setup_dependent_run_environment
|
|
||||||
|
|
||||||
.. _modules-yaml:
|
.. _modules-yaml:
|
||||||
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
Write a configuration file
|
The ``modules.yaml`` config file and module sets
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
The configuration files that control module generation behavior
|
The configuration files that control module generation behavior are named ``modules.yaml``. The
|
||||||
are named ``modules.yaml``. The default configuration:
|
default configuration looks like this:
|
||||||
|
|
||||||
.. literalinclude:: _spack_root/etc/spack/defaults/modules.yaml
|
.. literalinclude:: _spack_root/etc/spack/defaults/modules.yaml
|
||||||
:language: yaml
|
:language: yaml
|
||||||
|
|
||||||
activates the hooks to generate ``tcl`` module files and inspects
|
You can define one or more **module sets**, each of which can be configured separately with regard
|
||||||
the installation folder of each package for the presence of a set of subdirectories
|
to install location, naming scheme, inclusion and exclusion, autoloading, et cetera.
|
||||||
(``bin``, ``man``, ``share/man``, etc.). If any is found its full path is prepended
|
|
||||||
to the environment variables listed below the folder name.
|
|
||||||
|
|
||||||
Spack modules can be configured for multiple module sets. The default
|
The default module set is aptly named ``default``. All
|
||||||
module set is named ``default``. All Spack commands which operate on
|
:ref:`Spack commands that operate on modules <maintaining-module-files>` apply to the ``default``
|
||||||
modules default to apply the ``default`` module set, but can be
|
module set, unless another module set is specified explicitly (with the ``--name`` flag).
|
||||||
applied to any module set in the configuration.
|
|
||||||
|
|
||||||
"""""""""""""""""""""""""
|
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
Changing the modules root
|
Changing the modules root
|
||||||
"""""""""""""""""""""""""
|
^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
As shown in the table above, the default module root for ``lmod`` is
|
As shown in the table above, the default module root for ``lmod`` is
|
||||||
``$spack/share/spack/lmod`` and the default root for ``tcl`` is
|
``$spack/share/spack/lmod`` and the default root for ``tcl`` is
|
||||||
@@ -198,7 +189,7 @@ set by changing the ``roots`` key of the configuration.
|
|||||||
my_custom_lmod_modules:
|
my_custom_lmod_modules:
|
||||||
roots:
|
roots:
|
||||||
lmod: /path/to/install/custom/lmod/modules
|
lmod: /path/to/install/custom/lmod/modules
|
||||||
...
|
# ...
|
||||||
|
|
||||||
This configuration will create two module sets. The default module set
|
This configuration will create two module sets. The default module set
|
||||||
will install its ``tcl`` modules to ``/path/to/install/tcl/modules``
|
will install its ``tcl`` modules to ``/path/to/install/tcl/modules``
|
||||||
@@ -224,25 +215,32 @@ location could be confusing to users of your modules. In the next
|
|||||||
section, we will discuss enabling and disabling module types (module
|
section, we will discuss enabling and disabling module types (module
|
||||||
file generators) for each module set.
|
file generators) for each module set.
|
||||||
|
|
||||||
""""""""""""""""""""
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
Activate other hooks
|
Automatically generating module files
|
||||||
""""""""""""""""""""
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
Any other module file generator shipped with Spack can be activated adding it to the
|
Spack can be configured to automatically generate module files as part of package installation.
|
||||||
list under the ``enable`` key in the module file. Currently the only generator that
|
This is done by adding the desired module systems to the ``enable`` list.
|
||||||
is not active by default is ``lmod``, which produces hierarchical lua module files.
|
|
||||||
|
|
||||||
Each module system can then be configured separately. In fact, you should list configuration
|
|
||||||
options that affect a particular type of module files under a top level key corresponding
|
|
||||||
to the generator being customized:
|
|
||||||
|
|
||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
modules:
|
modules:
|
||||||
default:
|
default:
|
||||||
enable:
|
enable:
|
||||||
- tcl
|
- tcl
|
||||||
- lmod
|
- lmod
|
||||||
|
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
Configuring ``tcl`` and ``lmod`` modules
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
You can configure the behavior of either module system separately, under a key corresponding to
|
||||||
|
the generator being customized:
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
modules:
|
||||||
|
default:
|
||||||
tcl:
|
tcl:
|
||||||
# contains environment modules specific customizations
|
# contains environment modules specific customizations
|
||||||
lmod:
|
lmod:
|
||||||
@@ -253,16 +251,82 @@ either change the layout of the module files on the filesystem, or they will aff
|
|||||||
their content. For the latter point it is possible to use anonymous specs
|
their content. For the latter point it is possible to use anonymous specs
|
||||||
to fine tune the set of packages on which the modifications should be applied.
|
to fine tune the set of packages on which the modifications should be applied.
|
||||||
|
|
||||||
|
.. _autoloading-dependencies:
|
||||||
|
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
Autoloading and hiding dependencies
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
A module file should set the variables that are needed for an application to work. But since an
|
||||||
|
application often has many dependencies, where should all the environment variables for those be
|
||||||
|
set? In Spack the rule is that each package sets the runtime variables that are needed by the
|
||||||
|
package itself, and no more. This way, dependencies can be loaded standalone too, and duplication
|
||||||
|
of environment variables is avoided.
|
||||||
|
|
||||||
|
That means however that if you want to use an application, you need to load the modules for all its
|
||||||
|
dependencies. Of course this is not something you would want users to do manually.
|
||||||
|
|
||||||
|
Since Spack knows the dependency graph of every package, it can easily generate module files that
|
||||||
|
automatically load the modules for its dependencies recursively. It is enabled by default for both
|
||||||
|
Lmod and Environment Modules under the ``autoload: direct`` config option. The former system has
|
||||||
|
builtin support through the ``depends_on`` function, the latter simply uses a ``module load``
|
||||||
|
statement. Both module systems (at least in newer versions) do reference counting, so that if a
|
||||||
|
module is loaded by two different modules, it will only be unloaded after the others are.
|
||||||
|
|
||||||
|
The ``autoload`` key accepts the values:
|
||||||
|
|
||||||
|
* ``none``: no autoloading
|
||||||
|
* ``run``: autoload direct *run* type dependencies
|
||||||
|
* ``direct``: autoload direct *link and run* type dependencies
|
||||||
|
* ``all``: autoload all dependencies
|
||||||
|
|
||||||
|
In case of ``run`` and ``direct``, a ``module load`` triggers a recursive load.
|
||||||
|
|
||||||
|
The ``direct`` option is most correct: there are cases where pure link dependencies need to set
|
||||||
|
variables for themselves, or need to have variables of their own dependencies set.
|
||||||
|
|
||||||
|
In practice however, ``run`` is often sufficient, and may make ``module load`` snappier.
|
||||||
|
|
||||||
|
The ``all`` option is discouraged and seldomly used.
|
||||||
|
|
||||||
|
A common complaint about autoloading is the large number of modules that are visible to the user.
|
||||||
|
Spack has a solution for this as well: ``hide_implicits: true``. This ensures that only those
|
||||||
|
packages you've explicitly installed are exposed by ``module avail``, but still allows for
|
||||||
|
autoloading of hidden dependencies. Lmod should support hiding implicits in general, while
|
||||||
|
Environment Modules requires version 4.7 or higher.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
If supported by your module system, we highly encourage the following configuration that enables
|
||||||
|
autoloading and hiding of implicits. It ensures all runtime variables are set correctly,
|
||||||
|
including those for dependencies, without overwhelming the user with a large number of available
|
||||||
|
modules. Further, it makes it easier to get readable module names without collisions, see the
|
||||||
|
section below on :ref:`modules-projections`.
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
modules:
|
||||||
|
default:
|
||||||
|
tcl:
|
||||||
|
hide_implicits: true
|
||||||
|
all:
|
||||||
|
autoload: direct # or `run`
|
||||||
|
lmod:
|
||||||
|
hide_implicits: true
|
||||||
|
all:
|
||||||
|
autoload: direct # or `run`
|
||||||
|
|
||||||
.. _anonymous_specs:
|
.. _anonymous_specs:
|
||||||
|
|
||||||
""""""""""""""""""""""""""""
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
Selection by anonymous specs
|
Setting environment variables for selected packages in config
|
||||||
""""""""""""""""""""""""""""
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
In the configuration file you can use *anonymous specs* (i.e. specs
|
In the configuration file you can filter particular specs, and make further changes to the
|
||||||
that **are not required to have a root package** and are thus used just
|
environment variables that go into their module files. This is very powerful when you want to avoid
|
||||||
to express constraints) to apply certain modifications on a selected set
|
:ref:`modifying the package itself <overide-api-calls-in-package-py>`, or when you want to set
|
||||||
of the installed software. For instance, in the snippet below:
|
certain variables on multiple selected packages at once.
|
||||||
|
|
||||||
|
For instance, in the snippet below:
|
||||||
|
|
||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
@@ -305,12 +369,28 @@ the variable ``FOOBAR`` will be unset.
|
|||||||
.. note::
|
.. note::
|
||||||
Order does matter
|
Order does matter
|
||||||
The modifications associated with the ``all`` keyword are always evaluated
|
The modifications associated with the ``all`` keyword are always evaluated
|
||||||
first, no matter where they appear in the configuration file. All the other
|
first, no matter where they appear in the configuration file. All the other changes to
|
||||||
spec constraints are instead evaluated top to bottom.
|
environment variables for matching specs are evaluated from top to bottom.
|
||||||
|
|
||||||
""""""""""""""""""""""""""""""""""""""""""""
|
.. warning::
|
||||||
|
|
||||||
|
As general advice, it's often better to set as few unnecessary variables as possible. For
|
||||||
|
example, the following seemingly innocent and potentially useful configuration
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
all:
|
||||||
|
environment:
|
||||||
|
set:
|
||||||
|
"{name}_ROOT": "{prefix}"
|
||||||
|
|
||||||
|
sets ``BINUTILS_ROOT`` to its prefix in modules for ``binutils``, which happens to break
|
||||||
|
the ``gcc`` compiler: it uses this variable as its default search path for certain object
|
||||||
|
files and libraries, and by merely setting it, everything fails to link.
|
||||||
|
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
Exclude or include specific module files
|
Exclude or include specific module files
|
||||||
""""""""""""""""""""""""""""""""""""""""""""
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
You can use anonymous specs also to prevent module files from being written or
|
You can use anonymous specs also to prevent module files from being written or
|
||||||
to force them to be written. Consider the case where you want to hide from users
|
to force them to be written. Consider the case where you want to hide from users
|
||||||
@@ -330,14 +410,19 @@ you will prevent the generation of module files for any package that
|
|||||||
is compiled with ``gcc@4.4.7``, with the only exception of any ``gcc``
|
is compiled with ``gcc@4.4.7``, with the only exception of any ``gcc``
|
||||||
or any ``llvm`` installation.
|
or any ``llvm`` installation.
|
||||||
|
|
||||||
|
It is safe to combine ``exclude`` and ``autoload``
|
||||||
|
:ref:`mentioned above <autoloading-dependencies>`. When ``exclude`` prevents a module file to be
|
||||||
|
generated for a dependency, the ``autoload`` feature will simply not generate a statement to load
|
||||||
|
it.
|
||||||
|
|
||||||
|
|
||||||
.. _modules-projections:
|
.. _modules-projections:
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
Customize the naming of modules
|
Customize the naming of modules
|
||||||
"""""""""""""""""""""""""""""""
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
The names of environment modules generated by spack are not always easy to
|
The names of environment modules generated by Spack are not always easy to
|
||||||
fully comprehend due to the long hash in the name. There are three module
|
fully comprehend due to the long hash in the name. There are three module
|
||||||
configuration options to help with that. The first is a global setting to
|
configuration options to help with that. The first is a global setting to
|
||||||
adjust the hash length. It can be set anywhere from 0 to 32 and has a default
|
adjust the hash length. It can be set anywhere from 0 to 32 and has a default
|
||||||
@@ -353,6 +438,13 @@ shows how to set hash length in the module file names:
|
|||||||
tcl:
|
tcl:
|
||||||
hash_length: 7
|
hash_length: 7
|
||||||
|
|
||||||
|
.. tip::
|
||||||
|
|
||||||
|
Using ``hide_implicits: true`` (see :ref:`autoloading-dependencies`) vastly reduces the number
|
||||||
|
modules exposed to the user. The hidden modules always contain the hash in their name, and are
|
||||||
|
not influenced by the ``hash_length`` setting. Hidden implicits thus make it easier to use a
|
||||||
|
short hash length or no hash at all, without risking name conflicts.
|
||||||
|
|
||||||
To help make module names more readable, and to help alleviate name conflicts
|
To help make module names more readable, and to help alleviate name conflicts
|
||||||
with a short hash, one can use the ``suffixes`` option in the modules
|
with a short hash, one can use the ``suffixes`` option in the modules
|
||||||
configuration file. This option will add strings to modules that match a spec.
|
configuration file. This option will add strings to modules that match a spec.
|
||||||
@@ -365,12 +457,12 @@ For instance, the following config options,
|
|||||||
tcl:
|
tcl:
|
||||||
all:
|
all:
|
||||||
suffixes:
|
suffixes:
|
||||||
^python@2.7.12: 'python-2.7.12'
|
^python@3.12: 'python-3.12'
|
||||||
^openblas: 'openblas'
|
^openblas: 'openblas'
|
||||||
|
|
||||||
will add a ``python-2.7.12`` version string to any packages compiled with
|
will add a ``python-3.12`` version string to any packages compiled with
|
||||||
python matching the spec, ``python@2.7.12``. This is useful to know which
|
Python matching the spec, ``python@3.12``. This is useful to know which
|
||||||
version of python a set of python extensions is associated with. Likewise, the
|
version of Python a set of Python extensions is associated with. Likewise, the
|
||||||
``openblas`` string is attached to any program that has openblas in the spec,
|
``openblas`` string is attached to any program that has openblas in the spec,
|
||||||
most likely via the ``+blas`` variant specification.
|
most likely via the ``+blas`` variant specification.
|
||||||
|
|
||||||
@@ -468,41 +560,11 @@ that are already in the Lmod hierarchy.
|
|||||||
For hierarchies that are deeper than three layers ``lmod spider`` may have some issues.
|
For hierarchies that are deeper than three layers ``lmod spider`` may have some issues.
|
||||||
See `this discussion on the Lmod project <https://github.com/TACC/Lmod/issues/114>`_.
|
See `this discussion on the Lmod project <https://github.com/TACC/Lmod/issues/114>`_.
|
||||||
|
|
||||||
""""""""""""""""""""""
|
|
||||||
Select default modules
|
|
||||||
""""""""""""""""""""""
|
|
||||||
|
|
||||||
By default, when multiple modules of the same name share a directory,
|
|
||||||
the highest version number will be the default module. This behavior
|
|
||||||
of the ``module`` command can be overridden with a symlink named
|
|
||||||
``default`` to the desired default module. If you wish to configure
|
|
||||||
default modules with Spack, add a ``defaults`` key to your modules
|
|
||||||
configuration:
|
|
||||||
|
|
||||||
.. code-block:: yaml
|
|
||||||
|
|
||||||
modules:
|
|
||||||
my-module-set:
|
|
||||||
tcl:
|
|
||||||
defaults:
|
|
||||||
- gcc@10.2.1
|
|
||||||
- hdf5@1.2.10+mpi+hl%gcc
|
|
||||||
|
|
||||||
These defaults may be arbitrarily specific. For any package that
|
|
||||||
satisfies a default, Spack will generate the module file in the
|
|
||||||
appropriate path, and will generate a default symlink to the module
|
|
||||||
file as well.
|
|
||||||
|
|
||||||
.. warning::
|
|
||||||
If Spack is configured to generate multiple default packages in the
|
|
||||||
same directory, the last modulefile to be generated will be the
|
|
||||||
default module.
|
|
||||||
|
|
||||||
.. _customize-env-modifications:
|
.. _customize-env-modifications:
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
Customize environment modifications
|
Customize environment modifications
|
||||||
"""""""""""""""""""""""""""""""""""
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
You can control which prefixes in a Spack package are added to
|
You can control which prefixes in a Spack package are added to
|
||||||
environment variables with the ``prefix_inspections`` section; this
|
environment variables with the ``prefix_inspections`` section; this
|
||||||
@@ -600,9 +662,9 @@ stack to users who are likely to inspect the modules to find full
|
|||||||
paths to software, when it is desirable to present the users with a
|
paths to software, when it is desirable to present the users with a
|
||||||
simpler set of paths than those generated by the Spack install tree.
|
simpler set of paths than those generated by the Spack install tree.
|
||||||
|
|
||||||
""""""""""""""""""""""""""""""""""""
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
Filter out environment modifications
|
Filter out environment modifications
|
||||||
""""""""""""""""""""""""""""""""""""
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
Modifications to certain environment variables in module files are there by
|
Modifications to certain environment variables in module files are there by
|
||||||
default, for instance because they are generated by prefix inspections.
|
default, for instance because they are generated by prefix inspections.
|
||||||
@@ -622,49 +684,37 @@ do so by using the ``exclude_env_vars``:
|
|||||||
The configuration above will generate module files that will not contain
|
The configuration above will generate module files that will not contain
|
||||||
modifications to either ``CPATH`` or ``LIBRARY_PATH``.
|
modifications to either ``CPATH`` or ``LIBRARY_PATH``.
|
||||||
|
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
Select default modules
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
.. _autoloading-dependencies:
|
By default, when multiple modules of the same name share a directory,
|
||||||
|
the highest version number will be the default module. This behavior
|
||||||
"""""""""""""""""""""
|
of the ``module`` command can be overridden with a symlink named
|
||||||
Autoload dependencies
|
``default`` to the desired default module. If you wish to configure
|
||||||
"""""""""""""""""""""
|
default modules with Spack, add a ``defaults`` key to your modules
|
||||||
|
configuration:
|
||||||
Often it is required for a module to have its (transient) dependencies loaded as well.
|
|
||||||
One example where this is useful is when one package needs to use executables provided
|
|
||||||
by its dependency; when the dependency is autoloaded, the executable will be in the
|
|
||||||
PATH. Similarly for scripting languages such as Python, packages and their dependencies
|
|
||||||
have to be loaded together.
|
|
||||||
|
|
||||||
Autoloading is enabled by default for Lmod and Environment Modules. The former
|
|
||||||
has builtin support for through the ``depends_on`` function. The latter uses
|
|
||||||
``module load`` statement to load and track dependencies.
|
|
||||||
|
|
||||||
Autoloading can also be enabled conditionally:
|
|
||||||
|
|
||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
modules:
|
modules:
|
||||||
default:
|
my-module-set:
|
||||||
tcl:
|
tcl:
|
||||||
all:
|
defaults:
|
||||||
autoload: none
|
- gcc@10.2.1
|
||||||
^python:
|
- hdf5@1.2.10+mpi+hl%gcc
|
||||||
autoload: direct
|
|
||||||
|
|
||||||
The configuration file above will produce module files that will
|
These defaults may be arbitrarily specific. For any package that
|
||||||
load their direct dependencies if the package installed depends on ``python``.
|
satisfies a default, Spack will generate the module file in the
|
||||||
The allowed values for the ``autoload`` statement are either ``none``,
|
appropriate path, and will generate a default symlink to the module
|
||||||
``direct`` or ``all``.
|
file as well.
|
||||||
|
|
||||||
.. note::
|
.. warning::
|
||||||
Tcl prerequisites
|
If Spack is configured to generate multiple default packages in the
|
||||||
In the ``tcl`` section of the configuration file it is possible to use
|
same directory, the last modulefile to be generated will be the
|
||||||
the ``prerequisites`` directive that accepts the same values as
|
default module.
|
||||||
``autoload``. It will produce module files that have a ``prereq``
|
|
||||||
statement, which autoloads dependencies on Environment Modules when its
|
.. _maintaining-module-files:
|
||||||
``auto_handling`` configuration option is enabled. If Environment Modules
|
|
||||||
is installed with Spack, ``auto_handling`` is enabled by default starting
|
|
||||||
version 4.2. Otherwise it is enabled by default since version 5.0.
|
|
||||||
|
|
||||||
------------------------
|
------------------------
|
||||||
Maintaining Module Files
|
Maintaining Module Files
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
@@ -97,6 +97,35 @@ Each package version and compiler listed in an external should
|
|||||||
have entries in Spack's packages and compiler configuration, even
|
have entries in Spack's packages and compiler configuration, even
|
||||||
though the package and compiler may not ever be built.
|
though the package and compiler may not ever be built.
|
||||||
|
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
Extra attributes for external packages
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
Sometimes external packages require additional attributes to be used
|
||||||
|
effectively. This information can be defined on a per-package basis
|
||||||
|
and stored in the ``extra_attributes`` section of the external package
|
||||||
|
configuration. In addition to per-package information, this section
|
||||||
|
can be used to define environment modifications to be performed
|
||||||
|
whenever the package is used. For example, if an external package is
|
||||||
|
built without ``rpath`` support, it may require ``LD_LIBRARY_PATH``
|
||||||
|
settings to find its dependencies. This could be configured as
|
||||||
|
follows:
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
packages:
|
||||||
|
mpich:
|
||||||
|
externals:
|
||||||
|
- spec: mpich@3.3 %clang@12.0.0 +hwloc
|
||||||
|
prefix: /path/to/mpich
|
||||||
|
extra_attributes:
|
||||||
|
environment:
|
||||||
|
prepend_path:
|
||||||
|
LD_LIBRARY_PATH: /path/to/hwloc/lib64
|
||||||
|
|
||||||
|
See :ref:`configuration_environment_variables` for more information on
|
||||||
|
how to configure environment modifications in Spack config files.
|
||||||
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
Prevent packages from being built from sources
|
Prevent packages from being built from sources
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
@@ -458,6 +487,56 @@ present. For instance with a configuration like:
|
|||||||
|
|
||||||
you will use ``mvapich2~cuda %gcc`` as an ``mpi`` provider.
|
you will use ``mvapich2~cuda %gcc`` as an ``mpi`` provider.
|
||||||
|
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
Conflicts and strong preferences
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
If the semantic of requirements is too strong, you can also express "strong preferences" and "conflicts"
|
||||||
|
from configuration files:
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
packages:
|
||||||
|
all:
|
||||||
|
prefer:
|
||||||
|
- '%clang'
|
||||||
|
conflict:
|
||||||
|
- '+shared'
|
||||||
|
|
||||||
|
The ``prefer`` and ``conflict`` sections can be used whenever a ``require`` section is allowed.
|
||||||
|
The argument is always a list of constraints, and each constraint can be either a simple string,
|
||||||
|
or a more complex object:
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
packages:
|
||||||
|
all:
|
||||||
|
conflict:
|
||||||
|
- spec: '%clang'
|
||||||
|
when: 'target=x86_64_v3'
|
||||||
|
message: 'reason why clang cannot be used'
|
||||||
|
|
||||||
|
The ``spec`` attribute is mandatory, while both ``when`` and ``message`` are optional.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
Requirements allow for expressing both "strong preferences" and "conflicts".
|
||||||
|
The syntax for doing so, though, may not be immediately clear. For
|
||||||
|
instance, if we want to prevent any package from using ``%clang``, we can set:
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
packages:
|
||||||
|
all:
|
||||||
|
require:
|
||||||
|
- one_of: ['%clang', '@:']
|
||||||
|
|
||||||
|
Since only one of the requirements must hold, and ``@:`` is always true, the rule above is
|
||||||
|
equivalent to a conflict. For "strong preferences" we need to substitute the ``one_of`` policy
|
||||||
|
with ``any_of``.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.. _package-preferences:
|
.. _package-preferences:
|
||||||
|
|
||||||
-------------------
|
-------------------
|
||||||
@@ -568,6 +647,8 @@ manually placed files within the install prefix are owned by the
|
|||||||
assigned group. If no group is assigned, Spack will allow the OS
|
assigned group. If no group is assigned, Spack will allow the OS
|
||||||
default behavior to go as expected.
|
default behavior to go as expected.
|
||||||
|
|
||||||
|
.. _assigning-package-attributes:
|
||||||
|
|
||||||
----------------------------
|
----------------------------
|
||||||
Assigning Package Attributes
|
Assigning Package Attributes
|
||||||
----------------------------
|
----------------------------
|
||||||
@@ -578,10 +659,11 @@ You can assign class-level attributes in the configuration:
|
|||||||
|
|
||||||
packages:
|
packages:
|
||||||
mpileaks:
|
mpileaks:
|
||||||
# Override existing attributes
|
package_attributes:
|
||||||
url: http://www.somewhereelse.com/mpileaks-1.0.tar.gz
|
# Override existing attributes
|
||||||
# ... or add new ones
|
url: http://www.somewhereelse.com/mpileaks-1.0.tar.gz
|
||||||
x: 1
|
# ... or add new ones
|
||||||
|
x: 1
|
||||||
|
|
||||||
Attributes set this way will be accessible to any method executed
|
Attributes set this way will be accessible to any method executed
|
||||||
in the package.py file (e.g. the ``install()`` method). Values for these
|
in the package.py file (e.g. the ``install()`` method). Values for these
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
@@ -237,7 +237,7 @@ for details):
|
|||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
:linenos:
|
:linenos:
|
||||||
|
|
||||||
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
@@ -893,26 +893,50 @@ as an option to the ``version()`` directive. Example situations would be a
|
|||||||
"snapshot"-like Version Control System (VCS) tag, a VCS branch such as
|
"snapshot"-like Version Control System (VCS) tag, a VCS branch such as
|
||||||
``v6-16-00-patches``, or a URL specifying a regularly updated snapshot tarball.
|
``v6-16-00-patches``, or a URL specifying a regularly updated snapshot tarball.
|
||||||
|
|
||||||
|
|
||||||
|
.. _version-comparison:
|
||||||
|
|
||||||
^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^
|
||||||
Version comparison
|
Version comparison
|
||||||
^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
Spack imposes a generic total ordering on the set of versions,
|
||||||
|
independently from the package they are associated with.
|
||||||
|
|
||||||
Most Spack versions are numeric, a tuple of integers; for example,
|
Most Spack versions are numeric, a tuple of integers; for example,
|
||||||
``0.1``, ``6.96`` or ``1.2.3.1``. Spack knows how to compare and sort
|
``0.1``, ``6.96`` or ``1.2.3.1``. In this very basic case, version
|
||||||
numeric versions.
|
comparison is lexicographical on the numeric components:
|
||||||
|
``1.2 < 1.2.1 < 1.2.2 < 1.10``.
|
||||||
|
|
||||||
Some Spack versions involve slight extensions of numeric syntax; for
|
Spack can also supports string components such as ``1.1.1a`` and
|
||||||
example, ``py-sphinx-rtd-theme@=0.1.10a0``. In this case, numbers are
|
``1.y.0``. String components are considered less than numeric
|
||||||
always considered to be "newer" than letters. This is for consistency
|
components, so ``1.y.0 < 1.0``. This is for consistency with
|
||||||
with `RPM <https://bugzilla.redhat.com/show_bug.cgi?id=50977>`_.
|
`RPM <https://bugzilla.redhat.com/show_bug.cgi?id=50977>`_. String
|
||||||
|
components do not have to be separated by dots or any other delimiter.
|
||||||
|
So, the contrived version ``1y0`` is identical to ``1.y.0``.
|
||||||
|
|
||||||
Spack versions may also be arbitrary non-numeric strings, for example
|
Pre-release suffixes also contain string parts, but they are handled
|
||||||
``develop``, ``master``, ``local``.
|
in a special way. For example ``1.2.3alpha1`` is parsed as a pre-release
|
||||||
|
of the version ``1.2.3``. This allows Spack to order it before the
|
||||||
|
actual release: ``1.2.3alpha1 < 1.2.3``. Spack supports alpha, beta and
|
||||||
|
release candidate suffixes: ``1.2alpha1 < 1.2beta1 < 1.2rc1 < 1.2``. Any
|
||||||
|
suffix not recognized as a pre-release is treated as an ordinary
|
||||||
|
string component, so ``1.2 < 1.2-mysuffix``.
|
||||||
|
|
||||||
The order on versions is defined as follows. A version string is split
|
Finally, there are a few special string components that are considered
|
||||||
into a list of components based on delimiters such as ``.``, ``-`` etc.
|
"infinity versions". They include ``develop``, ``main``, ``master``,
|
||||||
Lists are then ordered lexicographically, where components are ordered
|
``head``, ``trunk``, and ``stable``. For example: ``1.2 < develop``.
|
||||||
as follows:
|
These are useful for specifying the most recent development version of
|
||||||
|
a package (often a moving target like a git branch), without assigning
|
||||||
|
a specific version number. Infinity versions are not automatically used when determining the latest version of a package unless explicitly required by another package or user.
|
||||||
|
|
||||||
|
More formally, the order on versions is defined as follows. A version
|
||||||
|
string is split into a list of components based on delimiters such as
|
||||||
|
``.`` and ``-`` and string boundaries. The components are split into
|
||||||
|
the **release** and a possible **pre-release** (if the last component
|
||||||
|
is numeric and the second to last is a string ``alpha``, ``beta`` or ``rc``).
|
||||||
|
The release components are ordered lexicographically, with comparsion
|
||||||
|
between different types of components as follows:
|
||||||
|
|
||||||
#. The following special strings are considered larger than any other
|
#. The following special strings are considered larger than any other
|
||||||
numeric or non-numeric version component, and satisfy the following
|
numeric or non-numeric version component, and satisfy the following
|
||||||
@@ -925,6 +949,9 @@ as follows:
|
|||||||
#. All other non-numeric components are less than numeric components,
|
#. All other non-numeric components are less than numeric components,
|
||||||
and are ordered alphabetically.
|
and are ordered alphabetically.
|
||||||
|
|
||||||
|
Finally, if the release components are equal, the pre-release components
|
||||||
|
are used to break the tie, in the obvious way.
|
||||||
|
|
||||||
The logic behind this sort order is two-fold:
|
The logic behind this sort order is two-fold:
|
||||||
|
|
||||||
#. Non-numeric versions are usually used for special cases while
|
#. Non-numeric versions are usually used for special cases while
|
||||||
@@ -4379,10 +4406,16 @@ implementation was selected for this build:
|
|||||||
elif "mvapich" in spec:
|
elif "mvapich" in spec:
|
||||||
configure_args.append("--with-mvapich")
|
configure_args.append("--with-mvapich")
|
||||||
|
|
||||||
It's also a bit more concise than satisfies. The difference between
|
It's also a bit more concise than satisfies.
|
||||||
the two functions is that ``satisfies()`` tests whether spec
|
|
||||||
constraints overlap at all, while ``in`` tests whether a spec or any
|
.. note::
|
||||||
of its dependencies satisfy the provided spec.
|
|
||||||
|
The ``satisfies()`` method tests whether this spec has, at least, all the constraints of the argument spec,
|
||||||
|
while ``in`` tests whether a spec or any of its dependencies satisfy the provided spec.
|
||||||
|
|
||||||
|
If the provided spec is anonymous (e.g., ":1.2:", "+shared") or has the
|
||||||
|
same name as the spec being checked, then ``in`` works the same as
|
||||||
|
``satisfies()``; however, use of ``satisfies()`` is more intuitive.
|
||||||
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
Architecture specifiers
|
Architecture specifiers
|
||||||
@@ -5284,7 +5317,7 @@ installed example.
|
|||||||
example = which(self.prefix.bin.example)
|
example = which(self.prefix.bin.example)
|
||||||
example()
|
example()
|
||||||
|
|
||||||
Output showing the identification of each test part after runnig the tests
|
Output showing the identification of each test part after running the tests
|
||||||
is illustrated below.
|
is illustrated below.
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
@@ -5781,7 +5814,7 @@ with those implemented in the package itself.
|
|||||||
* - `Cxx
|
* - `Cxx
|
||||||
<https://github.com/spack/spack/blob/develop/var/spack/repos/builtin/packages/cxx>`_
|
<https://github.com/spack/spack/blob/develop/var/spack/repos/builtin/packages/cxx>`_
|
||||||
- Compiles and runs several ``hello`` programs
|
- Compiles and runs several ``hello`` programs
|
||||||
* - `Fortan
|
* - `Fortran
|
||||||
<https://github.com/spack/spack/blob/develop/var/spack/repos/builtin/packages/fortran>`_
|
<https://github.com/spack/spack/blob/develop/var/spack/repos/builtin/packages/fortran>`_
|
||||||
- Compiles and runs ``hello`` programs (``F`` and ``f90``)
|
- Compiles and runs ``hello`` programs (``F`` and ``f90``)
|
||||||
* - `Mpi
|
* - `Mpi
|
||||||
@@ -6402,9 +6435,12 @@ the ``paths`` attribute:
|
|||||||
echo "Target: x86_64-pc-linux-gnu"
|
echo "Target: x86_64-pc-linux-gnu"
|
||||||
echo "Thread model: posix"
|
echo "Thread model: posix"
|
||||||
echo "InstalledDir: /usr/bin"
|
echo "InstalledDir: /usr/bin"
|
||||||
|
platforms: ["linux", "darwin"]
|
||||||
results:
|
results:
|
||||||
- spec: 'llvm@3.9.1 +clang~lld~lldb'
|
- spec: 'llvm@3.9.1 +clang~lld~lldb'
|
||||||
|
|
||||||
|
If the ``platforms`` attribute is present, tests are run only if the current host
|
||||||
|
matches one of the listed platforms.
|
||||||
Each test is performed by first creating a temporary directory structure as
|
Each test is performed by first creating a temporary directory structure as
|
||||||
specified in the corresponding ``layout`` and by then running
|
specified in the corresponding ``layout`` and by then running
|
||||||
package detection and checking that the outcome matches the expected
|
package detection and checking that the outcome matches the expected
|
||||||
@@ -6438,6 +6474,10 @@ package detection and checking that the outcome matches the expected
|
|||||||
- A spec that is expected from detection
|
- A spec that is expected from detection
|
||||||
- Any valid spec
|
- Any valid spec
|
||||||
- Yes
|
- Yes
|
||||||
|
* - ``results:[0]:extra_attributes``
|
||||||
|
- Extra attributes expected on the associated Spec
|
||||||
|
- Nested dictionary with string as keys, and regular expressions as leaf values
|
||||||
|
- No
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""
|
||||||
Reuse tests from other packages
|
Reuse tests from other packages
|
||||||
@@ -6973,3 +7013,18 @@ you probably care most about are:
|
|||||||
You may also care about `license exceptions
|
You may also care about `license exceptions
|
||||||
<https://spdx.org/licenses/exceptions-index.html>`_ that use the ``WITH`` operator,
|
<https://spdx.org/licenses/exceptions-index.html>`_ that use the ``WITH`` operator,
|
||||||
e.g. ``Apache-2.0 WITH LLVM-exception``.
|
e.g. ``Apache-2.0 WITH LLVM-exception``.
|
||||||
|
|
||||||
|
Many of the licenses that are currently in the spack repositories have been
|
||||||
|
automatically determined. While this is great for bulk adding license
|
||||||
|
information and is most likely correct, there are sometimes edge cases that
|
||||||
|
require manual intervention. To determine which licenses are validated and
|
||||||
|
which are not, there is the `checked_by` parameter in the license directive:
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
license("<license>", when="<when>", checked_by="<github username>")
|
||||||
|
|
||||||
|
When you have validated a github license, either when doing so explicitly or
|
||||||
|
as part of packaging a new package, please set the `checked_by` parameter
|
||||||
|
to your Github username to signal that the license has been manually
|
||||||
|
verified.
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
@@ -810,7 +810,7 @@ generated by ``spack ci generate``. You also want your generated rebuild jobs
|
|||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
spack:
|
spack:
|
||||||
...
|
# ...
|
||||||
ci:
|
ci:
|
||||||
pipeline-gen:
|
pipeline-gen:
|
||||||
- build-job:
|
- build-job:
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
@@ -17,7 +17,7 @@ experimental software separately from the built-in repository. Spack
|
|||||||
allows you to configure local repositories using either the
|
allows you to configure local repositories using either the
|
||||||
``repos.yaml`` or the ``spack repo`` command.
|
``repos.yaml`` or the ``spack repo`` command.
|
||||||
|
|
||||||
A package repository a directory structured like this::
|
A package repository is a directory structured like this::
|
||||||
|
|
||||||
repo/
|
repo/
|
||||||
repo.yaml
|
repo.yaml
|
||||||
|
@@ -2,12 +2,12 @@ sphinx==7.2.6
|
|||||||
sphinxcontrib-programoutput==0.17
|
sphinxcontrib-programoutput==0.17
|
||||||
sphinx_design==0.5.0
|
sphinx_design==0.5.0
|
||||||
sphinx-rtd-theme==2.0.0
|
sphinx-rtd-theme==2.0.0
|
||||||
python-levenshtein==0.23.0
|
python-levenshtein==0.25.1
|
||||||
docutils==0.20.1
|
docutils==0.20.1
|
||||||
pygments==2.17.2
|
pygments==2.17.2
|
||||||
urllib3==2.1.0
|
urllib3==2.2.1
|
||||||
pytest==7.4.3
|
pytest==8.2.0
|
||||||
isort==5.12.0
|
isort==5.13.2
|
||||||
black==23.11.0
|
black==24.4.2
|
||||||
flake8==6.1.0
|
flake8==7.0.0
|
||||||
mypy==1.7.1
|
mypy==1.10.0
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.. Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
|
.. Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
|
||||||
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
@@ -142,7 +142,7 @@ Reputational Key
|
|||||||
----------------
|
----------------
|
||||||
|
|
||||||
The Reputational Key is the public facing key used to sign complete groups of
|
The Reputational Key is the public facing key used to sign complete groups of
|
||||||
development and release packages. Only one key pair exsits in this class of
|
development and release packages. Only one key pair exists in this class of
|
||||||
keys. In contrast to the Intermediate CI Key the Reputational Key *should* be
|
keys. In contrast to the Intermediate CI Key the Reputational Key *should* be
|
||||||
used to verify package integrity. At the end of develop and release pipeline a
|
used to verify package integrity. At the end of develop and release pipeline a
|
||||||
final pipeline job pulls down all signed package metadata built by the pipeline,
|
final pipeline job pulls down all signed package metadata built by the pipeline,
|
||||||
@@ -272,7 +272,7 @@ Internal Implementation
|
|||||||
|
|
||||||
The technical implementation of the pipeline signing process includes components
|
The technical implementation of the pipeline signing process includes components
|
||||||
defined in Amazon Web Services, the Kubernetes cluster, at affilicated
|
defined in Amazon Web Services, the Kubernetes cluster, at affilicated
|
||||||
institutions, and the GitLab/GitLab Runner deployment. We present the techincal
|
institutions, and the GitLab/GitLab Runner deployment. We present the technical
|
||||||
implementation in two interdependent sections. The first addresses how secrets
|
implementation in two interdependent sections. The first addresses how secrets
|
||||||
are managed through the lifecycle of a develop or release pipeline. The second
|
are managed through the lifecycle of a develop or release pipeline. The second
|
||||||
section describes how Gitlab Runner and pipelines are configured and managed to
|
section describes how Gitlab Runner and pipelines are configured and managed to
|
||||||
@@ -295,7 +295,7 @@ infrastructure.
|
|||||||
-----------------------
|
-----------------------
|
||||||
|
|
||||||
Multiple intermediate CI signing keys exist, one Intermediate CI Key for jobs
|
Multiple intermediate CI signing keys exist, one Intermediate CI Key for jobs
|
||||||
run in AWS, and one key for each affiliated institution (e.g. Univerity of
|
run in AWS, and one key for each affiliated institution (e.g. University of
|
||||||
Oregon). Here we describe how the Intermediate CI Key is managed in AWS:
|
Oregon). Here we describe how the Intermediate CI Key is managed in AWS:
|
||||||
|
|
||||||
The Intermediate CI Key (including the Signing Intermediate CI Private Key is
|
The Intermediate CI Key (including the Signing Intermediate CI Private Key is
|
||||||
@@ -305,7 +305,7 @@ contains an ASCII-armored export of just the *public* components of the
|
|||||||
Reputational Key. This secret also contains the *public* components of each of
|
Reputational Key. This secret also contains the *public* components of each of
|
||||||
the affiliated institutions' Intermediate CI Key. These are potentially needed
|
the affiliated institutions' Intermediate CI Key. These are potentially needed
|
||||||
to verify dependent packages which may have been found in the public mirror or
|
to verify dependent packages which may have been found in the public mirror or
|
||||||
built by a protected job running on an affiliated institution's infrastrcuture
|
built by a protected job running on an affiliated institution's infrastructure
|
||||||
in an earlier stage of the pipeline.
|
in an earlier stage of the pipeline.
|
||||||
|
|
||||||
Procedurally the ``spack-intermediate-ci-signing-key`` secret is used in
|
Procedurally the ``spack-intermediate-ci-signing-key`` secret is used in
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
257
lib/spack/env/cc
vendored
257
lib/spack/env/cc
vendored
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh -f
|
#!/bin/sh -f
|
||||||
# shellcheck disable=SC2034 # evals in this script fool shellcheck
|
# shellcheck disable=SC2034 # evals in this script fool shellcheck
|
||||||
#
|
#
|
||||||
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
@@ -47,7 +47,8 @@ SPACK_F77_RPATH_ARG
|
|||||||
SPACK_FC_RPATH_ARG
|
SPACK_FC_RPATH_ARG
|
||||||
SPACK_LINKER_ARG
|
SPACK_LINKER_ARG
|
||||||
SPACK_SHORT_SPEC
|
SPACK_SHORT_SPEC
|
||||||
SPACK_SYSTEM_DIRS"
|
SPACK_SYSTEM_DIRS
|
||||||
|
SPACK_MANAGED_DIRS"
|
||||||
|
|
||||||
# Optional parameters that aren't required to be set
|
# Optional parameters that aren't required to be set
|
||||||
|
|
||||||
@@ -173,22 +174,6 @@ preextend() {
|
|||||||
unset IFS
|
unset IFS
|
||||||
}
|
}
|
||||||
|
|
||||||
# system_dir PATH
|
|
||||||
# test whether a path is a system directory
|
|
||||||
system_dir() {
|
|
||||||
IFS=':' # SPACK_SYSTEM_DIRS is colon-separated
|
|
||||||
path="$1"
|
|
||||||
for sd in $SPACK_SYSTEM_DIRS; do
|
|
||||||
if [ "${path}" = "${sd}" ] || [ "${path}" = "${sd}/" ]; then
|
|
||||||
# success if path starts with a system prefix
|
|
||||||
unset IFS
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
unset IFS
|
|
||||||
return 1 # fail if path starts no system prefix
|
|
||||||
}
|
|
||||||
|
|
||||||
# Fail with a clear message if the input contains any bell characters.
|
# Fail with a clear message if the input contains any bell characters.
|
||||||
if eval "[ \"\${*#*${lsep}}\" != \"\$*\" ]"; then
|
if eval "[ \"\${*#*${lsep}}\" != \"\$*\" ]"; then
|
||||||
die "Compiler command line contains our separator ('${lsep}'). Cannot parse."
|
die "Compiler command line contains our separator ('${lsep}'). Cannot parse."
|
||||||
@@ -201,6 +186,18 @@ for param in $params; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# eval this because SPACK_MANAGED_DIRS and SPACK_SYSTEM_DIRS are inputs we don't wanna loop over.
|
||||||
|
# moving the eval inside the function would eval it every call.
|
||||||
|
eval "\
|
||||||
|
path_order() {
|
||||||
|
case \"\$1\" in
|
||||||
|
$SPACK_MANAGED_DIRS) return 0 ;;
|
||||||
|
$SPACK_SYSTEM_DIRS) return 2 ;;
|
||||||
|
/*) return 1 ;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
"
|
||||||
|
|
||||||
# Check if optional parameters are defined
|
# Check if optional parameters are defined
|
||||||
# If we aren't asking for debug flags, don't add them
|
# If we aren't asking for debug flags, don't add them
|
||||||
if [ -z "${SPACK_ADD_DEBUG_FLAGS:-}" ]; then
|
if [ -z "${SPACK_ADD_DEBUG_FLAGS:-}" ]; then
|
||||||
@@ -248,7 +245,7 @@ case "$command" in
|
|||||||
lang_flags=C
|
lang_flags=C
|
||||||
debug_flags="-g"
|
debug_flags="-g"
|
||||||
;;
|
;;
|
||||||
c++|CC|g++|clang++|armclang++|icpc|icpx|dpcpp|pgc++|nvc++|xlc++|xlc++_r|FCC|amdclang++|crayCC)
|
c++|CC|g++|clang++|armclang++|icpc|icpx|pgc++|nvc++|xlc++|xlc++_r|FCC|amdclang++|crayCC)
|
||||||
command="$SPACK_CXX"
|
command="$SPACK_CXX"
|
||||||
language="C++"
|
language="C++"
|
||||||
comp="CXX"
|
comp="CXX"
|
||||||
@@ -420,11 +417,12 @@ input_command="$*"
|
|||||||
parse_Wl() {
|
parse_Wl() {
|
||||||
while [ $# -ne 0 ]; do
|
while [ $# -ne 0 ]; do
|
||||||
if [ "$wl_expect_rpath" = yes ]; then
|
if [ "$wl_expect_rpath" = yes ]; then
|
||||||
if system_dir "$1"; then
|
path_order "$1"
|
||||||
append return_system_rpath_dirs_list "$1"
|
case $? in
|
||||||
else
|
0) append return_spack_store_rpath_dirs_list "$1" ;;
|
||||||
append return_rpath_dirs_list "$1"
|
1) append return_rpath_dirs_list "$1" ;;
|
||||||
fi
|
2) append return_system_rpath_dirs_list "$1" ;;
|
||||||
|
esac
|
||||||
wl_expect_rpath=no
|
wl_expect_rpath=no
|
||||||
else
|
else
|
||||||
case "$1" in
|
case "$1" in
|
||||||
@@ -432,21 +430,25 @@ parse_Wl() {
|
|||||||
arg="${1#-rpath=}"
|
arg="${1#-rpath=}"
|
||||||
if [ -z "$arg" ]; then
|
if [ -z "$arg" ]; then
|
||||||
shift; continue
|
shift; continue
|
||||||
elif system_dir "$arg"; then
|
|
||||||
append return_system_rpath_dirs_list "$arg"
|
|
||||||
else
|
|
||||||
append return_rpath_dirs_list "$arg"
|
|
||||||
fi
|
fi
|
||||||
|
path_order "$arg"
|
||||||
|
case $? in
|
||||||
|
0) append return_spack_store_rpath_dirs_list "$arg" ;;
|
||||||
|
1) append return_rpath_dirs_list "$arg" ;;
|
||||||
|
2) append return_system_rpath_dirs_list "$arg" ;;
|
||||||
|
esac
|
||||||
;;
|
;;
|
||||||
--rpath=*)
|
--rpath=*)
|
||||||
arg="${1#--rpath=}"
|
arg="${1#--rpath=}"
|
||||||
if [ -z "$arg" ]; then
|
if [ -z "$arg" ]; then
|
||||||
shift; continue
|
shift; continue
|
||||||
elif system_dir "$arg"; then
|
|
||||||
append return_system_rpath_dirs_list "$arg"
|
|
||||||
else
|
|
||||||
append return_rpath_dirs_list "$arg"
|
|
||||||
fi
|
fi
|
||||||
|
path_order "$arg"
|
||||||
|
case $? in
|
||||||
|
0) append return_spack_store_rpath_dirs_list "$arg" ;;
|
||||||
|
1) append return_rpath_dirs_list "$arg" ;;
|
||||||
|
2) append return_system_rpath_dirs_list "$arg" ;;
|
||||||
|
esac
|
||||||
;;
|
;;
|
||||||
-rpath|--rpath)
|
-rpath|--rpath)
|
||||||
wl_expect_rpath=yes
|
wl_expect_rpath=yes
|
||||||
@@ -473,12 +475,20 @@ categorize_arguments() {
|
|||||||
|
|
||||||
return_other_args_list=""
|
return_other_args_list=""
|
||||||
return_isystem_was_used=""
|
return_isystem_was_used=""
|
||||||
|
|
||||||
|
return_isystem_spack_store_include_dirs_list=""
|
||||||
return_isystem_system_include_dirs_list=""
|
return_isystem_system_include_dirs_list=""
|
||||||
return_isystem_include_dirs_list=""
|
return_isystem_include_dirs_list=""
|
||||||
|
|
||||||
|
return_spack_store_include_dirs_list=""
|
||||||
return_system_include_dirs_list=""
|
return_system_include_dirs_list=""
|
||||||
return_include_dirs_list=""
|
return_include_dirs_list=""
|
||||||
|
|
||||||
|
return_spack_store_lib_dirs_list=""
|
||||||
return_system_lib_dirs_list=""
|
return_system_lib_dirs_list=""
|
||||||
return_lib_dirs_list=""
|
return_lib_dirs_list=""
|
||||||
|
|
||||||
|
return_spack_store_rpath_dirs_list=""
|
||||||
return_system_rpath_dirs_list=""
|
return_system_rpath_dirs_list=""
|
||||||
return_rpath_dirs_list=""
|
return_rpath_dirs_list=""
|
||||||
|
|
||||||
@@ -526,7 +536,7 @@ categorize_arguments() {
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
replaced="$after$stripped"
|
replaced="$after$stripped"
|
||||||
|
|
||||||
# it matched, remove it
|
# it matched, remove it
|
||||||
shift
|
shift
|
||||||
@@ -546,29 +556,32 @@ categorize_arguments() {
|
|||||||
arg="${1#-isystem}"
|
arg="${1#-isystem}"
|
||||||
return_isystem_was_used=true
|
return_isystem_was_used=true
|
||||||
if [ -z "$arg" ]; then shift; arg="$1"; fi
|
if [ -z "$arg" ]; then shift; arg="$1"; fi
|
||||||
if system_dir "$arg"; then
|
path_order "$arg"
|
||||||
append return_isystem_system_include_dirs_list "$arg"
|
case $? in
|
||||||
else
|
0) append return_isystem_spack_store_include_dirs_list "$arg" ;;
|
||||||
append return_isystem_include_dirs_list "$arg"
|
1) append return_isystem_include_dirs_list "$arg" ;;
|
||||||
fi
|
2) append return_isystem_system_include_dirs_list "$arg" ;;
|
||||||
|
esac
|
||||||
;;
|
;;
|
||||||
-I*)
|
-I*)
|
||||||
arg="${1#-I}"
|
arg="${1#-I}"
|
||||||
if [ -z "$arg" ]; then shift; arg="$1"; fi
|
if [ -z "$arg" ]; then shift; arg="$1"; fi
|
||||||
if system_dir "$arg"; then
|
path_order "$arg"
|
||||||
append return_system_include_dirs_list "$arg"
|
case $? in
|
||||||
else
|
0) append return_spack_store_include_dirs_list "$arg" ;;
|
||||||
append return_include_dirs_list "$arg"
|
1) append return_include_dirs_list "$arg" ;;
|
||||||
fi
|
2) append return_system_include_dirs_list "$arg" ;;
|
||||||
|
esac
|
||||||
;;
|
;;
|
||||||
-L*)
|
-L*)
|
||||||
arg="${1#-L}"
|
arg="${1#-L}"
|
||||||
if [ -z "$arg" ]; then shift; arg="$1"; fi
|
if [ -z "$arg" ]; then shift; arg="$1"; fi
|
||||||
if system_dir "$arg"; then
|
path_order "$arg"
|
||||||
append return_system_lib_dirs_list "$arg"
|
case $? in
|
||||||
else
|
0) append return_spack_store_lib_dirs_list "$arg" ;;
|
||||||
append return_lib_dirs_list "$arg"
|
1) append return_lib_dirs_list "$arg" ;;
|
||||||
fi
|
2) append return_system_lib_dirs_list "$arg" ;;
|
||||||
|
esac
|
||||||
;;
|
;;
|
||||||
-l*)
|
-l*)
|
||||||
# -loopopt=0 is generated erroneously in autoconf <= 2.69,
|
# -loopopt=0 is generated erroneously in autoconf <= 2.69,
|
||||||
@@ -601,29 +614,32 @@ categorize_arguments() {
|
|||||||
break
|
break
|
||||||
elif [ "$xlinker_expect_rpath" = yes ]; then
|
elif [ "$xlinker_expect_rpath" = yes ]; then
|
||||||
# Register the path of -Xlinker -rpath <other args> -Xlinker <path>
|
# Register the path of -Xlinker -rpath <other args> -Xlinker <path>
|
||||||
if system_dir "$1"; then
|
path_order "$1"
|
||||||
append return_system_rpath_dirs_list "$1"
|
case $? in
|
||||||
else
|
0) append return_spack_store_rpath_dirs_list "$1" ;;
|
||||||
append return_rpath_dirs_list "$1"
|
1) append return_rpath_dirs_list "$1" ;;
|
||||||
fi
|
2) append return_system_rpath_dirs_list "$1" ;;
|
||||||
|
esac
|
||||||
xlinker_expect_rpath=no
|
xlinker_expect_rpath=no
|
||||||
else
|
else
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-rpath=*)
|
-rpath=*)
|
||||||
arg="${1#-rpath=}"
|
arg="${1#-rpath=}"
|
||||||
if system_dir "$arg"; then
|
path_order "$arg"
|
||||||
append return_system_rpath_dirs_list "$arg"
|
case $? in
|
||||||
else
|
0) append return_spack_store_rpath_dirs_list "$arg" ;;
|
||||||
append return_rpath_dirs_list "$arg"
|
1) append return_rpath_dirs_list "$arg" ;;
|
||||||
fi
|
2) append return_system_rpath_dirs_list "$arg" ;;
|
||||||
|
esac
|
||||||
;;
|
;;
|
||||||
--rpath=*)
|
--rpath=*)
|
||||||
arg="${1#--rpath=}"
|
arg="${1#--rpath=}"
|
||||||
if system_dir "$arg"; then
|
path_order "$arg"
|
||||||
append return_system_rpath_dirs_list "$arg"
|
case $? in
|
||||||
else
|
0) append return_spack_store_rpath_dirs_list "$arg" ;;
|
||||||
append return_rpath_dirs_list "$arg"
|
1) append return_rpath_dirs_list "$arg" ;;
|
||||||
fi
|
2) append return_system_rpath_dirs_list "$arg" ;;
|
||||||
|
esac
|
||||||
;;
|
;;
|
||||||
-rpath|--rpath)
|
-rpath|--rpath)
|
||||||
xlinker_expect_rpath=yes
|
xlinker_expect_rpath=yes
|
||||||
@@ -661,16 +677,25 @@ categorize_arguments() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
categorize_arguments "$@"
|
categorize_arguments "$@"
|
||||||
include_dirs_list="$return_include_dirs_list"
|
|
||||||
lib_dirs_list="$return_lib_dirs_list"
|
spack_store_include_dirs_list="$return_spack_store_include_dirs_list"
|
||||||
rpath_dirs_list="$return_rpath_dirs_list"
|
system_include_dirs_list="$return_system_include_dirs_list"
|
||||||
system_include_dirs_list="$return_system_include_dirs_list"
|
include_dirs_list="$return_include_dirs_list"
|
||||||
system_lib_dirs_list="$return_system_lib_dirs_list"
|
|
||||||
system_rpath_dirs_list="$return_system_rpath_dirs_list"
|
spack_store_lib_dirs_list="$return_spack_store_lib_dirs_list"
|
||||||
isystem_was_used="$return_isystem_was_used"
|
system_lib_dirs_list="$return_system_lib_dirs_list"
|
||||||
isystem_system_include_dirs_list="$return_isystem_system_include_dirs_list"
|
lib_dirs_list="$return_lib_dirs_list"
|
||||||
isystem_include_dirs_list="$return_isystem_include_dirs_list"
|
|
||||||
other_args_list="$return_other_args_list"
|
spack_store_rpath_dirs_list="$return_spack_store_rpath_dirs_list"
|
||||||
|
system_rpath_dirs_list="$return_system_rpath_dirs_list"
|
||||||
|
rpath_dirs_list="$return_rpath_dirs_list"
|
||||||
|
|
||||||
|
isystem_spack_store_include_dirs_list="$return_isystem_spack_store_include_dirs_list"
|
||||||
|
isystem_system_include_dirs_list="$return_isystem_system_include_dirs_list"
|
||||||
|
isystem_include_dirs_list="$return_isystem_include_dirs_list"
|
||||||
|
|
||||||
|
isystem_was_used="$return_isystem_was_used"
|
||||||
|
other_args_list="$return_other_args_list"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Add flags from Spack's cppflags, cflags, cxxflags, fcflags, fflags, and
|
# Add flags from Spack's cppflags, cflags, cxxflags, fcflags, fflags, and
|
||||||
@@ -730,7 +755,7 @@ esac
|
|||||||
|
|
||||||
# Linker flags
|
# Linker flags
|
||||||
case "$mode" in
|
case "$mode" in
|
||||||
ld|ccld)
|
ccld)
|
||||||
extend spack_flags_list SPACK_LDFLAGS
|
extend spack_flags_list SPACK_LDFLAGS
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@@ -738,16 +763,25 @@ esac
|
|||||||
IFS="$lsep"
|
IFS="$lsep"
|
||||||
categorize_arguments $spack_flags_list
|
categorize_arguments $spack_flags_list
|
||||||
unset IFS
|
unset IFS
|
||||||
spack_flags_include_dirs_list="$return_include_dirs_list"
|
|
||||||
spack_flags_lib_dirs_list="$return_lib_dirs_list"
|
spack_flags_isystem_spack_store_include_dirs_list="$return_isystem_spack_store_include_dirs_list"
|
||||||
spack_flags_rpath_dirs_list="$return_rpath_dirs_list"
|
spack_flags_isystem_system_include_dirs_list="$return_isystem_system_include_dirs_list"
|
||||||
spack_flags_system_include_dirs_list="$return_system_include_dirs_list"
|
spack_flags_isystem_include_dirs_list="$return_isystem_include_dirs_list"
|
||||||
spack_flags_system_lib_dirs_list="$return_system_lib_dirs_list"
|
|
||||||
spack_flags_system_rpath_dirs_list="$return_system_rpath_dirs_list"
|
spack_flags_spack_store_include_dirs_list="$return_spack_store_include_dirs_list"
|
||||||
spack_flags_isystem_was_used="$return_isystem_was_used"
|
spack_flags_system_include_dirs_list="$return_system_include_dirs_list"
|
||||||
spack_flags_isystem_system_include_dirs_list="$return_isystem_system_include_dirs_list"
|
spack_flags_include_dirs_list="$return_include_dirs_list"
|
||||||
spack_flags_isystem_include_dirs_list="$return_isystem_include_dirs_list"
|
|
||||||
spack_flags_other_args_list="$return_other_args_list"
|
spack_flags_spack_store_lib_dirs_list="$return_spack_store_lib_dirs_list"
|
||||||
|
spack_flags_system_lib_dirs_list="$return_system_lib_dirs_list"
|
||||||
|
spack_flags_lib_dirs_list="$return_lib_dirs_list"
|
||||||
|
|
||||||
|
spack_flags_spack_store_rpath_dirs_list="$return_spack_store_rpath_dirs_list"
|
||||||
|
spack_flags_system_rpath_dirs_list="$return_system_rpath_dirs_list"
|
||||||
|
spack_flags_rpath_dirs_list="$return_rpath_dirs_list"
|
||||||
|
|
||||||
|
spack_flags_isystem_was_used="$return_isystem_was_used"
|
||||||
|
spack_flags_other_args_list="$return_other_args_list"
|
||||||
|
|
||||||
|
|
||||||
# On macOS insert headerpad_max_install_names linker flag
|
# On macOS insert headerpad_max_install_names linker flag
|
||||||
@@ -767,11 +801,13 @@ if [ "$mode" = ccld ] || [ "$mode" = ld ]; then
|
|||||||
# Append RPATH directories. Note that in the case of the
|
# Append RPATH directories. Note that in the case of the
|
||||||
# top-level package these directories may not exist yet. For dependencies
|
# top-level package these directories may not exist yet. For dependencies
|
||||||
# it is assumed that paths have already been confirmed.
|
# it is assumed that paths have already been confirmed.
|
||||||
|
extend spack_store_rpath_dirs_list SPACK_STORE_RPATH_DIRS
|
||||||
extend rpath_dirs_list SPACK_RPATH_DIRS
|
extend rpath_dirs_list SPACK_RPATH_DIRS
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$mode" = ccld ] || [ "$mode" = ld ]; then
|
if [ "$mode" = ccld ] || [ "$mode" = ld ]; then
|
||||||
|
extend spack_store_lib_dirs_list SPACK_STORE_LINK_DIRS
|
||||||
extend lib_dirs_list SPACK_LINK_DIRS
|
extend lib_dirs_list SPACK_LINK_DIRS
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -798,38 +834,50 @@ case "$mode" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
case "$mode" in
|
||||||
|
cpp|cc|as|ccld)
|
||||||
|
if [ "$spack_flags_isystem_was_used" = "true" ] || [ "$isystem_was_used" = "true" ]; then
|
||||||
|
extend isystem_spack_store_include_dirs_list SPACK_STORE_INCLUDE_DIRS
|
||||||
|
extend isystem_include_dirs_list SPACK_INCLUDE_DIRS
|
||||||
|
else
|
||||||
|
extend spack_store_include_dirs_list SPACK_STORE_INCLUDE_DIRS
|
||||||
|
extend include_dirs_list SPACK_INCLUDE_DIRS
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
#
|
#
|
||||||
# Finally, reassemble the command line.
|
# Finally, reassemble the command line.
|
||||||
#
|
#
|
||||||
args_list="$flags_list"
|
args_list="$flags_list"
|
||||||
|
|
||||||
# Insert include directories just prior to any system include directories
|
# Include search paths partitioned by (in store, non-sytem, system)
|
||||||
# NOTE: adding ${lsep} to the prefix here turns every added element into two
|
# NOTE: adding ${lsep} to the prefix here turns every added element into two
|
||||||
extend args_list spack_flags_include_dirs_list "-I"
|
extend args_list spack_flags_spack_store_include_dirs_list -I
|
||||||
extend args_list include_dirs_list "-I"
|
extend args_list spack_store_include_dirs_list -I
|
||||||
|
|
||||||
|
extend args_list spack_flags_include_dirs_list -I
|
||||||
|
extend args_list include_dirs_list -I
|
||||||
|
|
||||||
|
extend args_list spack_flags_isystem_spack_store_include_dirs_list "-isystem${lsep}"
|
||||||
|
extend args_list isystem_spack_store_include_dirs_list "-isystem${lsep}"
|
||||||
|
|
||||||
extend args_list spack_flags_isystem_include_dirs_list "-isystem${lsep}"
|
extend args_list spack_flags_isystem_include_dirs_list "-isystem${lsep}"
|
||||||
extend args_list isystem_include_dirs_list "-isystem${lsep}"
|
extend args_list isystem_include_dirs_list "-isystem${lsep}"
|
||||||
|
|
||||||
case "$mode" in
|
|
||||||
cpp|cc|as|ccld)
|
|
||||||
if [ "$spack_flags_isystem_was_used" = "true" ]; then
|
|
||||||
extend args_list SPACK_INCLUDE_DIRS "-isystem${lsep}"
|
|
||||||
elif [ "$isystem_was_used" = "true" ]; then
|
|
||||||
extend args_list SPACK_INCLUDE_DIRS "-isystem${lsep}"
|
|
||||||
else
|
|
||||||
extend args_list SPACK_INCLUDE_DIRS "-I"
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
extend args_list spack_flags_system_include_dirs_list -I
|
extend args_list spack_flags_system_include_dirs_list -I
|
||||||
extend args_list system_include_dirs_list -I
|
extend args_list system_include_dirs_list -I
|
||||||
|
|
||||||
extend args_list spack_flags_isystem_system_include_dirs_list "-isystem${lsep}"
|
extend args_list spack_flags_isystem_system_include_dirs_list "-isystem${lsep}"
|
||||||
extend args_list isystem_system_include_dirs_list "-isystem${lsep}"
|
extend args_list isystem_system_include_dirs_list "-isystem${lsep}"
|
||||||
|
|
||||||
# Library search paths
|
# Library search paths partitioned by (in store, non-sytem, system)
|
||||||
|
extend args_list spack_flags_spack_store_lib_dirs_list "-L"
|
||||||
|
extend args_list spack_store_lib_dirs_list "-L"
|
||||||
|
|
||||||
extend args_list spack_flags_lib_dirs_list "-L"
|
extend args_list spack_flags_lib_dirs_list "-L"
|
||||||
extend args_list lib_dirs_list "-L"
|
extend args_list lib_dirs_list "-L"
|
||||||
|
|
||||||
extend args_list spack_flags_system_lib_dirs_list "-L"
|
extend args_list spack_flags_system_lib_dirs_list "-L"
|
||||||
extend args_list system_lib_dirs_list "-L"
|
extend args_list system_lib_dirs_list "-L"
|
||||||
|
|
||||||
@@ -839,8 +887,12 @@ case "$mode" in
|
|||||||
if [ -n "$dtags_to_add" ] ; then
|
if [ -n "$dtags_to_add" ] ; then
|
||||||
append args_list "$linker_arg$dtags_to_add"
|
append args_list "$linker_arg$dtags_to_add"
|
||||||
fi
|
fi
|
||||||
|
extend args_list spack_flags_spack_store_rpath_dirs_list "$rpath"
|
||||||
|
extend args_list spack_store_rpath_dirs_list "$rpath"
|
||||||
|
|
||||||
extend args_list spack_flags_rpath_dirs_list "$rpath"
|
extend args_list spack_flags_rpath_dirs_list "$rpath"
|
||||||
extend args_list rpath_dirs_list "$rpath"
|
extend args_list rpath_dirs_list "$rpath"
|
||||||
|
|
||||||
extend args_list spack_flags_system_rpath_dirs_list "$rpath"
|
extend args_list spack_flags_system_rpath_dirs_list "$rpath"
|
||||||
extend args_list system_rpath_dirs_list "$rpath"
|
extend args_list system_rpath_dirs_list "$rpath"
|
||||||
;;
|
;;
|
||||||
@@ -848,8 +900,12 @@ case "$mode" in
|
|||||||
if [ -n "$dtags_to_add" ] ; then
|
if [ -n "$dtags_to_add" ] ; then
|
||||||
append args_list "$dtags_to_add"
|
append args_list "$dtags_to_add"
|
||||||
fi
|
fi
|
||||||
|
extend args_list spack_flags_spack_store_rpath_dirs_list "-rpath${lsep}"
|
||||||
|
extend args_list spack_store_rpath_dirs_list "-rpath${lsep}"
|
||||||
|
|
||||||
extend args_list spack_flags_rpath_dirs_list "-rpath${lsep}"
|
extend args_list spack_flags_rpath_dirs_list "-rpath${lsep}"
|
||||||
extend args_list rpath_dirs_list "-rpath${lsep}"
|
extend args_list rpath_dirs_list "-rpath${lsep}"
|
||||||
|
|
||||||
extend args_list spack_flags_system_rpath_dirs_list "-rpath${lsep}"
|
extend args_list spack_flags_system_rpath_dirs_list "-rpath${lsep}"
|
||||||
extend args_list system_rpath_dirs_list "-rpath${lsep}"
|
extend args_list system_rpath_dirs_list "-rpath${lsep}"
|
||||||
;;
|
;;
|
||||||
@@ -913,4 +969,3 @@ fi
|
|||||||
# Execute the full command, preserving spaces with IFS set
|
# Execute the full command, preserving spaces with IFS set
|
||||||
# to the alarm bell separator.
|
# to the alarm bell separator.
|
||||||
IFS="$lsep"; exec $full_command_list
|
IFS="$lsep"; exec $full_command_list
|
||||||
|
|
||||||
|
4
lib/spack/external/__init__.py
vendored
4
lib/spack/external/__init__.py
vendored
@@ -1,4 +1,4 @@
|
|||||||
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
* Homepage: https://pypi.python.org/pypi/archspec
|
* Homepage: https://pypi.python.org/pypi/archspec
|
||||||
* Usage: Labeling, comparison and detection of microarchitectures
|
* Usage: Labeling, comparison and detection of microarchitectures
|
||||||
* Version: 0.2.2 (commit 1dc58a5776dd77e6fc6e4ba5626af5b1fb24996e)
|
* Version: 0.2.4 (commit 48b92512b9ce203ded0ebd1ac41b42593e931f7c)
|
||||||
|
|
||||||
astunparse
|
astunparse
|
||||||
----------------
|
----------------
|
||||||
|
@@ -497,7 +497,7 @@ def copy_attributes(self, t, memo=None):
|
|||||||
Tag.attrib, merge_attrib]:
|
Tag.attrib, merge_attrib]:
|
||||||
if hasattr(self, a):
|
if hasattr(self, a):
|
||||||
if memo is not None:
|
if memo is not None:
|
||||||
setattr(t, a, copy.deepcopy(getattr(self, a, memo)))
|
setattr(t, a, copy.deepcopy(getattr(self, a), memo))
|
||||||
else:
|
else:
|
||||||
setattr(t, a, getattr(self, a))
|
setattr(t, a, getattr(self, a))
|
||||||
# fmt: on
|
# fmt: on
|
||||||
|
3
lib/spack/external/archspec/__init__.py
vendored
3
lib/spack/external/archspec/__init__.py
vendored
@@ -1,2 +1,3 @@
|
|||||||
"""Init file to avoid namespace packages"""
|
"""Init file to avoid namespace packages"""
|
||||||
__version__ = "0.2.2"
|
|
||||||
|
__version__ = "0.2.4"
|
||||||
|
1
lib/spack/external/archspec/__main__.py
vendored
1
lib/spack/external/archspec/__main__.py
vendored
@@ -3,6 +3,7 @@
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from .cli import main
|
from .cli import main
|
||||||
|
|
||||||
sys.exit(main())
|
sys.exit(main())
|
||||||
|
6
lib/spack/external/archspec/cli.py
vendored
6
lib/spack/external/archspec/cli.py
vendored
@@ -46,7 +46,11 @@ def _make_parser() -> argparse.ArgumentParser:
|
|||||||
|
|
||||||
def cpu() -> int:
|
def cpu() -> int:
|
||||||
"""Run the `archspec cpu` subcommand."""
|
"""Run the `archspec cpu` subcommand."""
|
||||||
print(archspec.cpu.host())
|
try:
|
||||||
|
print(archspec.cpu.host())
|
||||||
|
except FileNotFoundError as exc:
|
||||||
|
print(exc)
|
||||||
|
return 1
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
19
lib/spack/external/archspec/cpu/__init__.py
vendored
19
lib/spack/external/archspec/cpu/__init__.py
vendored
@@ -5,16 +5,23 @@
|
|||||||
"""The "cpu" package permits to query and compare different
|
"""The "cpu" package permits to query and compare different
|
||||||
CPU microarchitectures.
|
CPU microarchitectures.
|
||||||
"""
|
"""
|
||||||
from .microarchitecture import Microarchitecture, UnsupportedMicroarchitecture
|
from .detect import brand_string, host
|
||||||
from .microarchitecture import TARGETS, generic_microarchitecture
|
from .microarchitecture import (
|
||||||
from .microarchitecture import version_components
|
TARGETS,
|
||||||
from .detect import host
|
InvalidCompilerVersion,
|
||||||
|
Microarchitecture,
|
||||||
|
UnsupportedMicroarchitecture,
|
||||||
|
generic_microarchitecture,
|
||||||
|
version_components,
|
||||||
|
)
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
|
"brand_string",
|
||||||
|
"host",
|
||||||
|
"TARGETS",
|
||||||
|
"InvalidCompilerVersion",
|
||||||
"Microarchitecture",
|
"Microarchitecture",
|
||||||
"UnsupportedMicroarchitecture",
|
"UnsupportedMicroarchitecture",
|
||||||
"TARGETS",
|
|
||||||
"generic_microarchitecture",
|
"generic_microarchitecture",
|
||||||
"host",
|
|
||||||
"version_components",
|
"version_components",
|
||||||
]
|
]
|
||||||
|
410
lib/spack/external/archspec/cpu/detect.py
vendored
410
lib/spack/external/archspec/cpu/detect.py
vendored
@@ -4,15 +4,17 @@
|
|||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
"""Detection of CPU microarchitectures"""
|
"""Detection of CPU microarchitectures"""
|
||||||
import collections
|
import collections
|
||||||
import functools
|
|
||||||
import os
|
import os
|
||||||
import platform
|
import platform
|
||||||
import re
|
import re
|
||||||
|
import struct
|
||||||
import subprocess
|
import subprocess
|
||||||
import warnings
|
import warnings
|
||||||
|
from typing import Dict, List, Optional, Set, Tuple, Union
|
||||||
|
|
||||||
from .microarchitecture import generic_microarchitecture, TARGETS
|
from ..vendor.cpuid.cpuid import CPUID
|
||||||
from .schema import TARGETS_JSON
|
from .microarchitecture import TARGETS, Microarchitecture, generic_microarchitecture
|
||||||
|
from .schema import CPUID_JSON, TARGETS_JSON
|
||||||
|
|
||||||
#: Mapping from operating systems to chain of commands
|
#: Mapping from operating systems to chain of commands
|
||||||
#: to obtain a dictionary of raw info on the current cpu
|
#: to obtain a dictionary of raw info on the current cpu
|
||||||
@@ -22,43 +24,46 @@
|
|||||||
#: functions checking the compatibility of the host with a given target
|
#: functions checking the compatibility of the host with a given target
|
||||||
COMPATIBILITY_CHECKS = {}
|
COMPATIBILITY_CHECKS = {}
|
||||||
|
|
||||||
|
# Constants for commonly used architectures
|
||||||
|
X86_64 = "x86_64"
|
||||||
|
AARCH64 = "aarch64"
|
||||||
|
PPC64LE = "ppc64le"
|
||||||
|
PPC64 = "ppc64"
|
||||||
|
RISCV64 = "riscv64"
|
||||||
|
|
||||||
def info_dict(operating_system):
|
|
||||||
"""Decorator to mark functions that are meant to return raw info on
|
def detection(operating_system: str):
|
||||||
the current cpu.
|
"""Decorator to mark functions that are meant to return partial information on the current cpu.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
operating_system (str or tuple): operating system for which the marked
|
operating_system: operating system where this function can be used.
|
||||||
function is a viable factory of raw info dictionaries.
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def decorator(factory):
|
def decorator(factory):
|
||||||
INFO_FACTORY[operating_system].append(factory)
|
INFO_FACTORY[operating_system].append(factory)
|
||||||
|
return factory
|
||||||
@functools.wraps(factory)
|
|
||||||
def _impl():
|
|
||||||
info = factory()
|
|
||||||
|
|
||||||
# Check that info contains a few mandatory fields
|
|
||||||
msg = 'field "{0}" is missing from raw info dictionary'
|
|
||||||
assert "vendor_id" in info, msg.format("vendor_id")
|
|
||||||
assert "flags" in info, msg.format("flags")
|
|
||||||
assert "model" in info, msg.format("model")
|
|
||||||
assert "model_name" in info, msg.format("model_name")
|
|
||||||
|
|
||||||
return info
|
|
||||||
|
|
||||||
return _impl
|
|
||||||
|
|
||||||
return decorator
|
return decorator
|
||||||
|
|
||||||
|
|
||||||
@info_dict(operating_system="Linux")
|
def partial_uarch(
|
||||||
def proc_cpuinfo():
|
name: str = "", vendor: str = "", features: Optional[Set[str]] = None, generation: int = 0
|
||||||
"""Returns a raw info dictionary by parsing the first entry of
|
) -> Microarchitecture:
|
||||||
``/proc/cpuinfo``
|
"""Construct a partial microarchitecture, from information gathered during system scan."""
|
||||||
"""
|
return Microarchitecture(
|
||||||
info = {}
|
name=name,
|
||||||
|
parents=[],
|
||||||
|
vendor=vendor,
|
||||||
|
features=features or set(),
|
||||||
|
compilers={},
|
||||||
|
generation=generation,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@detection(operating_system="Linux")
|
||||||
|
def proc_cpuinfo() -> Microarchitecture:
|
||||||
|
"""Returns a partial Microarchitecture, obtained from scanning ``/proc/cpuinfo``"""
|
||||||
|
data = {}
|
||||||
with open("/proc/cpuinfo") as file: # pylint: disable=unspecified-encoding
|
with open("/proc/cpuinfo") as file: # pylint: disable=unspecified-encoding
|
||||||
for line in file:
|
for line in file:
|
||||||
key, separator, value = line.partition(":")
|
key, separator, value = line.partition(":")
|
||||||
@@ -70,11 +75,121 @@ def proc_cpuinfo():
|
|||||||
#
|
#
|
||||||
# we are on a blank line separating two cpus. Exit early as
|
# we are on a blank line separating two cpus. Exit early as
|
||||||
# we want to read just the first entry in /proc/cpuinfo
|
# we want to read just the first entry in /proc/cpuinfo
|
||||||
if separator != ":" and info:
|
if separator != ":" and data:
|
||||||
break
|
break
|
||||||
|
|
||||||
info[key.strip()] = value.strip()
|
data[key.strip()] = value.strip()
|
||||||
return info
|
|
||||||
|
architecture = _machine()
|
||||||
|
if architecture == X86_64:
|
||||||
|
return partial_uarch(
|
||||||
|
vendor=data.get("vendor_id", "generic"), features=_feature_set(data, key="flags")
|
||||||
|
)
|
||||||
|
|
||||||
|
if architecture == AARCH64:
|
||||||
|
return partial_uarch(
|
||||||
|
vendor=_canonicalize_aarch64_vendor(data),
|
||||||
|
features=_feature_set(data, key="Features"),
|
||||||
|
)
|
||||||
|
|
||||||
|
if architecture in (PPC64LE, PPC64):
|
||||||
|
generation_match = re.search(r"POWER(\d+)", data.get("cpu", ""))
|
||||||
|
try:
|
||||||
|
generation = int(generation_match.group(1))
|
||||||
|
except AttributeError:
|
||||||
|
# There might be no match under emulated environments. For instance
|
||||||
|
# emulating a ppc64le with QEMU and Docker still reports the host
|
||||||
|
# /proc/cpuinfo and not a Power
|
||||||
|
generation = 0
|
||||||
|
return partial_uarch(generation=generation)
|
||||||
|
|
||||||
|
if architecture == RISCV64:
|
||||||
|
if data.get("uarch") == "sifive,u74-mc":
|
||||||
|
data["uarch"] = "u74mc"
|
||||||
|
return partial_uarch(name=data.get("uarch", RISCV64))
|
||||||
|
|
||||||
|
return generic_microarchitecture(architecture)
|
||||||
|
|
||||||
|
|
||||||
|
class CpuidInfoCollector:
|
||||||
|
"""Collects the information we need on the host CPU from cpuid"""
|
||||||
|
|
||||||
|
# pylint: disable=too-few-public-methods
|
||||||
|
def __init__(self):
|
||||||
|
self.cpuid = CPUID()
|
||||||
|
|
||||||
|
registers = self.cpuid.registers_for(**CPUID_JSON["vendor"]["input"])
|
||||||
|
self.highest_basic_support = registers.eax
|
||||||
|
self.vendor = struct.pack("III", registers.ebx, registers.edx, registers.ecx).decode(
|
||||||
|
"utf-8"
|
||||||
|
)
|
||||||
|
|
||||||
|
registers = self.cpuid.registers_for(**CPUID_JSON["highest_extension_support"]["input"])
|
||||||
|
self.highest_extension_support = registers.eax
|
||||||
|
|
||||||
|
self.features = self._features()
|
||||||
|
|
||||||
|
def _features(self):
|
||||||
|
result = set()
|
||||||
|
|
||||||
|
def check_features(data):
|
||||||
|
registers = self.cpuid.registers_for(**data["input"])
|
||||||
|
for feature_check in data["bits"]:
|
||||||
|
current = getattr(registers, feature_check["register"])
|
||||||
|
if self._is_bit_set(current, feature_check["bit"]):
|
||||||
|
result.add(feature_check["name"])
|
||||||
|
|
||||||
|
for call_data in CPUID_JSON["flags"]:
|
||||||
|
if call_data["input"]["eax"] > self.highest_basic_support:
|
||||||
|
continue
|
||||||
|
check_features(call_data)
|
||||||
|
|
||||||
|
for call_data in CPUID_JSON["extension-flags"]:
|
||||||
|
if call_data["input"]["eax"] > self.highest_extension_support:
|
||||||
|
continue
|
||||||
|
check_features(call_data)
|
||||||
|
|
||||||
|
return result
|
||||||
|
|
||||||
|
def _is_bit_set(self, register: int, bit: int) -> bool:
|
||||||
|
mask = 1 << bit
|
||||||
|
return register & mask > 0
|
||||||
|
|
||||||
|
def brand_string(self) -> Optional[str]:
|
||||||
|
"""Returns the brand string, if available."""
|
||||||
|
if self.highest_extension_support < 0x80000004:
|
||||||
|
return None
|
||||||
|
|
||||||
|
r1 = self.cpuid.registers_for(eax=0x80000002, ecx=0)
|
||||||
|
r2 = self.cpuid.registers_for(eax=0x80000003, ecx=0)
|
||||||
|
r3 = self.cpuid.registers_for(eax=0x80000004, ecx=0)
|
||||||
|
result = struct.pack(
|
||||||
|
"IIIIIIIIIIII",
|
||||||
|
r1.eax,
|
||||||
|
r1.ebx,
|
||||||
|
r1.ecx,
|
||||||
|
r1.edx,
|
||||||
|
r2.eax,
|
||||||
|
r2.ebx,
|
||||||
|
r2.ecx,
|
||||||
|
r2.edx,
|
||||||
|
r3.eax,
|
||||||
|
r3.ebx,
|
||||||
|
r3.ecx,
|
||||||
|
r3.edx,
|
||||||
|
).decode("utf-8")
|
||||||
|
return result.strip("\x00")
|
||||||
|
|
||||||
|
|
||||||
|
@detection(operating_system="Windows")
|
||||||
|
def cpuid_info():
|
||||||
|
"""Returns a partial Microarchitecture, obtained from running the cpuid instruction"""
|
||||||
|
architecture = _machine()
|
||||||
|
if architecture == X86_64:
|
||||||
|
data = CpuidInfoCollector()
|
||||||
|
return partial_uarch(vendor=data.vendor, features=data.features)
|
||||||
|
|
||||||
|
return generic_microarchitecture(architecture)
|
||||||
|
|
||||||
|
|
||||||
def _check_output(args, env):
|
def _check_output(args, env):
|
||||||
@@ -83,14 +198,25 @@ def _check_output(args, env):
|
|||||||
return str(output.decode("utf-8"))
|
return str(output.decode("utf-8"))
|
||||||
|
|
||||||
|
|
||||||
|
WINDOWS_MAPPING = {
|
||||||
|
"AMD64": X86_64,
|
||||||
|
"ARM64": AARCH64,
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
def _machine():
|
def _machine():
|
||||||
""" "Return the machine architecture we are on"""
|
"""Return the machine architecture we are on"""
|
||||||
operating_system = platform.system()
|
operating_system = platform.system()
|
||||||
|
|
||||||
# If we are not on Darwin, trust what Python tells us
|
# If we are not on Darwin or Windows, trust what Python tells us
|
||||||
if operating_system != "Darwin":
|
if operating_system not in ("Darwin", "Windows"):
|
||||||
return platform.machine()
|
return platform.machine()
|
||||||
|
|
||||||
|
# Normalize windows specific names
|
||||||
|
if operating_system == "Windows":
|
||||||
|
platform_machine = platform.machine()
|
||||||
|
return WINDOWS_MAPPING.get(platform_machine, platform_machine)
|
||||||
|
|
||||||
# On Darwin it might happen that we are on M1, but using an interpreter
|
# On Darwin it might happen that we are on M1, but using an interpreter
|
||||||
# built for x86_64. In that case "platform.machine() == 'x86_64'", so we
|
# built for x86_64. In that case "platform.machine() == 'x86_64'", so we
|
||||||
# need to fix that.
|
# need to fix that.
|
||||||
@@ -103,54 +229,47 @@ def _machine():
|
|||||||
if "Apple" in output:
|
if "Apple" in output:
|
||||||
# Note that a native Python interpreter on Apple M1 would return
|
# Note that a native Python interpreter on Apple M1 would return
|
||||||
# "arm64" instead of "aarch64". Here we normalize to the latter.
|
# "arm64" instead of "aarch64". Here we normalize to the latter.
|
||||||
return "aarch64"
|
return AARCH64
|
||||||
|
|
||||||
return "x86_64"
|
return X86_64
|
||||||
|
|
||||||
|
|
||||||
@info_dict(operating_system="Darwin")
|
@detection(operating_system="Darwin")
|
||||||
def sysctl_info_dict():
|
def sysctl_info() -> Microarchitecture:
|
||||||
"""Returns a raw info dictionary parsing the output of sysctl."""
|
"""Returns a raw info dictionary parsing the output of sysctl."""
|
||||||
child_environment = _ensure_bin_usrbin_in_path()
|
child_environment = _ensure_bin_usrbin_in_path()
|
||||||
|
|
||||||
def sysctl(*args):
|
def sysctl(*args: str) -> str:
|
||||||
return _check_output(["sysctl"] + list(args), env=child_environment).strip()
|
return _check_output(["sysctl"] + list(args), env=child_environment).strip()
|
||||||
|
|
||||||
if _machine() == "x86_64":
|
if _machine() == X86_64:
|
||||||
flags = (
|
features = (
|
||||||
sysctl("-n", "machdep.cpu.features").lower()
|
f'{sysctl("-n", "machdep.cpu.features").lower()} '
|
||||||
+ " "
|
f'{sysctl("-n", "machdep.cpu.leaf7_features").lower()}'
|
||||||
+ sysctl("-n", "machdep.cpu.leaf7_features").lower()
|
|
||||||
)
|
)
|
||||||
info = {
|
features = set(features.split())
|
||||||
"vendor_id": sysctl("-n", "machdep.cpu.vendor"),
|
|
||||||
"flags": flags,
|
|
||||||
"model": sysctl("-n", "machdep.cpu.model"),
|
|
||||||
"model name": sysctl("-n", "machdep.cpu.brand_string"),
|
|
||||||
}
|
|
||||||
else:
|
|
||||||
model = "unknown"
|
|
||||||
model_str = sysctl("-n", "machdep.cpu.brand_string").lower()
|
|
||||||
if "m2" in model_str:
|
|
||||||
model = "m2"
|
|
||||||
elif "m1" in model_str:
|
|
||||||
model = "m1"
|
|
||||||
elif "apple" in model_str:
|
|
||||||
model = "m1"
|
|
||||||
|
|
||||||
info = {
|
# Flags detected on Darwin turned to their linux counterpart
|
||||||
"vendor_id": "Apple",
|
for darwin_flag, linux_flag in TARGETS_JSON["conversions"]["darwin_flags"].items():
|
||||||
"flags": [],
|
if darwin_flag in features:
|
||||||
"model": model,
|
features.update(linux_flag.split())
|
||||||
"CPU implementer": "Apple",
|
|
||||||
"model name": sysctl("-n", "machdep.cpu.brand_string"),
|
return partial_uarch(vendor=sysctl("-n", "machdep.cpu.vendor"), features=features)
|
||||||
}
|
|
||||||
return info
|
model = "unknown"
|
||||||
|
model_str = sysctl("-n", "machdep.cpu.brand_string").lower()
|
||||||
|
if "m2" in model_str:
|
||||||
|
model = "m2"
|
||||||
|
elif "m1" in model_str:
|
||||||
|
model = "m1"
|
||||||
|
elif "apple" in model_str:
|
||||||
|
model = "m1"
|
||||||
|
|
||||||
|
return partial_uarch(name=model, vendor="Apple")
|
||||||
|
|
||||||
|
|
||||||
def _ensure_bin_usrbin_in_path():
|
def _ensure_bin_usrbin_in_path():
|
||||||
# Make sure that /sbin and /usr/sbin are in PATH as sysctl is
|
# Make sure that /sbin and /usr/sbin are in PATH as sysctl is usually found there
|
||||||
# usually found there
|
|
||||||
child_environment = dict(os.environ.items())
|
child_environment = dict(os.environ.items())
|
||||||
search_paths = child_environment.get("PATH", "").split(os.pathsep)
|
search_paths = child_environment.get("PATH", "").split(os.pathsep)
|
||||||
for additional_path in ("/sbin", "/usr/sbin"):
|
for additional_path in ("/sbin", "/usr/sbin"):
|
||||||
@@ -160,22 +279,10 @@ def _ensure_bin_usrbin_in_path():
|
|||||||
return child_environment
|
return child_environment
|
||||||
|
|
||||||
|
|
||||||
def adjust_raw_flags(info):
|
def _canonicalize_aarch64_vendor(data: Dict[str, str]) -> str:
|
||||||
"""Adjust the flags detected on the system to homogenize
|
"""Adjust the vendor field to make it human-readable"""
|
||||||
slightly different representations.
|
if "CPU implementer" not in data:
|
||||||
"""
|
return "generic"
|
||||||
# Flags detected on Darwin turned to their linux counterpart
|
|
||||||
flags = info.get("flags", [])
|
|
||||||
d2l = TARGETS_JSON["conversions"]["darwin_flags"]
|
|
||||||
for darwin_flag, linux_flag in d2l.items():
|
|
||||||
if darwin_flag in flags:
|
|
||||||
info["flags"] += " " + linux_flag
|
|
||||||
|
|
||||||
|
|
||||||
def adjust_raw_vendor(info):
|
|
||||||
"""Adjust the vendor field to make it human readable"""
|
|
||||||
if "CPU implementer" not in info:
|
|
||||||
return
|
|
||||||
|
|
||||||
# Mapping numeric codes to vendor (ARM). This list is a merge from
|
# Mapping numeric codes to vendor (ARM). This list is a merge from
|
||||||
# different sources:
|
# different sources:
|
||||||
@@ -185,43 +292,37 @@ def adjust_raw_vendor(info):
|
|||||||
# https://github.com/gcc-mirror/gcc/blob/master/gcc/config/aarch64/aarch64-cores.def
|
# https://github.com/gcc-mirror/gcc/blob/master/gcc/config/aarch64/aarch64-cores.def
|
||||||
# https://patchwork.kernel.org/patch/10524949/
|
# https://patchwork.kernel.org/patch/10524949/
|
||||||
arm_vendors = TARGETS_JSON["conversions"]["arm_vendors"]
|
arm_vendors = TARGETS_JSON["conversions"]["arm_vendors"]
|
||||||
arm_code = info["CPU implementer"]
|
arm_code = data["CPU implementer"]
|
||||||
if arm_code in arm_vendors:
|
return arm_vendors.get(arm_code, arm_code)
|
||||||
info["CPU implementer"] = arm_vendors[arm_code]
|
|
||||||
|
|
||||||
|
|
||||||
def raw_info_dictionary():
|
def _feature_set(data: Dict[str, str], key: str) -> Set[str]:
|
||||||
"""Returns a dictionary with information on the cpu of the current host.
|
return set(data.get(key, "").split())
|
||||||
|
|
||||||
This function calls all the viable factories one after the other until
|
|
||||||
there's one that is able to produce the requested information.
|
def detected_info() -> Microarchitecture:
|
||||||
|
"""Returns a partial Microarchitecture with information on the CPU of the current host.
|
||||||
|
|
||||||
|
This function calls all the viable factories one after the other until there's one that is
|
||||||
|
able to produce the requested information. Falls-back to a generic microarchitecture, if none
|
||||||
|
of the calls succeed.
|
||||||
"""
|
"""
|
||||||
# pylint: disable=broad-except
|
# pylint: disable=broad-except
|
||||||
info = {}
|
|
||||||
for factory in INFO_FACTORY[platform.system()]:
|
for factory in INFO_FACTORY[platform.system()]:
|
||||||
try:
|
try:
|
||||||
info = factory()
|
return factory()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
warnings.warn(str(exc))
|
warnings.warn(str(exc))
|
||||||
|
|
||||||
if info:
|
return generic_microarchitecture(_machine())
|
||||||
adjust_raw_flags(info)
|
|
||||||
adjust_raw_vendor(info)
|
|
||||||
break
|
|
||||||
|
|
||||||
return info
|
|
||||||
|
|
||||||
|
|
||||||
def compatible_microarchitectures(info):
|
def compatible_microarchitectures(info: Microarchitecture) -> List[Microarchitecture]:
|
||||||
"""Returns an unordered list of known micro-architectures that are
|
"""Returns an unordered list of known micro-architectures that are compatible with the
|
||||||
compatible with the info dictionary passed as argument.
|
partial Microarchitecture passed as input.
|
||||||
|
|
||||||
Args:
|
|
||||||
info (dict): dictionary containing information on the host cpu
|
|
||||||
"""
|
"""
|
||||||
architecture_family = _machine()
|
architecture_family = _machine()
|
||||||
# If a tester is not registered, be conservative and assume no known
|
# If a tester is not registered, assume no known target is compatible with the host
|
||||||
# target is compatible with the host
|
|
||||||
tester = COMPATIBILITY_CHECKS.get(architecture_family, lambda x, y: False)
|
tester = COMPATIBILITY_CHECKS.get(architecture_family, lambda x, y: False)
|
||||||
return [x for x in TARGETS.values() if tester(info, x)] or [
|
return [x for x in TARGETS.values() if tester(info, x)] or [
|
||||||
generic_microarchitecture(architecture_family)
|
generic_microarchitecture(architecture_family)
|
||||||
@@ -230,8 +331,8 @@ def compatible_microarchitectures(info):
|
|||||||
|
|
||||||
def host():
|
def host():
|
||||||
"""Detects the host micro-architecture and returns it."""
|
"""Detects the host micro-architecture and returns it."""
|
||||||
# Retrieve a dictionary with raw information on the host's cpu
|
# Retrieve information on the host's cpu
|
||||||
info = raw_info_dictionary()
|
info = detected_info()
|
||||||
|
|
||||||
# Get a list of possible candidates for this micro-architecture
|
# Get a list of possible candidates for this micro-architecture
|
||||||
candidates = compatible_microarchitectures(info)
|
candidates = compatible_microarchitectures(info)
|
||||||
@@ -258,16 +359,15 @@ def sorting_fn(item):
|
|||||||
return max(candidates, key=sorting_fn)
|
return max(candidates, key=sorting_fn)
|
||||||
|
|
||||||
|
|
||||||
def compatibility_check(architecture_family):
|
def compatibility_check(architecture_family: Union[str, Tuple[str, ...]]):
|
||||||
"""Decorator to register a function as a proper compatibility check.
|
"""Decorator to register a function as a proper compatibility check.
|
||||||
|
|
||||||
A compatibility check function takes the raw info dictionary as a first
|
A compatibility check function takes a partial Microarchitecture object as a first argument,
|
||||||
argument and an arbitrary target as the second argument. It returns True
|
and an arbitrary target Microarchitecture as the second argument. It returns True if the
|
||||||
if the target is compatible with the info dictionary, False otherwise.
|
target is compatible with first argument, False otherwise.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
architecture_family (str or tuple): architecture family for which
|
architecture_family: architecture family for which this test can be used
|
||||||
this test can be used, e.g. x86_64 or ppc64le etc.
|
|
||||||
"""
|
"""
|
||||||
# Turn the argument into something iterable
|
# Turn the argument into something iterable
|
||||||
if isinstance(architecture_family, str):
|
if isinstance(architecture_family, str):
|
||||||
@@ -280,86 +380,70 @@ def decorator(func):
|
|||||||
return decorator
|
return decorator
|
||||||
|
|
||||||
|
|
||||||
@compatibility_check(architecture_family=("ppc64le", "ppc64"))
|
@compatibility_check(architecture_family=(PPC64LE, PPC64))
|
||||||
def compatibility_check_for_power(info, target):
|
def compatibility_check_for_power(info, target):
|
||||||
"""Compatibility check for PPC64 and PPC64LE architectures."""
|
"""Compatibility check for PPC64 and PPC64LE architectures."""
|
||||||
basename = platform.machine()
|
|
||||||
generation_match = re.search(r"POWER(\d+)", info.get("cpu", ""))
|
|
||||||
try:
|
|
||||||
generation = int(generation_match.group(1))
|
|
||||||
except AttributeError:
|
|
||||||
# There might be no match under emulated environments. For instance
|
|
||||||
# emulating a ppc64le with QEMU and Docker still reports the host
|
|
||||||
# /proc/cpuinfo and not a Power
|
|
||||||
generation = 0
|
|
||||||
|
|
||||||
# We can use a target if it descends from our machine type and our
|
# We can use a target if it descends from our machine type and our
|
||||||
# generation (9 for POWER9, etc) is at least its generation.
|
# generation (9 for POWER9, etc) is at least its generation.
|
||||||
arch_root = TARGETS[basename]
|
arch_root = TARGETS[_machine()]
|
||||||
return (
|
return (
|
||||||
target == arch_root or arch_root in target.ancestors
|
target == arch_root or arch_root in target.ancestors
|
||||||
) and target.generation <= generation
|
) and target.generation <= info.generation
|
||||||
|
|
||||||
|
|
||||||
@compatibility_check(architecture_family="x86_64")
|
@compatibility_check(architecture_family=X86_64)
|
||||||
def compatibility_check_for_x86_64(info, target):
|
def compatibility_check_for_x86_64(info, target):
|
||||||
"""Compatibility check for x86_64 architectures."""
|
"""Compatibility check for x86_64 architectures."""
|
||||||
basename = "x86_64"
|
|
||||||
vendor = info.get("vendor_id", "generic")
|
|
||||||
features = set(info.get("flags", "").split())
|
|
||||||
|
|
||||||
# We can use a target if it descends from our machine type, is from our
|
# We can use a target if it descends from our machine type, is from our
|
||||||
# vendor, and we have all of its features
|
# vendor, and we have all of its features
|
||||||
arch_root = TARGETS[basename]
|
arch_root = TARGETS[X86_64]
|
||||||
return (
|
return (
|
||||||
(target == arch_root or arch_root in target.ancestors)
|
(target == arch_root or arch_root in target.ancestors)
|
||||||
and target.vendor in (vendor, "generic")
|
and target.vendor in (info.vendor, "generic")
|
||||||
and target.features.issubset(features)
|
and target.features.issubset(info.features)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@compatibility_check(architecture_family="aarch64")
|
@compatibility_check(architecture_family=AARCH64)
|
||||||
def compatibility_check_for_aarch64(info, target):
|
def compatibility_check_for_aarch64(info, target):
|
||||||
"""Compatibility check for AARCH64 architectures."""
|
"""Compatibility check for AARCH64 architectures."""
|
||||||
basename = "aarch64"
|
# At the moment, it's not clear how to detect compatibility with
|
||||||
features = set(info.get("Features", "").split())
|
|
||||||
vendor = info.get("CPU implementer", "generic")
|
|
||||||
|
|
||||||
# At the moment it's not clear how to detect compatibility with
|
|
||||||
# a specific version of the architecture
|
# a specific version of the architecture
|
||||||
if target.vendor == "generic" and target.name != "aarch64":
|
if target.vendor == "generic" and target.name != AARCH64:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
arch_root = TARGETS[basename]
|
arch_root = TARGETS[AARCH64]
|
||||||
arch_root_and_vendor = arch_root == target.family and target.vendor in (
|
arch_root_and_vendor = arch_root == target.family and target.vendor in (
|
||||||
vendor,
|
info.vendor,
|
||||||
"generic",
|
"generic",
|
||||||
)
|
)
|
||||||
|
|
||||||
# On macOS it seems impossible to get all the CPU features
|
# On macOS it seems impossible to get all the CPU features
|
||||||
# with syctl info, but for ARM we can get the exact model
|
# with syctl info, but for ARM we can get the exact model
|
||||||
if platform.system() == "Darwin":
|
if platform.system() == "Darwin":
|
||||||
model_key = info.get("model", basename)
|
model = TARGETS[info.name]
|
||||||
model = TARGETS[model_key]
|
|
||||||
return arch_root_and_vendor and (target == model or target in model.ancestors)
|
return arch_root_and_vendor and (target == model or target in model.ancestors)
|
||||||
|
|
||||||
return arch_root_and_vendor and target.features.issubset(features)
|
return arch_root_and_vendor and target.features.issubset(info.features)
|
||||||
|
|
||||||
|
|
||||||
@compatibility_check(architecture_family="riscv64")
|
@compatibility_check(architecture_family=RISCV64)
|
||||||
def compatibility_check_for_riscv64(info, target):
|
def compatibility_check_for_riscv64(info, target):
|
||||||
"""Compatibility check for riscv64 architectures."""
|
"""Compatibility check for riscv64 architectures."""
|
||||||
basename = "riscv64"
|
arch_root = TARGETS[RISCV64]
|
||||||
uarch = info.get("uarch")
|
|
||||||
|
|
||||||
# sifive unmatched board
|
|
||||||
if uarch == "sifive,u74-mc":
|
|
||||||
uarch = "u74mc"
|
|
||||||
# catch-all for unknown uarchs
|
|
||||||
else:
|
|
||||||
uarch = "riscv64"
|
|
||||||
|
|
||||||
arch_root = TARGETS[basename]
|
|
||||||
return (target == arch_root or arch_root in target.ancestors) and (
|
return (target == arch_root or arch_root in target.ancestors) and (
|
||||||
target == uarch or target.vendor == "generic"
|
target.name == info.name or target.vendor == "generic"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def brand_string() -> Optional[str]:
|
||||||
|
"""Returns the brand string of the host, if detected, or None."""
|
||||||
|
if platform.system() == "Darwin":
|
||||||
|
return _check_output(
|
||||||
|
["sysctl", "-n", "machdep.cpu.brand_string"], env=_ensure_bin_usrbin_in_path()
|
||||||
|
).strip()
|
||||||
|
|
||||||
|
if host().family == X86_64:
|
||||||
|
return CpuidInfoCollector().brand_string()
|
||||||
|
|
||||||
|
return None
|
||||||
|
@@ -13,6 +13,7 @@
|
|||||||
import archspec
|
import archspec
|
||||||
import archspec.cpu.alias
|
import archspec.cpu.alias
|
||||||
import archspec.cpu.schema
|
import archspec.cpu.schema
|
||||||
|
|
||||||
from .alias import FEATURE_ALIASES
|
from .alias import FEATURE_ALIASES
|
||||||
from .schema import LazyDictionary
|
from .schema import LazyDictionary
|
||||||
|
|
||||||
@@ -47,7 +48,7 @@ class Microarchitecture:
|
|||||||
which has "broadwell" as a parent, supports running binaries
|
which has "broadwell" as a parent, supports running binaries
|
||||||
optimized for "broadwell".
|
optimized for "broadwell".
|
||||||
vendor (str): vendor of the micro-architecture
|
vendor (str): vendor of the micro-architecture
|
||||||
features (list of str): supported CPU flags. Note that the semantic
|
features (set of str): supported CPU flags. Note that the semantic
|
||||||
of the flags in this field might vary among architectures, if
|
of the flags in this field might vary among architectures, if
|
||||||
at all present. For instance x86_64 processors will list all
|
at all present. For instance x86_64 processors will list all
|
||||||
the flags supported by a given CPU while Arm processors will
|
the flags supported by a given CPU while Arm processors will
|
||||||
@@ -180,29 +181,35 @@ def generic(self):
|
|||||||
generics = [x for x in [self] + self.ancestors if x.vendor == "generic"]
|
generics = [x for x in [self] + self.ancestors if x.vendor == "generic"]
|
||||||
return max(generics, key=lambda x: len(x.ancestors))
|
return max(generics, key=lambda x: len(x.ancestors))
|
||||||
|
|
||||||
def to_dict(self, return_list_of_items=False):
|
def to_dict(self):
|
||||||
"""Returns a dictionary representation of this object.
|
"""Returns a dictionary representation of this object."""
|
||||||
|
return {
|
||||||
|
"name": str(self.name),
|
||||||
|
"vendor": str(self.vendor),
|
||||||
|
"features": sorted(str(x) for x in self.features),
|
||||||
|
"generation": self.generation,
|
||||||
|
"parents": [str(x) for x in self.parents],
|
||||||
|
"compilers": self.compilers,
|
||||||
|
}
|
||||||
|
|
||||||
Args:
|
@staticmethod
|
||||||
return_list_of_items (bool): if True returns an ordered list of
|
def from_dict(data) -> "Microarchitecture":
|
||||||
items instead of the dictionary
|
"""Construct a microarchitecture from a dictionary representation."""
|
||||||
"""
|
return Microarchitecture(
|
||||||
list_of_items = [
|
name=data["name"],
|
||||||
("name", str(self.name)),
|
parents=[TARGETS[x] for x in data["parents"]],
|
||||||
("vendor", str(self.vendor)),
|
vendor=data["vendor"],
|
||||||
("features", sorted(str(x) for x in self.features)),
|
features=set(data["features"]),
|
||||||
("generation", self.generation),
|
compilers=data.get("compilers", {}),
|
||||||
("parents", [str(x) for x in self.parents]),
|
generation=data.get("generation", 0),
|
||||||
]
|
)
|
||||||
if return_list_of_items:
|
|
||||||
return list_of_items
|
|
||||||
|
|
||||||
return dict(list_of_items)
|
|
||||||
|
|
||||||
def optimization_flags(self, compiler, version):
|
def optimization_flags(self, compiler, version):
|
||||||
"""Returns a string containing the optimization flags that needs
|
"""Returns a string containing the optimization flags that needs
|
||||||
to be used to produce code optimized for this micro-architecture.
|
to be used to produce code optimized for this micro-architecture.
|
||||||
|
|
||||||
|
The version is expected to be a string of dot separated digits.
|
||||||
|
|
||||||
If there is no information on the compiler passed as argument the
|
If there is no information on the compiler passed as argument the
|
||||||
function returns an empty string. If it is known that the compiler
|
function returns an empty string. If it is known that the compiler
|
||||||
version we want to use does not support this architecture the function
|
version we want to use does not support this architecture the function
|
||||||
@@ -211,6 +218,11 @@ def optimization_flags(self, compiler, version):
|
|||||||
Args:
|
Args:
|
||||||
compiler (str): name of the compiler to be used
|
compiler (str): name of the compiler to be used
|
||||||
version (str): version of the compiler to be used
|
version (str): version of the compiler to be used
|
||||||
|
|
||||||
|
Raises:
|
||||||
|
UnsupportedMicroarchitecture: if the requested compiler does not support
|
||||||
|
this micro-architecture.
|
||||||
|
ValueError: if the version doesn't match the expected format
|
||||||
"""
|
"""
|
||||||
# If we don't have information on compiler at all return an empty string
|
# If we don't have information on compiler at all return an empty string
|
||||||
if compiler not in self.family.compilers:
|
if compiler not in self.family.compilers:
|
||||||
@@ -227,6 +239,14 @@ def optimization_flags(self, compiler, version):
|
|||||||
msg = msg.format(compiler, best_target, best_target.family)
|
msg = msg.format(compiler, best_target, best_target.family)
|
||||||
raise UnsupportedMicroarchitecture(msg)
|
raise UnsupportedMicroarchitecture(msg)
|
||||||
|
|
||||||
|
# Check that the version matches the expected format
|
||||||
|
if not re.match(r"^(?:\d+\.)*\d+$", version):
|
||||||
|
msg = (
|
||||||
|
"invalid format for the compiler version argument. "
|
||||||
|
"Only dot separated digits are allowed."
|
||||||
|
)
|
||||||
|
raise InvalidCompilerVersion(msg)
|
||||||
|
|
||||||
# If we have information on this compiler we need to check the
|
# If we have information on this compiler we need to check the
|
||||||
# version being used
|
# version being used
|
||||||
compiler_info = self.compilers[compiler]
|
compiler_info = self.compilers[compiler]
|
||||||
@@ -271,9 +291,7 @@ def tuplify(ver):
|
|||||||
flags = flags_fmt.format(**compiler_entry)
|
flags = flags_fmt.format(**compiler_entry)
|
||||||
return flags
|
return flags
|
||||||
|
|
||||||
msg = (
|
msg = "cannot produce optimized binary for micro-architecture '{0}' with {1}@{2}"
|
||||||
"cannot produce optimized binary for micro-architecture '{0}' with {1}@{2}"
|
|
||||||
)
|
|
||||||
if compiler_info:
|
if compiler_info:
|
||||||
versions = [x["versions"] for x in compiler_info]
|
versions = [x["versions"] for x in compiler_info]
|
||||||
msg += f' [supported compiler versions are {", ".join(versions)}]'
|
msg += f' [supported compiler versions are {", ".join(versions)}]'
|
||||||
@@ -289,9 +307,7 @@ def generic_microarchitecture(name):
|
|||||||
Args:
|
Args:
|
||||||
name (str): name of the micro-architecture
|
name (str): name of the micro-architecture
|
||||||
"""
|
"""
|
||||||
return Microarchitecture(
|
return Microarchitecture(name, parents=[], vendor="generic", features=set(), compilers={})
|
||||||
name, parents=[], vendor="generic", features=[], compilers={}
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def version_components(version):
|
def version_components(version):
|
||||||
@@ -345,9 +361,7 @@ def fill_target_from_dict(name, data, targets):
|
|||||||
compilers = values.get("compilers", {})
|
compilers = values.get("compilers", {})
|
||||||
generation = values.get("generation", 0)
|
generation = values.get("generation", 0)
|
||||||
|
|
||||||
targets[name] = Microarchitecture(
|
targets[name] = Microarchitecture(name, parents, vendor, features, compilers, generation)
|
||||||
name, parents, vendor, features, compilers, generation
|
|
||||||
)
|
|
||||||
|
|
||||||
known_targets = {}
|
known_targets = {}
|
||||||
data = archspec.cpu.schema.TARGETS_JSON["microarchitectures"]
|
data = archspec.cpu.schema.TARGETS_JSON["microarchitectures"]
|
||||||
@@ -368,7 +382,15 @@ def fill_target_from_dict(name, data, targets):
|
|||||||
TARGETS = LazyDictionary(_known_microarchitectures)
|
TARGETS = LazyDictionary(_known_microarchitectures)
|
||||||
|
|
||||||
|
|
||||||
class UnsupportedMicroarchitecture(ValueError):
|
class ArchspecError(Exception):
|
||||||
|
"""Base class for errors within archspec"""
|
||||||
|
|
||||||
|
|
||||||
|
class UnsupportedMicroarchitecture(ArchspecError, ValueError):
|
||||||
"""Raised if a compiler version does not support optimization for a given
|
"""Raised if a compiler version does not support optimization for a given
|
||||||
micro-architecture.
|
micro-architecture.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
class InvalidCompilerVersion(ArchspecError, ValueError):
|
||||||
|
"""Raised when an invalid format is used for compiler versions in archspec."""
|
||||||
|
68
lib/spack/external/archspec/cpu/schema.py
vendored
68
lib/spack/external/archspec/cpu/schema.py
vendored
@@ -7,7 +7,9 @@
|
|||||||
"""
|
"""
|
||||||
import collections.abc
|
import collections.abc
|
||||||
import json
|
import json
|
||||||
import os.path
|
import os
|
||||||
|
import pathlib
|
||||||
|
from typing import Tuple
|
||||||
|
|
||||||
|
|
||||||
class LazyDictionary(collections.abc.MutableMapping):
|
class LazyDictionary(collections.abc.MutableMapping):
|
||||||
@@ -46,21 +48,65 @@ def __len__(self):
|
|||||||
return len(self.data)
|
return len(self.data)
|
||||||
|
|
||||||
|
|
||||||
def _load_json_file(json_file):
|
#: Environment variable that might point to a directory with a user defined JSON file
|
||||||
json_dir = os.path.join(os.path.dirname(__file__), "..", "json", "cpu")
|
DIR_FROM_ENVIRONMENT = "ARCHSPEC_CPU_DIR"
|
||||||
json_dir = os.path.abspath(json_dir)
|
|
||||||
|
|
||||||
def _factory():
|
#: Environment variable that might point to a directory with extensions to JSON files
|
||||||
filename = os.path.join(json_dir, json_file)
|
EXTENSION_DIR_FROM_ENVIRONMENT = "ARCHSPEC_EXTENSION_CPU_DIR"
|
||||||
with open(filename, "r", encoding="utf-8") as file:
|
|
||||||
return json.load(file)
|
|
||||||
|
|
||||||
return _factory
|
|
||||||
|
def _json_file(filename: str, allow_custom: bool = False) -> Tuple[pathlib.Path, pathlib.Path]:
|
||||||
|
"""Given a filename, returns the absolute path for the main JSON file, and an
|
||||||
|
optional absolute path for an extension JSON file.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
filename: filename for the JSON file
|
||||||
|
allow_custom: if True, allows overriding the location where the file resides
|
||||||
|
"""
|
||||||
|
json_dir = pathlib.Path(__file__).parent / ".." / "json" / "cpu"
|
||||||
|
if allow_custom and DIR_FROM_ENVIRONMENT in os.environ:
|
||||||
|
json_dir = pathlib.Path(os.environ[DIR_FROM_ENVIRONMENT])
|
||||||
|
json_dir = json_dir.absolute()
|
||||||
|
json_file = json_dir / filename
|
||||||
|
|
||||||
|
extension_file = None
|
||||||
|
if allow_custom and EXTENSION_DIR_FROM_ENVIRONMENT in os.environ:
|
||||||
|
extension_dir = pathlib.Path(os.environ[EXTENSION_DIR_FROM_ENVIRONMENT])
|
||||||
|
extension_dir.absolute()
|
||||||
|
extension_file = extension_dir / filename
|
||||||
|
|
||||||
|
return json_file, extension_file
|
||||||
|
|
||||||
|
|
||||||
|
def _load(json_file: pathlib.Path, extension_file: pathlib.Path):
|
||||||
|
with open(json_file, "r", encoding="utf-8") as file:
|
||||||
|
data = json.load(file)
|
||||||
|
|
||||||
|
if not extension_file or not extension_file.exists():
|
||||||
|
return data
|
||||||
|
|
||||||
|
with open(extension_file, "r", encoding="utf-8") as file:
|
||||||
|
extension_data = json.load(file)
|
||||||
|
|
||||||
|
top_level_sections = list(data.keys())
|
||||||
|
for key in top_level_sections:
|
||||||
|
if key not in extension_data:
|
||||||
|
continue
|
||||||
|
|
||||||
|
data[key].update(extension_data[key])
|
||||||
|
|
||||||
|
return data
|
||||||
|
|
||||||
|
|
||||||
#: In memory representation of the data in microarchitectures.json,
|
#: In memory representation of the data in microarchitectures.json,
|
||||||
#: loaded on first access
|
#: loaded on first access
|
||||||
TARGETS_JSON = LazyDictionary(_load_json_file("microarchitectures.json"))
|
TARGETS_JSON = LazyDictionary(_load, *_json_file("microarchitectures.json", allow_custom=True))
|
||||||
|
|
||||||
#: JSON schema for microarchitectures.json, loaded on first access
|
#: JSON schema for microarchitectures.json, loaded on first access
|
||||||
SCHEMA = LazyDictionary(_load_json_file("microarchitectures_schema.json"))
|
TARGETS_JSON_SCHEMA = LazyDictionary(_load, *_json_file("microarchitectures_schema.json"))
|
||||||
|
|
||||||
|
#: Information on how to call 'cpuid' to get information on the HOST CPU
|
||||||
|
CPUID_JSON = LazyDictionary(_load, *_json_file("cpuid.json", allow_custom=True))
|
||||||
|
|
||||||
|
#: JSON schema for cpuid.json, loaded on first access
|
||||||
|
CPUID_JSON_SCHEMA = LazyDictionary(_load, *_json_file("cpuid_schema.json"))
|
||||||
|
10
lib/spack/external/archspec/json/README.md
vendored
10
lib/spack/external/archspec/json/README.md
vendored
@@ -9,11 +9,11 @@ language specific APIs.
|
|||||||
|
|
||||||
Currently the repository contains the following JSON files:
|
Currently the repository contains the following JSON files:
|
||||||
```console
|
```console
|
||||||
.
|
cpu/
|
||||||
├── COPYRIGHT
|
├── cpuid.json # Contains information on CPUID calls to retrieve vendor and features on x86_64
|
||||||
└── cpu
|
├── cpuid_schema.json # Schema for the file above
|
||||||
├── microarchitectures.json # Contains information on CPU microarchitectures
|
├── microarchitectures.json # Contains information on CPU microarchitectures
|
||||||
└── microarchitectures_schema.json # Schema for the file above
|
└── microarchitectures_schema.json # Schema for the file above
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
1050
lib/spack/external/archspec/json/cpu/cpuid.json
vendored
Normal file
1050
lib/spack/external/archspec/json/cpu/cpuid.json
vendored
Normal file
File diff suppressed because it is too large
Load Diff
134
lib/spack/external/archspec/json/cpu/cpuid_schema.json
vendored
Normal file
134
lib/spack/external/archspec/json/cpu/cpuid_schema.json
vendored
Normal file
@@ -0,0 +1,134 @@
|
|||||||
|
{
|
||||||
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
|
"title": "Schema for microarchitecture definitions and feature aliases",
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
|
"properties": {
|
||||||
|
"vendor": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
|
"properties": {
|
||||||
|
"description": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"input": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
|
"properties": {
|
||||||
|
"eax": {
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"ecx": {
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"highest_extension_support": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
|
"properties": {
|
||||||
|
"description": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"input": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
|
"properties": {
|
||||||
|
"eax": {
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"ecx": {
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flags": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
|
"properties": {
|
||||||
|
"description": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"input": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
|
"properties": {
|
||||||
|
"eax": {
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"ecx": {
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"bits": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"register": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"bit": {
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"extension-flags": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
|
"properties": {
|
||||||
|
"description": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"input": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
|
"properties": {
|
||||||
|
"eax": {
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"ecx": {
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"bits": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"register": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"bit": {
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -2937,8 +2937,6 @@
|
|||||||
"ilrcpc",
|
"ilrcpc",
|
||||||
"flagm",
|
"flagm",
|
||||||
"ssbs",
|
"ssbs",
|
||||||
"paca",
|
|
||||||
"pacg",
|
|
||||||
"dcpodp",
|
"dcpodp",
|
||||||
"svei8mm",
|
"svei8mm",
|
||||||
"svebf16",
|
"svebf16",
|
||||||
@@ -3066,8 +3064,6 @@
|
|||||||
"flagm",
|
"flagm",
|
||||||
"ssbs",
|
"ssbs",
|
||||||
"sb",
|
"sb",
|
||||||
"paca",
|
|
||||||
"pacg",
|
|
||||||
"dcpodp",
|
"dcpodp",
|
||||||
"sve2",
|
"sve2",
|
||||||
"sveaes",
|
"sveaes",
|
||||||
@@ -3081,8 +3077,7 @@
|
|||||||
"svebf16",
|
"svebf16",
|
||||||
"i8mm",
|
"i8mm",
|
||||||
"bf16",
|
"bf16",
|
||||||
"dgh",
|
"dgh"
|
||||||
"bti"
|
|
||||||
],
|
],
|
||||||
"compilers" : {
|
"compilers" : {
|
||||||
"gcc": [
|
"gcc": [
|
||||||
|
20
lib/spack/external/archspec/vendor/cpuid/LICENSE
vendored
Normal file
20
lib/spack/external/archspec/vendor/cpuid/LICENSE
vendored
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2014 Anders Høst
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||||
|
this software and associated documentation files (the "Software"), to deal in
|
||||||
|
the Software without restriction, including without limitation the rights to
|
||||||
|
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||||
|
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||||
|
subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||||
|
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||||
|
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||||
|
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||||
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
76
lib/spack/external/archspec/vendor/cpuid/README.md
vendored
Normal file
76
lib/spack/external/archspec/vendor/cpuid/README.md
vendored
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
cpuid.py
|
||||||
|
========
|
||||||
|
|
||||||
|
Now, this is silly!
|
||||||
|
|
||||||
|
Pure Python library for accessing information about x86 processors
|
||||||
|
by querying the [CPUID](http://en.wikipedia.org/wiki/CPUID)
|
||||||
|
instruction. Well, not exactly pure Python...
|
||||||
|
|
||||||
|
It works by allocating a small piece of virtual memory, copying
|
||||||
|
a raw x86 function to that memory, giving the memory execute
|
||||||
|
permissions and then calling the memory as a function. The injected
|
||||||
|
function executes the CPUID instruction and copies the result back
|
||||||
|
to a ctypes.Structure where is can be read by Python.
|
||||||
|
|
||||||
|
It should work fine on both 32 and 64 bit versions of Windows and Linux
|
||||||
|
running x86 processors. Apple OS X and other BSD systems should also work,
|
||||||
|
not tested though...
|
||||||
|
|
||||||
|
|
||||||
|
Why?
|
||||||
|
----
|
||||||
|
For poops and giggles. Plus, having access to a low-level feature
|
||||||
|
without having to compile a C wrapper is pretty neat.
|
||||||
|
|
||||||
|
|
||||||
|
Examples
|
||||||
|
--------
|
||||||
|
Getting info with eax=0:
|
||||||
|
|
||||||
|
import cpuid
|
||||||
|
|
||||||
|
q = cpuid.CPUID()
|
||||||
|
eax, ebx, ecx, edx = q(0)
|
||||||
|
|
||||||
|
Running the files:
|
||||||
|
|
||||||
|
$ python example.py
|
||||||
|
Vendor ID : GenuineIntel
|
||||||
|
CPU name : Intel(R) Xeon(R) CPU W3550 @ 3.07GHz
|
||||||
|
|
||||||
|
Vector instructions supported:
|
||||||
|
SSE : Yes
|
||||||
|
SSE2 : Yes
|
||||||
|
SSE3 : Yes
|
||||||
|
SSSE3 : Yes
|
||||||
|
SSE4.1 : Yes
|
||||||
|
SSE4.2 : Yes
|
||||||
|
SSE4a : --
|
||||||
|
AVX : --
|
||||||
|
AVX2 : --
|
||||||
|
|
||||||
|
$ python cpuid.py
|
||||||
|
CPUID A B C D
|
||||||
|
00000000 0000000b 756e6547 6c65746e 49656e69
|
||||||
|
00000001 000106a5 00100800 009ce3bd bfebfbff
|
||||||
|
00000002 55035a01 00f0b2e4 00000000 09ca212c
|
||||||
|
00000003 00000000 00000000 00000000 00000000
|
||||||
|
00000004 00000000 00000000 00000000 00000000
|
||||||
|
00000005 00000040 00000040 00000003 00001120
|
||||||
|
00000006 00000003 00000002 00000001 00000000
|
||||||
|
00000007 00000000 00000000 00000000 00000000
|
||||||
|
00000008 00000000 00000000 00000000 00000000
|
||||||
|
00000009 00000000 00000000 00000000 00000000
|
||||||
|
0000000a 07300403 00000044 00000000 00000603
|
||||||
|
0000000b 00000000 00000000 00000095 00000000
|
||||||
|
80000000 80000008 00000000 00000000 00000000
|
||||||
|
80000001 00000000 00000000 00000001 28100800
|
||||||
|
80000002 65746e49 2952286c 6f655820 2952286e
|
||||||
|
80000003 55504320 20202020 20202020 57202020
|
||||||
|
80000004 30353533 20402020 37302e33 007a4847
|
||||||
|
80000005 00000000 00000000 00000000 00000000
|
||||||
|
80000006 00000000 00000000 01006040 00000000
|
||||||
|
80000007 00000000 00000000 00000000 00000100
|
||||||
|
80000008 00003024 00000000 00000000 00000000
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user