gmx_add_libgromacs_sources(
cpuinfo.cpp
detecthardware.cpp
+ device_management_common.cpp
hardwaretopology.cpp
printhardware.cpp
identifyavx512fmaunits.cpp
)
+if(GMX_GPU_OPENCL)
+ gmx_add_libgromacs_sources(
+ device_management_ocl.cpp
+ )
+elseif(GMX_GPU_CUDA)
+ gmx_add_libgromacs_sources(
+ device_management.cu
+ )
+else()
+ gmx_add_libgromacs_sources(
+ device_management.cpp
+ )
+endif()
+
if (BUILD_TESTING)
add_subdirectory(tests)
endif()