Skip to content

Commit 16d3d4b

Browse files
s-Nicknormallytangent
authored andcommitted
[BLAS][EXAMPLE] Enable RT example for portBLAS backend (#521)
1 parent c248bc2 commit 16d3d4b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

examples/blas/run_time_dispatching/level3/CMakeLists.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,19 @@ endif()
4040
if(ENABLE_ROCBLAS_BACKEND)
4141
list(APPEND DEVICE_FILTERS "hip:gpu")
4242
endif()
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

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

0 commit comments

Comments
 (0)