Skip to content

OpenCL runtime not found #653

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
crtrott opened this issue Sep 18, 2019 · 2 comments
Closed

OpenCL runtime not found #653

crtrott opened this issue Sep 18, 2019 · 2 comments

Comments

@crtrott
Copy link
Contributor

crtrott commented Sep 18, 2019

Hi,

so I followed all the instructions for the X86 OpenCL runtime and it is not getting found. I also had to remove the nvidia.icd so it wouldn't pick that up.

LD_PRELOAD=/home/projects/x86-64/intel/opencl-intercept-layer/lib64/libOpenCL.so ./simple-sycl-app.exe 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
CLIntercept (64-bit) is loading...
CLintercept file location: /home/projects/x86-64/intel/opencl-intercept-layer/lib64/libOpenCL.so
CLIntercept URL: https://github.com/intel/opencl-intercept-layer
CLIntercept git description: v2.2.1-150-gbf87e59
CLIntercept git refspec: refs/heads/master
CLInterecpt git hash: bf87e59225b486ba8195c3b24888e59406bd95b4
CLIntercept optional features:
    cliloader(supported)
    cliprof(supported)
    kernel overrides(supported)
    ITT tracing(NOT supported)
    MDAPI(supported)
CLIntercept environment variable prefix: CLI_
CLIntercept config file: clintercept.conf
Read DLL name from user parameters: /opt/intel/oclcpuexp/x64/libOpenCL.so.1
Trying to load dispatch from: /opt/intel/oclcpuexp/x64/libOpenCL.so.1
Couldn't get exported function pointer to: clSetProgramReleaseCallback
Couldn't get exported function pointer to: clSetProgramSpecializationConstant
... success!
CallLogging is set to a non-default value!
Timer Started!
... loading complete.
>>>> clGetPlatformIDs
<<<< clGetPlatformIDs -> CL_PLATFORM_NOT_FOUND_KHR
The results are correct!
CLIntercept is shutting down...
... shutdown complete.
[crtrott@apollo raw]$ ls /opt/intel/oclcpuexp/x64/libOpenCL.so.1
/opt/intel/oclcpuexp/x64/libOpenCL.so.1
[crtrott@apollo raw]$ ls -l /opt/intel/oclcpuexp/x64/libOpenCL.so.1
lrwxrwxrwx 1 10697018 2625 16 Sep 17 08:27 /opt/intel/oclcpuexp/x64/libOpenCL.so.1 -> libOpenCL.so.2.0
[crtrott@apollo raw]$ cat /opt/
intel/    rh/       sandia/   Symantec/ 
[crtrott@apollo raw]$ cat /etc/OpenCL/vendors/intel_expcpu.icd 
/opt/intel/oclcpuexp/x64/libintelocl.so
[crtrott@apollo raw]$ ls -l /opt/intel/oclcpuexp/x64/libintelocl.so
lrwxrwxrwx 1 10697018 2625 25 Sep 17 08:27 /opt/intel/oclcpuexp/x64/libintelocl.so -> libintelocl.so.2019.8.7.0
[crtrott@apollo raw]$ ldd simple-sycl-app.exe 
	linux-vdso.so.1 =>  (0x00007fff931db000)
	libOpenCL.so.1 => /opt/intel/oclcpuexp/x64/libOpenCL.so.1 (0x00007f75bc3e0000)
	librt.so.1 => /lib64/librt.so.1 (0x0000003dcec00000)
	libstdc++.so.6 => /projects/sems/install/rhel6-x86_64/sems/compiler/gcc/7.3.0/base/lib64/libstdc++.so.6 (0x00007f75bc018000)
	libm.so.6 => /lib64/libm.so.6 (0x0000003dcdc00000)
	libgcc_s.so.1 => /projects/sems/install/rhel6-x86_64/sems/compiler/gcc/7.3.0/base/lib64/libgcc_s.so.1 (0x00007f75bbdff000)
	libsycl.so => /home/projects/x86-64/clang/intel/2019-09-17/lib/libsycl.so (0x00007f75bb9a3000)
	libc.so.6 => /lib64/libc.so.6 (0x0000003dcd800000)
	libdl.so.2 => /lib64/libdl.so.2 (0x0000003dce400000)
	libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003dce000000)
	/lib64/ld-linux-x86-64.so.2 (0x000055848d917000)

Same system as in #646

@alexbatashev
Copy link
Contributor

Can I please ask you to do a few things?

  1. Try running clinfo.
  2. Try pointing intercept layer to /opt/intel/oclcpuexp/x64/libintelocl.so
  3. Try setting export OCL_ICD_VENDORS=/etc/OpenCL/vendors (this must be a default option, but who knows)
  4. Try running your SYCL app like SYCL_PI_TRACE=1 simple-sycl-app.exe

@AlexeySachkov
Copy link
Contributor

I will close this one because of ~2 months of inactivity from the reporter.

@crtrott, feel free to re-open if the problem is still exists

vladimirlaz pushed a commit to vladimirlaz/llvm that referenced this issue Aug 10, 2020
This patch introduces SPV_INTEL_arbitrary_precision_fixed_point extension,
which adds operations for arbitrary precision fixed point numbers.

The ac_fixed datatype is represented as a pseudo type using OpTypeInt. Its
parameters are:
* W - total width of the datatype. It's encoded in the width of the OpTypeInt.
* I - determines the position of the decimal point.
* S - determines if this is a signed or an unsigned number.

Full specification  can be found in intel#1934

Co-authored-by: Viktoria Maksimova <viktoria.maksimova@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants