File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
src/xc_integrator/local_work_driver/host/obara_saika Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,16 @@ set( GAUXC_OBARA_SAIKA_HOST_SRC
2929 src/obara_saika_integrals.cxx
3030 src/chebyshev_boys_computation.cxx
3131)
32+
33+ # This is required for compilation with NVHPC as it crashes with the O3 optimization flag
34+ if (DEFINED GAUXC_OBARA_SAIKA_COMPILE_OPTIMIZATION_OPTIONS)
35+ foreach (flag "[\\ /\\ -]O3" "[\\ /\\ -]Ofast" "[\\ /\\ -]fast" )
36+ string (REGEX REPLACE ${flag} ${GAUXC_OBARA_SAIKA_COMPILE_OPTIMIZATION_OPTIONS} CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} " )
37+ endforeach ()
38+ message ("Setting Obara-Saika CMAKE_CXX_FLAGS_RELEASE to: ${CMAKE_CXX_FLAGS_RELEASE} " )
39+ endif ()
40+
41+
3242target_sources ( gauxc PRIVATE ${GAUXC_OBARA_SAIKA_HOST_SRC} )
3343target_include_directories ( gauxc PUBLIC
3444 $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR} /include >
You can’t perform that action at this time.
0 commit comments