Skip to content

Commit

Permalink
[CMake] Add "USE_FLASHINFER" to libinfo (#16710)
Browse files Browse the repository at this point in the history
This PR adds the flag `USE_FLASHINFER` to libinfo, so that we can use
the global function "support.GetLibInfo" to check if FlashInfer is
enabled when building TVM.
  • Loading branch information
MasterJH5574 authored Mar 13, 2024
1 parent 3b25697 commit 6a877df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmake/modules/LibInfo.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ function(add_lib_info src_file)
TVM_INFO_USE_CUDNN="${USE_CUDNN}"
TVM_INFO_USE_CUSTOM_LOGGING="${USE_CUSTOM_LOGGING}"
TVM_INFO_USE_CUTLASS="${USE_CUTLASS}"
TVM_INFO_USE_FLASHINFER="${USE_FLASHINFER}"
TVM_INFO_USE_AMX="${USE_AMX}"
TVM_INFO_USE_DNNL="${USE_DNNL}"
TVM_INFO_USE_ETHOSN="${USE_ETHOSN}"
Expand Down
1 change: 1 addition & 0 deletions src/support/libinfo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ TVM_DLL Map<String, String> GetLibInfo() {
{"USE_CUDNN", TVM_INFO_USE_CUDNN},
{"USE_CUSTOM_LOGGING", TVM_INFO_USE_CUSTOM_LOGGING},
{"USE_CUTLASS", TVM_INFO_USE_CUTLASS},
{"USE_FLASHINFER", TVM_INFO_USE_FLASHINFER},
{"USE_AMX", TVM_INFO_USE_AMX},
{"USE_DNNL", TVM_INFO_USE_DNNL},
{"USE_ETHOSN", TVM_INFO_USE_ETHOSN},
Expand Down

0 comments on commit 6a877df

Please sign in to comment.