Skip to content

[SYCL] POCL fails with OpenCL API returns: -34 (CL_INVALID_CONTEXT) -34 #2323

Closed
@jeffhammond

Description

@jeffhammond

Is POCL supported? Do you know why Level Zero doesn't support the CPU device on an ARM platform? What is the recommended approach to debugging this?

ubuntu@ubuntu:~/PRK/Cxx11$ SYCL_BE=PI_OPENCL ./nstream-sycl-usm 10 1000000
Parallel Research Kernels version 2020
C++11/SYCL STREAM triad: A = B + scalar * C
Number of iterations = 10
Vector length        = 1000000
Offset               = 0
SYCL Device:   SYCL host device
SYCL Platform: SYCL host platform
Solution validates
32B Rate (MB/s): 2187.72 Avg time (s): 0.00731354
Solution validates
64B Rate (MB/s): 2498.54 Avg time (s): 0.0128075
SYCL Device:   pthread-cortex-a72
SYCL Platform: Portable Computing Language
OpenCL API failed. OpenCL API returns: -34 (CL_INVALID_CONTEXT) -34 (CL_INVALID_CONTEXT)
OpenCL API failed. OpenCL API returns: -34 (CL_INVALID_CONTEXT) -34 (CL_INVALID_CONTEXT) -34 (CL_INVALID_CONTEXT)
No device of requested type available. -1 (CL_DEVICE_NOT_FOUND)
ubuntu@ubuntu:~/PRK/Cxx11$ SYCL_BE=PI_LEVEL0 ./nstream-sycl-usm 10 1000000
Parallel Research Kernels version 2020
C++11/SYCL STREAM triad: A = B + scalar * C
Number of iterations = 10
Vector length        = 1000000
Offset               = 0
SYCL Device:   SYCL host device
SYCL Platform: SYCL host platform
Solution validates
32B Rate (MB/s): 1962.54 Avg time (s): 0.0081527
Solution validates
64B Rate (MB/s): 2397.35 Avg time (s): 0.0133481
No device of requested type available. -1 (CL_DEVICE_NOT_FOUND)
No device of requested type available. -1 (CL_DEVICE_NOT_FOUND)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions