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

FEATURE: adding gpu accelerated cn method #39

Merged
Merged
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
13 changes: 12 additions & 1 deletion GPUSolver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,30 @@ set(CMAKE_CXX_STANDARD ${CPPVERSION})
set(CMAKE_CXX_FLAGS "-std=c++${CPPVERSION}")
set(CMAKE_CUDA_FLAGS "-std=c++${CPPVERSION}")
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS}; "-std=c++${CPPVERSION}")
find_package(CUDAToolkit REQUIRED)

enable_language(CUDA)
add_executable(GPU_runner_explicit)
add_executable(CPU_runner_explicit)

target_link_libraries(GPU_runner_explicit PRIVATE
CUDA::cusparse
CUDA::cudart
)

target_sources(CPU_runner_explicit
PRIVATE
cpu/bse_solvers.cpp
cpu/bse_solvers.h
)
target_sources(GPU_runner_explicit
PRIVATE
gpu/bse_explicit_parallel.cu
# gpu/bse_explicit_parallel.cu
# playground/cn_playground.cu
# playground/sample.cu
# playground/bse_cn.cu
gpu/bse_solvers_parallel.cuh
main.cu
)

set_target_properties(GPU_runner_explicit
Expand Down
Loading