Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Commit

Permalink
Skip cuda files in the build (temporarily) for LLVM only build
Browse files Browse the repository at this point in the history
  • Loading branch information
pramodk committed Jan 3, 2022
1 parent 6ff530c commit 57cecb5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions coreneuron/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ file(
"utils/*/*.c"
"utils/*/*.cpp")
file(GLOB_RECURSE CORENEURON_CUDA_FILES "*.cu")
list(REMOVE_ITEM CORENEURON_CUDA_FILES "${CMAKE_CURRENT_SOURCE_DIR}/permute/cellorder.cu")
list(REMOVE_ITEM CORENEURON_CUDA_FILES "${CMAKE_CURRENT_SOURCE_DIR}/utils/profile/cuda_profile.cu")
list(REMOVE_ITEM CORENEURON_CUDA_FILES "${CMAKE_CURRENT_SOURCE_DIR}/utils/randoms/nrnran123.cu")
set(SCOPMATH_CODE_FILES
"sim/scopmath/abort.cpp" "sim/scopmath/crout_thread.cpp" "sim/scopmath/newton_thread.cpp"
Expand Down
3 changes: 2 additions & 1 deletion coreneuron/utils/memory_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ void report_mem_usage(const char* message, bool all_ranks) {
mem_avg);
#ifdef CORENEURON_ENABLE_GPU
if (corenrn_param.gpu) {
print_gpu_memory_usage();
// TODO: temporary to avoid CUDA code usage with LLVM build
//print_gpu_memory_usage();
}
#endif
}
Expand Down

0 comments on commit 57cecb5

Please sign in to comment.