if((source MATCHES "_fp16" OR source MATCHES "_f16") AND NOT "fp16" IN_LIST DTYPES)
foreach(type IN LISTS DTYPES)
set(test 1)
if(type MATCHES "fp16")
endif()
set(type1 "_f16")
if((source MATCHES "_fp32" OR source MATCHES "_f32") AND NOT "fp32" IN_LIST DTYPES)
elseif(type MATCHES "fp32")
set(test 1)
set(type1 "_f32")
endif()
elseif(type MATCHES "fp8")
if((source MATCHES "_fp64" OR source MATCHES "_f64") AND NOT "fp64" IN_LIST DTYPES)
set(type1 "_f8")
set(test 1)
elseif(type MATCHES "bf16")
endif()
set(type1 "_b16")
if((source MATCHES "_fp8" OR source MATCHES "_f8") AND NOT "fp8" IN_LIST DTYPES)
elseif(type MATCHES "fp64")
set(test 1)
set(type1 "_f64")
endif()
elseif(type MATCHES "int8")
if((source MATCHES "_bf8" OR source MATCHES "_bf8") AND NOT "bf8" IN_LIST DTYPES)
set(type1 "_i8")
set(test 1)
endif()
endif()
if("${source}" MATCHES "${type}" OR "${source}" MATCHES "${type1}")
if((source MATCHES "_bf16" OR source MATCHES "_b16") AND NOT "bf16" IN_LIST DTYPES)
#if filename matches any selected type, exit type loop and do no exclude the file from the list
set(test 1)
set(test 0)
endif()
break()
if((source MATCHES "_int8" OR source MATCHES "_i8") AND NOT "int8" IN_LIST DTYPES)
elseif((source MATCHES "fp8" OR source MATCHES "fp32" OR source MATCHES "fp64" OR source MATCHES "bf16" OR source MATCHES "int8" OR source MATCHES "fp16" OR
set(test 1)
source MATCHES "_f8" OR source MATCHES "_f32" OR source MATCHES "_f64" OR source MATCHES "_i8" OR source MATCHES "_f16" OR source MATCHES "_b16") AND
endif()
NOT(source MATCHES type OR source MATCHES type1))
#if filename contains a type which doesn't match any selected type, mark it for removal
set(test 1)
endif()
endforeach()
if(test EQUAL 1)
if(test EQUAL 1)
message("removing example source file ${source} ")
message("removing example source file ${source} ")
if((source MATCHES "_fp16" OR source MATCHES "_f16") AND NOT "fp16" IN_LIST DTYPES)
foreach(type IN LISTS DTYPES)
set(test 1)
if(type MATCHES "fp16")
endif()
set(type1 "_f16")
if((source MATCHES "_fp32" OR source MATCHES "_f32") AND NOT "fp32" IN_LIST DTYPES)
elseif(type MATCHES "fp32")
set(test 1)
set(type1 "_f32")
endif()
elseif(type MATCHES "fp8")
if((source MATCHES "_fp64" OR source MATCHES "_f64") AND NOT "fp64" IN_LIST DTYPES)
set(type1 "_f8")
set(test 1)
elseif(type MATCHES "bf16")
endif()
set(type1 "_b16")
if((source MATCHES "_fp8" OR source MATCHES "_f8") AND NOT "fp8" IN_LIST DTYPES)
elseif(type MATCHES "fp64")
set(test 1)
set(type1 "_f64")
endif()
elseif(type MATCHES "int8")
if((source MATCHES "_bf8" OR source MATCHES "_bf8") AND NOT "bf8" IN_LIST DTYPES)
set(type1 "_i8")
set(test 1)
endif()
endif()
if("${source}" MATCHES "${type}" OR "${source}" MATCHES "${type1}")
if((source MATCHES "_bf16" OR source MATCHES "_b16") AND NOT "bf16" IN_LIST DTYPES)
#if filename matches any selected type, exit type loop and do no exclude the file from the list
set(test 1)
set(test 0)
endif()
break()
if((source MATCHES "_int8" OR source MATCHES "_i8") AND NOT "int8" IN_LIST DTYPES)
elseif((source MATCHES "fp8" OR source MATCHES "fp32" OR source MATCHES "fp64" OR source MATCHES "bf16" OR source MATCHES "int8" OR source MATCHES "fp16" OR
set(test 1)
source MATCHES "_f8" OR source MATCHES "_f32" OR source MATCHES "_f64" OR source MATCHES "_i8" OR source MATCHES "_f16" OR source MATCHES "_b16") AND
endif()
NOT(source MATCHES type OR source MATCHES type1))
#if filename contains a type which doesn't match any selected type, mark it for removal
if((source MATCHES "_fp16" OR source MATCHES "_f16") AND NOT "fp16" IN_LIST DTYPES)
foreach(type IN LISTS DTYPES)
set(test 1)
if(type MATCHES "fp16")
endif()
set(type1 "_f16")
if((source MATCHES "_fp32" OR source MATCHES "_f32") AND NOT "fp32" IN_LIST DTYPES)
elseif(type MATCHES "fp32")
set(test 1)
set(type1 "_f32")
endif()
elseif(type MATCHES "fp8")
if((source MATCHES "_fp64" OR source MATCHES "_f64") AND NOT "fp64" IN_LIST DTYPES)
set(type1 "_f8")
set(test 1)
elseif(type MATCHES "bf16")
endif()
set(type1 "_b16")
if((source MATCHES "_fp8" OR source MATCHES "_f8") AND NOT "fp8" IN_LIST DTYPES)
elseif(type MATCHES "fp64")
set(test 1)
set(type1 "_f64")
endif()
elseif(type MATCHES "int8")
if((source MATCHES "_bf8" OR source MATCHES "_bf8") AND NOT "bf8" IN_LIST DTYPES)
set(type1 "_i8")
set(test 1)
endif()
endif()
if("${source}" MATCHES "${type}" OR "${source}" MATCHES "${type1}")
if((source MATCHES "_bf16" OR source MATCHES "_b16") AND NOT "bf16" IN_LIST DTYPES)
#if filename matches any selected type, exit type loop and do no exclude the file from the list
set(test 1)
set(test 0)
endif()
break()
if((source MATCHES "_int8" OR source MATCHES "_i8") AND NOT "int8" IN_LIST DTYPES)
elseif((source MATCHES "fp8" OR source MATCHES "fp32" OR source MATCHES "fp64" OR source MATCHES "bf16" OR source MATCHES "int8" OR source MATCHES "fp16" OR
set(test 1)
source MATCHES "_f8" OR source MATCHES "_f32" OR source MATCHES "_f64" OR source MATCHES "_i8" OR source MATCHES "_f16" OR source MATCHES "_b16") AND
endif()
NOT(source MATCHES type OR source MATCHES type1))
#if filename contains a type which doesn't match any selected type, mark it for removal
if((source MATCHES "_fp16" OR source MATCHES "_f16") AND NOT "fp16" IN_LIST DTYPES)
foreach(type IN LISTS DTYPES)
set(test 1)
if(type MATCHES "fp16")
endif()
set(type1 "_f16")
if((source MATCHES "_fp32" OR source MATCHES "_f32") AND NOT "fp32" IN_LIST DTYPES)
elseif(type MATCHES "fp32")
set(test 1)
set(type1 "_f32")
endif()
elseif(type MATCHES "fp8")
if((source MATCHES "_fp64" OR source MATCHES "_f64") AND NOT "fp64" IN_LIST DTYPES)
set(type1 "_f8")
set(test 1)
elseif(type MATCHES "bf16")
endif()
set(type1 "_b16")
if((source MATCHES "_fp8" OR source MATCHES "_f8") AND NOT "fp8" IN_LIST DTYPES)
elseif(type MATCHES "fp64")
set(test 1)
set(type1 "_f64")
endif()
elseif(type MATCHES "int8")
if((source MATCHES "_bf8" OR source MATCHES "_bf8") AND NOT "bf8" IN_LIST DTYPES)
set(type1 "_i8")
set(test 1)
endif()
endif()
if("${source}" MATCHES "${type}" OR "${source}" MATCHES "${type1}")
if((source MATCHES "_bf16" OR source MATCHES "_b16") AND NOT "bf16" IN_LIST DTYPES)
#if filename matches any selected type, exit type loop and do no exclude the file from the list
set(test 1)
set(test 0)
endif()
break()
if((source MATCHES "_int8" OR source MATCHES "_i8") AND NOT "int8" IN_LIST DTYPES)
elseif((source MATCHES "fp8" OR source MATCHES "fp32" OR source MATCHES "fp64" OR source MATCHES "bf16" OR source MATCHES "int8" OR source MATCHES "fp16" OR
set(test 1)
source MATCHES "_f8" OR source MATCHES "_f32" OR source MATCHES "_f64" OR source MATCHES "_i8" OR source MATCHES "_f16" OR source MATCHES "_b16") AND
endif()
NOT(source MATCHES type OR source MATCHES type1))
#if filename contains a type which doesn't match any selected type, mark it for removal