Skip to content

Commit

Permalink
[BLAS][EXAMPLE] Enable RT example for portBLAS backend (uxlfoundation…
Browse files Browse the repository at this point in the history
  • Loading branch information
s-Nick authored Jun 25, 2024
1 parent 222f0d6 commit a319ba0
Showing 1 changed file with 13 additions and 0 deletions.
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

0 comments on commit a319ba0

Please sign in to comment.