CMakeLists.txt 1.4 KB
Newer Older
1
2
3
4
list(APPEND gpu_list gfx908 gfx90a gfx940 gfx941 gfx942)
set(target 0)
foreach(gpu IN LISTS GPU_TARGETS)
 if(gpu IN_LIST gpu_list AND target EQUAL 0)
5
6
7
8
9
10
11
12
13
14
15
16
    if(DTYPES MATCHES "fp32" OR NOT DEFINED DTYPES)
      add_example_executable(example_convnd_fwd_xdl_fp32 convnd_fwd_xdl_fp32.cpp)
    endif()
    if(DTYPES MATCHES "fp16" OR NOT DEFINED DTYPES)
      add_example_executable(example_convnd_fwd_xdl_fp16 convnd_fwd_xdl_fp16.cpp)
    endif()
    if(DTYPES MATCHES "bf16" OR NOT DEFINED DTYPES)
      add_example_executable(example_convnd_fwd_xdl_bf16 convnd_fwd_xdl_bf16.cpp)
    endif()
    if(DTYPES MATCHES "int8" OR NOT DEFINED DTYPES)
      add_example_executable(example_convnd_fwd_xdl_int8 convnd_fwd_xdl_int8.cpp)
    endif()
17
    # FIXME: re-enable this exampe as test when SWDEV-335738 is fixed
18
19
20
    if(DTYPES MATCHES "fp64" OR NOT DEFINED DTYPES)
      add_example_executable_no_testing(example_convnd_fwd_xdl_fp64 convnd_fwd_xdl_fp64.cpp)
    endif()
21
22
23
24
   set(target 1)
 endif()
endforeach()

25
26
27
28
29
30
31
32
33
34
35
if(DL_KERNELS)
  if(DTYPES MATCHES "fp16" OR NOT DEFINED DTYPES)
    add_example_executable(example_convnd_fwd_dl_fp16 convnd_fwd_dl_fp16.cpp)
  endif()
  if(DTYPES MATCHES "fp32" OR NOT DEFINED DTYPES)
    add_example_executable(example_convnd_fwd_dl_fp32 convnd_fwd_dl_fp32.cpp)
  endif()
  if(DTYPES MATCHES "int8" OR NOT DEFINED DTYPES)
    add_example_executable(example_convnd_fwd_dl_int8 convnd_fwd_dl_int8.cpp)
  endif()
endif()