This repository was archived by the owner on Mar 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +429
-0
lines changed
Expand file tree Collapse file tree 3 files changed +429
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ if(Boost_FOUND)
3131 add_subdirectory (unit/interleave_info)
3232 add_subdirectory (unit/alignment)
3333 add_subdirectory (unit/queueing)
34+ add_subdirectory (unit/solver)
3435 # lfp test uses nrnmpi_* wrappers but does not load the dynamic MPI library TODO: re-enable
3536 # after NEURON and CoreNEURON dynamic MPI are merged
3637 if (NOT CORENRN_ENABLE_MPI_DYNAMIC)
Original file line number Diff line number Diff line change 1+ # =============================================================================
2+ # Copyright (C) 2022 Blue Brain Project
3+ #
4+ # See top-level LICENSE file for details.
5+ # =============================================================================
6+
7+ include_directories (${CMAKE_SOURCE_DIR} /coreneuron ${Boost_INCLUDE_DIRS} )
8+ add_executable (test -solver test_solver.cpp)
9+ target_link_libraries (test -solver ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY} coreneuron
10+ ${corenrn_mech_library} )
11+ target_include_directories (test -solver SYSTEM
12+ PRIVATE ${CORENEURON_PROJECT_SOURCE_DIR} /external/CLI11/include )
13+
14+ # Tell CMake *not* to run an explicit device code linker step (which will produce errors); let the
15+ # NVHPC C++ compiler handle this implicitly.
16+ set_target_properties (test -solver PROPERTIES CUDA_RESOLVE_DEVICE_SYMBOLS OFF )
17+ target_compile_options (test -solver PRIVATE ${CORENEURON_BOOST_UNIT_TEST_COMPILE_FLAGS} )
18+ add_dependencies (test -solver nrniv-core)
19+ add_test (NAME test -solver COMMAND $<TARGET_FILE:test -solver>)
20+ cpp_cc_configure_sanitizers(TARGET test -solver TEST test -solver)
You can’t perform that action at this time.
0 commit comments