HPCE / hpce-2018-cw3

1 stars 5 forks source link

How to: OpenCL on ubuntu with intel CPU #45

Open TheoFranquet opened 7 years ago

TheoFranquet commented 7 years ago

Install OpenCL library: sudo apt install ocl-icd-opencl-dev to get the code to compile

The following steps fixed: Exception from clGetPlatformIDs : Unknown -1001 for me when running test_opencl

Download intel-opencl-r5.0 (SRB5.0) Linux driver package from here

Follow install instructions Ubuntu 16.04.2 OS with vanilla 4.8 Kernel from this pdf(page 7)

m8pple commented 7 years ago

Thanks for those, I'll link this issue in from the main readme.

malharjajoo commented 7 years ago

I tried the above, and it allows us to compile and run the code in test_opencl.cpp. However, it causes a runtime exception if you have an intel (integrated) HD Graphics Card.

I got the following error on running the executable for the test_opencl file -

image

m8pple commented 7 years ago

Possibly #53 helps? Not sure, as I don't have a linux machine with Intel graphics.

JunShern commented 7 years ago

@malharjajoo Did you get this resolved?