Commit 403c641
committed
fix: guard DSpark native-SAS warning behind USE_NPU.
deepseek_v4_ori_window_left is declared in the NPU-only
npu_torch/deepseek_sparse_attention.h, whose include is already USE_NPU
gated, but the warning that calls it in DFlashWorkerImpl::init_model sat
outside any guard, breaking the MLU and CUDA builds. Wrap the native-SAS
warning in #if defined(USE_NPU).1 parent 0f5047b commit 403c641
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
| 362 | + | |
362 | 363 | | |
363 | 364 | | |
364 | 365 | | |
| |||
369 | 370 | | |
370 | 371 | | |
371 | 372 | | |
| 373 | + | |
372 | 374 | | |
373 | 375 | | |
374 | 376 | | |
| |||
0 commit comments