From 57cecb59d051b83adbca41fbe49680521b6d719f Mon Sep 17 00:00:00 2001 From: Pramod Kumbhar Date: Mon, 3 Jan 2022 17:00:52 +0100 Subject: [PATCH] Skip cuda files in the build (temporarily) for LLVM only build --- coreneuron/CMakeLists.txt | 2 ++ coreneuron/utils/memory_utils.cpp | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/coreneuron/CMakeLists.txt b/coreneuron/CMakeLists.txt index e0ba45bb1..c9af89553 100644 --- a/coreneuron/CMakeLists.txt +++ b/coreneuron/CMakeLists.txt @@ -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" diff --git a/coreneuron/utils/memory_utils.cpp b/coreneuron/utils/memory_utils.cpp index e066e1627..da0ef9455 100644 --- a/coreneuron/utils/memory_utils.cpp +++ b/coreneuron/utils/memory_utils.cpp @@ -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 }