File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
examples/blas/run_time_dispatching/level3 Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,19 @@ endif()
4040if (ENABLE_ROCBLAS_BACKEND)
4141 list (APPEND DEVICE_FILTERS "hip:gpu" )
4242endif ()
43+ if (ENABLE_PORTBLAS_BACKEND)
44+ if (PORTBLAS_TUNING_TARGET)
45+ if (PORTBLAS_TUNING_TARGET MATCHES "INTEL_CPU" )
46+ list (APPEND DEVICE_FILTERS "opencl:cpu" )
47+ elseif (PORTBLAS_TUNING_TARGET MATCHES "_GPU" )
48+ list (APPEND DEVICE_FILTERS "*:gpu" )
49+ endif ()
50+ else ()
51+ # portBLAS default sycl-target is spir64, testing runtime on both supported
52+ # devices.
53+ list (APPEND DEVICE_FILTERS "opencl:cpu;level_zero:gpu" )
54+ endif ()
55+ endif ()
4356
4457message (STATUS "ONEAPI_DEVICE_SELECTOR will be set to the following value(s): [${DEVICE_FILTERS} ] for run-time dispatching examples" )
4558
You can’t perform that action at this time.
0 commit comments