-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Faster compilation times #154
Comments
You can use |
Hi @skrider , you can remove some auto-generated files by: rm -rf csrc/generated/ You can use environment variables to specify which shapes/configurations to compile: rm -rf build/ # ninja fails to track file changes in `*.cuh` files
FLASHINFER_HEAD_DIMS=64,128 pip install -e . Hi @zhyncs , thanks for your suggestions, the cmake files are used to compile benchmarks and tests and they are not related to python wheel building. |
@yzh119 I can't use flashinfer(on commit b3fef8a) when following below commands:
After running above commands, i can succeed to install flashinfer. But when run example script, it will raise
If not specific |
Hi @esmeetu @yzh119 , how long does it take on average to build from source? My installation seems to get stuck:
Yes. And I face the same undefined symbol error as @esmeetu |
@ZSL98 It's up to your cpu performance and MAX_JOBS config. You can see the progress by adding verbose args, like |
Thank you for the awesome project! I am interested in doing some experimentation using this kernel as a base, however the compilation times are quite long. What temporary changes can be made to the codebase to speed it up, selecting only a particular set of kernel template arguments?
I attempted to modify https://github.com/flashinfer-ai/flashinfer/blob/main/python/setup.py#L51-L58 and comment out branches in https://github.com/flashinfer-ai/flashinfer/blob/main/include/flashinfer/utils.cuh, unfortunately still got "symbol not found" errors upon trying to load the C++ extension. Any help would be welcome. Thanks again.
The text was updated successfully, but these errors were encountered: