Skip to content

Conversation

@Lunderberg
Copy link
Contributor

@Lunderberg Lunderberg commented Jun 28, 2024

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 #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.

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`.
@Lunderberg Lunderberg force-pushed the cmake_bugfix_default_mask_modes branch from 51f1afa to 9e7b8b2 Compare June 28, 2024 14:52
Copy link
Collaborator

@yzh119 yzh119 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@yzh119 yzh119 merged commit df59f71 into flashinfer-ai:main Jun 28, 2024
@Lunderberg Lunderberg deleted the cmake_bugfix_default_mask_modes branch June 28, 2024 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants