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 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
22 changes: 14 additions & 8 deletions GPUSolver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,21 @@ 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)
add_executable(GPU_runner)
add_executable(CPU_runner)
add_executable(CGSolver)

# SOURCE
# ------------------------------------------
target_sources(CPU_runner_explicit
target_sources(CPU_runner
PRIVATE
cpu/bse_solvers.cpp
cpu/bse_solvers.h
)
target_sources(GPU_runner_explicit
target_sources(GPU_runner
PRIVATE
gpu/bse_explicit_parallel.cu
gpu/bse_solvers_parallel.cuh
main.cu
)
target_sources(CGSolver
PRIVATE
Expand All @@ -39,11 +40,11 @@ target_sources(CGSolver

# PROPERTIES
# ------------------------------------------
set_target_properties(GPU_runner_explicit
set_target_properties(GPU_runner
PROPERTIES
CUDA_SEPARABLE_COMPILATION ON
)
set_target_properties(CPU_runner_explicit
set_target_properties(CPU_runner
PROPERTIES
CUDA_SEPARABLE_COMPILATION ON
)
Expand All @@ -59,5 +60,10 @@ target_link_libraries(CGSolver PRIVATE
CUDA::cusparse
CUDA::cublas
CUDA::cudart
)
)

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

271 changes: 0 additions & 271 deletions GPUSolver/gpu/bse_explicit_parallel.cu

This file was deleted.

Loading