This thread is related to https://software.intel.com/en-us/forums/oneapi-data-parallel-c-compiler/topic/850410?language=en-us&https=1 and I wanted to write there, but post was locked.
My problem is that when running vector-add example on NVIDIA Tesla P100 example I get error:
Command I run:
$ SYCL_DEVICE_TYPE=GPU SYCL_DEVICE_WHITE_LIST="" SYCL_DEVICE_ALLOWLIST="" ./vector-add
Device: Tesla P100-PCIE-12GB
terminate called after throwing an instance of 'cl::sycl::runtime_error'
what(): OpenCL API failed. OpenCL API returns: -34 (CL_INVALID_CONTEXT) -34 (CL_INVALID_CONTEXT)
Does someone have any about that?
On CPU inteloneapi works just fine. Command I use to run on CPU:
$ SYCL_DEVICE_TYPE=CPU ./vector-add
Device: Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz
* My IntelOneApi version is beta04
Currently, Intel oneAPI basekit beta04 doesn't support Nvidia GPU's.
The link which you referred is Codeplay's distribution of oneAPI So you may need to install it separately and work on it.