Commit 51f1afa
committed
[CMake][Bugfix] Set default value for FLASHINFER_GEN_MASK_MODES
This commit resolves a build-time error with the following message:
```
CMake Error at 3rdparty/flashinfer/CMakeLists.txt:313 (add_library):
No SOURCES given to target: prefill_kernels
```
This occurred after
flashinfer-ai#266, which replaces
the `FLASHINFER_GEN_CASUALS` option with `FLASHINFER_GEN_MASK_MODES`.
However, the definition of `flashinfer_option(FLASHINFER_GEN_CASUALS
... )` was not replaced. As a result, loop over the empty
`MASK_MODES` does not produce any kernels that should be compiled.
This commit updates the `flashinfer_option(FLASH_GEN_CASUALS ...)`
line to instead define `FLASH_GEN_MASK_MODES`, using the same default
value as `config.cmake`.1 parent 95f507f commit 51f1afa
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments