I tried several OpenCL sample programs and none of them found the GPU on my Joule module. I am running an Ubuntu Linux distribution and I installed the Intel SDK which I use to compile those samples. They all find the CPU but not the GPU. This is just the result of one of them (I got it from a GitHub post about installing the OpenCL SDK for Linux: https://gist.github.com/rmcgibbo/6314452 https://gist.github.com/rmcgibbo/6314452) but they all gave me the same output (only one device, the CPU).
1 OpenCL Platforms found
CL_PLATFORM_NAME: Experimental OpenCL 2.1 CPU Only Platform
CL_PLATFORM_VERSION: OpenCL 2.1 LINUX
OpenCL Device Info:
1 devices found supporting OpenCL on: Experimental OpenCL 2.1 CPU Only Platform
Device Intel(R) Atom(TM) Processor T5700 @ 1.70GHz
CL_DEVICE_NAME: Intel(R) Atom(TM) Processor T5700 @ 1.70GHz
CL_DEVICE_VENDOR: Intel(R) Corporation
CL_DEVICE_MAX_WORK_ITEM_SIZES: 8192 / 8192 / 8192
CL_DEVICE_MAX_CLOCK_FREQUENCY: 1700 MHz
CL_DEVICE_MAX_MEM_ALLOC_SIZE: 958 MByte
CL_DEVICE_GLOBAL_MEM_SIZE: 3833 MByte
CL_DEVICE_LOCAL_MEM_SIZE: 32 KByte
CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE: 128 KByte
CL_DEVICE_IMAGE 2D_MAX_WIDTH 16384
CL_DEVICE_PREFERRED_VECTOR_WIDTH_ CHAR 1, SHORT 1, INT 1, FLOAT 1, DOUBLE 1
clDeviceQuery, Platform Name = Experimental OpenCL 2.1 CPU Only Platform, Platform Version = OpenCL 2.1 LINUX, NumDevs = 1, Device = Intel(R) Atom(TM) Processor T5700 @ 1.70GHz
Local Time/Date = 09:12:08, 11/15/2016
CPU Name: Intel(R) Atom(TM) Processor T5700 @ 1.70GHz
# of CPU processors: 4
Linux version 4.4.0-47-generic (buildd@lcy01-03) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.2) ) # 68-Ubuntu SMP Wed Oct 26 19:39:52 UTC 2016
Why did it not find the GPU? Thanks a lot!
Thanks for your interest in the Intel Joule Platform.
It is strange that is not detecting the GPU of the Joule. Let me do some tests and I will get back to you as soon as I have some useful information.
Have a nice day.
Thanks a lot for your quick reply.
I am having a look at the resulsts I posted here and the first line indicates something about an " OpenCL 2.1 CPU only platform" so I wonder if the problem is that the SDK I downloaded (which is the one available for Ubuntu on the downloads centre and its name is intel_sdk_for_opencl_2016_ubuntu_18.104.22.1684_x64.tgz) does not support GPUs. If so, how could I solve that problem? I might need an older version that supports GPUs... but I am just wondering if that might be the actual problem.
I try to install OpenCL using the guide you provided (https://gist.github.com/rmcgibbo/6314452 Installing Intel CPU OpenCL on Ubuntu 12.04 · GitHub ). Unfortunately I'm getting errors due to the clDeviceQuery.cpp, I think it is because I have Ubuntu 14.04 and not 12.04. So I have a couple of questions:
1) Which version of Ubuntu are you using?
2) Did you do something else besides the steps indicated in the guide?
I will be waiting for your reply, have a nice day.
I tried to install the Intel SDK following the steps from that guide but as I did not know the exact version of OpenCL I have (I guess it is written somewhere but I do not know where, the file name does not mach with a possible OpenCL version, does it?), I did not achieve it so I looked for other ways to install it. In the end it was much easier: there is a file provided to install everything in the same package: install.sh. I just runned it and everything got properly installed.
By the way, I am running Ubuntu 16.04 LTS on the Joule module I mentioned before (the 570x version).
After investigating I learned that the Ubuntu image is out of the scope of our support. I know this is not the answer you were expecting, but maybe this is the reason why is not detecting the GPU in your Joule. Nevertheless I encourage you to reach the Ubuntu community (https://developer.ubuntu.com/en/snappy/start/intel-joule/ Intel Joule | Ubuntu developer portal ) they might have a suggestion in order to fix your issue.
Looks like you got it to recognize OpenCL, great! Could you specify which file you downloaded which contained `install.sh`? Was it http://software.intel.com/en-us/vcsource/tools/opencl-sdk-xe Intel® SDK for OpenCL™ Applications | Intel® Software ? And were there any other steps you followed, e.g. the steps in the guide, or was it just using `install.sh` and then everything automatically self-configured?
What kind of OS do you support for Intel Joule? Because there is Ubuntu image in the list of supported OS on the main page of Intel Joule.
https://software.intel.com/en-us/iot/hardware/joule The Intel® Joule™ Compute Module | Intel® Software
Also Javiwolf did you resolve the problem?
In this page it states that Ubuntu is available for the Intel Joule, the scooped of our support is limited to the Ostro image. If you have any issues with Ubuntu I will encourage you to contact them on their website: https://developer.ubuntu.com/en/community/ https://developer.ubuntu.com/en/community/ .
Have a nice day!