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

Fix ci: windows-cublas #175

Merged
merged 1 commit into from
Jul 3, 2024
Merged
Changes from all 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
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ endif()

if (RWKV_CUBLAS)
cmake_minimum_required(VERSION 3.17)
set(CMAKE_CUDA_COMPILER_FORCED TRUE)

find_package(CUDAToolkit)

Expand Down Expand Up @@ -417,6 +418,11 @@ target_compile_features(ggml PUBLIC c_std_11) # Don't bump

if (MSVC)
target_link_libraries(ggml PUBLIC ${RWKV_EXTRA_LIBS} Threads::Threads)
if (RWKV_CUBLAS)
target_compile_options(ggml PRIVATE $<$<COMPILE_LANGUAGE:CUDA>:
-allow-unsupported-compiler
>)
endif()
else()
if (WIN32 AND RWKV_HIPBLAS)
target_link_libraries(ggml PUBLIC ${RWKV_EXTRA_LIBS} Threads::Threads)
Expand Down
Loading