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

Commit

Permalink
keep some optimisation of partial_piv_lu.cpp in debug builds
Browse files Browse the repository at this point in the history
e
  • Loading branch information
olupton committed Aug 26, 2022
1 parent 2857e2d commit 0e24755
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions coreneuron/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,14 @@ if(CORENRN_ENABLE_GPU)
# OpenACC/OpenMP annotations.
if(CORENRN_ENABLE_NMODL AND EXISTS ${CORENRN_MOD2CPP_INCLUDE}/partial_piv_lu/partial_piv_lu.cpp)
list(APPEND CORENEURON_CODE_FILES ${CORENRN_MOD2CPP_INCLUDE}/partial_piv_lu/partial_piv_lu.cpp)
if(CORENRN_ENABLE_GPU
AND CORENRN_HAVE_NVHPC_COMPILER
AND CMAKE_BUILD_TYPE STREQUAL "Debug")
# In this case OpenAccHelper.cmake passes -gpu=debug, which makes these Eigen functions
# extremely slow. Downgrade that to -gpu=lineinfo for this file.
set_source_files_properties(${CORENRN_MOD2CPP_INCLUDE}/partial_piv_lu/partial_piv_lu.cpp
PROPERTIES COMPILE_FLAGS "-gpu=lineinfo,nodebug -O1")
endif()
endif()
endif()

Expand Down

0 comments on commit 0e24755

Please sign in to comment.