Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions examples/blas/run_time_dispatching/level3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,19 @@ endif()
if(ENABLE_ROCBLAS_BACKEND)
list(APPEND DEVICE_FILTERS "hip:gpu")
endif()
if(ENABLE_PORTBLAS_BACKEND)
if(PORTBLAS_TUNING_TARGET)
if(PORTBLAS_TUNING_TARGET MATCHES "INTEL_CPU")
list(APPEND DEVICE_FILTERS "opencl:cpu")
elseif(PORTBLAS_TUNING_TARGET MATCHES "_GPU")
list(APPEND DEVICE_FILTERS "*:gpu")
endif()
else()
# portBLAS default sycl-target is spir64, testing runtime on both supported
# devices.
list(APPEND DEVICE_FILTERS "opencl:cpu;level_zero:gpu")
endif()
endif()

message(STATUS "ONEAPI_DEVICE_SELECTOR will be set to the following value(s): [${DEVICE_FILTERS}] for run-time dispatching examples")

Expand Down