Commit 2060252
authored
build: add MLXCEL_CXX_MARCH override and pin the x86_64 CUDA release asset to x86-64-v3 (#208)
build.rs reads MLXCEL_CXX_MARCH in release builds: unset keeps -march=native (default unchanged), `none` omits the flag, and any other value is passed as -march=<value> via flag_if_supported, so a value the host compiler rejects is dropped rather than failing the build.
The existing build-linux-x86_64-cuda release job now sets MLXCEL_CXX_MARCH=x86-64-v3 and RUSTFLAGS=-C target-cpu=x86-64-v3, pinning the C++ bridge and rustc to a portable AVX2 (~2013+) baseline. Without this the redistributable asset inherited the build host's -march=native ISA (possibly AVX-512) and could SIGILL on older customer CPUs. Local and per-machine GB10/GH200 builds keep native.
Docs: MLXCEL_CXX_MARCH reference in environment-variables.md and installation.md, plus troubleshooting for the qmm Error 137 OOM and the liblapacke-dev (lapacke.h) build requirement.
Co-authored-by: Joongi Kim <joongi@lablup.com>1 parent a0788c2 commit 2060252
4 files changed
Lines changed: 56 additions & 2 deletions
File tree
- .github/workflows
- docs
- src/lib/mlxcel-core
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
655 | 655 | | |
656 | 656 | | |
657 | 657 | | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
658 | 666 | | |
659 | 667 | | |
660 | 668 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
148 | 165 | | |
149 | 166 | | |
150 | 167 | | |
151 | 168 | | |
152 | 169 | | |
153 | 170 | | |
| 171 | + | |
154 | 172 | | |
155 | 173 | | |
156 | 174 | | |
| |||
190 | 208 | | |
191 | 209 | | |
192 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
77 | 93 | | |
78 | 94 | | |
79 | 95 | | |
| |||
155 | 171 | | |
156 | 172 | | |
157 | 173 | | |
| 174 | + | |
158 | 175 | | |
159 | 176 | | |
160 | 177 | | |
| |||
0 commit comments