Skip to content
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

Blackwell Support Codegen #3103

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ci/task/build_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if [[ ${GPU} == rocm* ]]; then
elif [[ ${GPU} == cuda* ]]; then
echo set\(USE_VULKAN ON\) >>config.cmake
echo set\(CMAKE_CUDA_COMPILER_LAUNCHER ccache\) >>config.cmake
echo set\(CMAKE_CUDA_ARCHITECTURES "80;90"\) >>config.cmake
echo set\(CMAKE_CUDA_ARCHITECTURES "80;90;100;120"\) >>config.cmake
echo set\(CMAKE_CUDA_FLAGS \"\$\{CMAKE_CUDA_FLAGS\} -t $NUM_THREADS\"\) >>config.cmake
echo set\(USE_CUDA ON\) >>config.cmake
echo set\(USE_CUBLAS ON\) >>config.cmake
Expand Down
4 changes: 2 additions & 2 deletions cmake/gen_cmake_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@
if use_flashInfer:
while True:
user_input = input("Enter your CUDA compute capability: ")
if user_input in ["80", "86", "89", "90"]:
if user_input in ["80", "86", "89", "90", "100", "120"]:
cmake_config_str += f"set(FLASHINFER_CUDA_ARCHITECTURES {user_input})\n"
cmake_config_str += f"set(CMAKE_CUDA_ARCHITECTURES {user_input})\n"
break
else:
print(f"Invalid input: {user_input}. FlashInfer requires 80, 86, 89, or 90.")
print(f"Invalid input: {user_input}. FlashInfer requires 80, 86, 89, 90, 100 or 120")

print("\nWriting the following configuration to config.cmake...")
print(cmake_config_str)
Expand Down