Skip to content

Conversation

@MasterJH5574
Copy link
Contributor

This PR fixes the tvm/dlpack/dmlc header lookup in the FlashInfer kernel JIT compilation.

Prior to this fix, the JIT compilation assumes the environment variable TVM_SOURCE_DIR is always defined, which is not always true. This PR fixes the behavior and considers multiple cases, including TVM source builds and pip-installed packages.

Copy link
Member

@yongwww yongwww left a comment

Choose a reason for hiding this comment

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

Thanks for the fix! It is helpful. Yeah, requiring both TVM_SOURCE_DIR and TVM_HOME was a bit confusing.

@yongwww
Copy link
Member

yongwww commented Aug 27, 2025

Lint has failed. BTW, it might be worth considering adding a pre-commit setup (as other communities do). That way, running a single command could automatically fix all lint errors. @tqchen @Hzfengsy @yzh119

@MasterJH5574
Copy link
Contributor Author

Thanks for the fix! It is helpful. Yeah, requiring both TVM_SOURCE_DIR and TVM_HOME was a bit confusing.

@yongwww I remember we renamed all TVM_HOME to TVM_SOURCE_DIR a while ago. I put both here just in case anyone didn't rename their local environment variables.

This PR fixes the tvm/dlpack/dmlc header lookup in the FlashInfer
kernel JIT compilation.

Prior to this fix, the JIT compilation assumes the environment
variable `TVM_SOURCE_DIR` is always defined, which is not always
true. This PR fixes the behavior and considers multiple cases,
including TVM source builds and pip-installed packages.
@MasterJH5574 MasterJH5574 force-pushed the tvm-dev/2025-08-27-flashinfer-jit-header branch from 5e6f1b7 to c502a73 Compare August 27, 2025 17:42
@yongwww
Copy link
Member

yongwww commented Aug 27, 2025

I see. Thanks, @MasterJH5574 !

@tqchen tqchen merged commit 1808a94 into apache:main Aug 27, 2025
12 checks passed
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.

3 participants