1 # Sources that should always be built
2 file(GLOB NONBONDED_SOURCES *.c nb_kernel_c/*.c)
4 if(GMX_CPU_ACCELERATION STREQUAL "SSE2" AND NOT GMX_DOUBLE)
5 file(GLOB NONBONDED_SSE2_SINGLE_SOURCES nb_kernel_sse2_single/*.c)
8 # For now we enable the (existing) SSE4.1 kernels for all higher accelerations
9 if(((GMX_CPU_ACCELERATION STREQUAL "SSE4.1") OR
10 (GMX_CPU_ACCELERATION STREQUAL "AVX_128_FMA") OR
11 (GMX_CPU_ACCELERATION STREQUAL "AVX_256")) AND NOT GMX_DOUBLE)
12 file(GLOB NONBONDED_SSE4_1_SINGLE_SOURCES nb_kernel_sse4_1_single/*.c)
15 # These sources will be used in the parent directory's CMakeLists.txt
16 set(NONBONDED_SOURCES ${NONBONDED_SOURCES} ${NONBONDED_SSE2_SINGLE_SOURCES} ${NONBONDED_SSE4_1_SINGLE_SOURCES} PARENT_SCOPE)