add_custom_target(example_cgemm_xdl)

if(DTYPES MATCHES "bf16" OR NOT DEFINED DTYPES)
  add_example_executable(example_cgemm_xdl_bf16 cgemm_xdl_bf16.cpp)
  add_dependencies(example_cgemm_xdl example_cgemm_xdl_bf16)
endif()
if(DTYPES MATCHES "fp16" OR NOT DEFINED DTYPES)
  add_example_executable(example_cgemm_xdl_fp16 cgemm_xdl_fp16.cpp)
  add_dependencies(example_cgemm_xdl example_cgemm_xdl_fp16)
endif()
if(DTYPES MATCHES "fp32" OR NOT DEFINED DTYPES)
add_example_executable(example_cgemm_xdl_fp32 cgemm_xdl_fp32.cpp)
add_dependencies(example_cgemm_xdl example_cgemm_xdl_fp32)
endif()
if(DTYPES MATCHES "int8" OR NOT DEFINED DTYPES)
  add_example_executable(example_cgemm_xdl_int8 cgemm_xdl_int8.cpp)
  add_dependencies(example_cgemm_xdl example_cgemm_xdl_int8)
endif()
if(USE_BITINT_EXTENSION_INT4)
  add_example_executable(example_cgemm_xdl_int4 cgemm_xdl_int4.cpp)
  add_dependencies(example_cgemm_xdl example_cgemm_xdl_int4)
endif()
