Support building only selected types
@@ -14,6 +14,24 @@ foreach (GEMM_DEFINE ${GEMM_DEFINES})
endif ()
endforeach ()
+if (DEFINED BUILD_COMPLEX16 AND NOT DEFINED BUILD_DOUBLE)
+foreach (GEMM_DEFINE ${GEMM_DEFINES})
+ string(TOLOWER ${GEMM_DEFINE} GEMM_DEFINE_LC)
+ GenerateNamedObjects("gemm.c" "${GEMM_DEFINE}" "gemm_${GEMM_DEFINE_LC}" 0 "" "" false "DOUBLE")
+ if (USE_THREAD AND NOT USE_SIMPLE_THREADED_LEVEL3)
+ GenerateNamedObjects("gemm.c" "${GEMM_DEFINE};THREADED_LEVEL3" "gemm_thread_${GEMM_DEFINE_LC}" 0 "" "" false "DOUBLE")
+ endif()
+endforeach()
+endif()
+if (DEFINED BUILD_COMPLEX AND NOT DEFINED BUILD_SINGLE)
+foreach (GEMM_DEFINE ${GEMM_DEFINES})
+ string(TOLOWER ${GEMM_DEFINE} GEMM_DEFINE_LC)
+ GenerateNamedObjects("gemm.c" "${GEMM_DEFINE}" "gemm_${GEMM_DEFINE_LC}" 0 "" "" false "SINGLE")
+ if (USE_THREAD AND NOT USE_SIMPLE_THREADED_LEVEL3)
+ GenerateNamedObjects("gemm.c" "${GEMM_DEFINE};THREADED_LEVEL3" "gemm_thread_${GEMM_DEFINE_LC}" 0 "" "" false "SINGLE")
+ endif()
+endforeach()
+endif()
set(TRMM_TRSM_SOURCES
trmm_L.c
@@ -101,6 +119,23 @@ foreach (float_type ${FLOAT_TYPES})
endif ()
endforeach ()
+ if (DEFINED BUILD_COMPLEX16 AND NOT DEFINED BUILD_DOUBLE)
+ foreach (gemm_define ${GEMM_COMPLEX_DEFINES})
+ string(TOLOWER ${gemm_define} gemm_define_LC)
+ if (USE_THREAD AND NOT USE_SIMPLE_THREADED_LEVEL3)
+ GenerateNamedObjects("gemm.c" "${gemm_define};THREADED_LEVEL3" "gemm_thread_${gemm_define_LC}" false "" "" false "DOUBLE" )
+ endif()
+ endforeach()
+ endif ()
+ if (DEFINED BUILD_COMPLEX AND NOT DEFINED BUILD_SINGLE)
+ foreach (gemm_define ${GEMM_COMPLEX_DEFINES})
+ string(TOLOWER ${gemm_define} gemm_define_LC)
+ if (USE_THREAD AND NOT USE_SIMPLE_THREADED_LEVEL3)
+ GenerateNamedObjects("gemm.c" "${gemm_define};THREADED_LEVEL3" "gemm_thread_${gemm_define_LC}" false "" "" false "SINGLE" )
+ endif()
+ endforeach()
+ endif ()
+
# for gemm3m
if(USE_GEMM3M)
foreach (GEMM_DEFINE ${GEMM_DEFINES})
