Commit 6ee27a4
committed
Rename candle's moe_gemm_wmma -> candle_moe_gemm_wmma to avoid symbol collision with mistralrs-core
Both candle-kernels and mistralrs-core define an extern "C" void moe_gemm_wmma
kernel with the same signature but incompatible implementations. When both
crates are linked into the same binary (e.g. spiced with cuda + models
features), ld.lld rejects the duplicate symbol.
Prefix the candle side with 'candle_' so both can coexist; the mistralrs-core
copy keeps the original name and call sites.1 parent c87b9bc commit 6ee27a4
3 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
0 commit comments