oneMKL icon indicating copy to clipboard operation
oneMKL copied to clipboard

When trying to use oneMKL with the portBLAS backend there is a check for Intel, AMD or Nvidia GPU.

Open al3x-jp opened this issue 1 year ago • 3 comments

Summary

When trying to use oneMKL with the portBLAS backend, the current code structure checks for an Intel, AMD or NVidia GPU, which if not found causes an unsupported error. It is understood that portBLAS could work on any GPU that supports OpenCL.

Version

HEAD of oneMKL Tree

Environment

Ubuntu 22.04 with PowerVR GPU

Steps to reproduce

Build oneMKL with "portBLAS" support specified and then execute the example GEMM test on a GPU that isn't Intel, AMD or Nvidia, but that supports SYCL OpenCL backend (e.g., a PowerVR GPU).

To build: cmake .. -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DENABLE_MKLGPU_BACKEND=False -DENABLE_MKLGPU_BACKEND=False -DENABLE_PORTBLAS_BACKEND=True -DENABLE_CUBLAS_BACKEND=False -DENABLE_ROCBLAS_BACKEND=False -DENABLE_NETLIB_BACKEND=False -DBUILD_FUNCTIONAL_TESTS=False -DBUILD_EXAMPLES=True -DENABLE_MKLCPU_BACKEND=False

To run: ONEAPI_DEVICE_SELECTOR=opencl:gpu SYCL_PI_TRACE=1 ./example_blas_gemm_usm

Observed behaviour

The BLAS GEMM example prints the following message when run on a PowerVR OpenCL Device: "oneMKL: PowerVR B-Series BXT-32-1024 is not supported"

Expected behaviour

It is expected that portBLAS could work on any GPU that supports the SYCL OpenCL backend.

al3x-jp avatar Jul 24 '24 08:07 al3x-jp