OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1663 Discussions

Incompatibility between OpenJDK and Intel OpenCL SDK for CPUs on Linux

Tobias_P_
Beginner
237 Views

I have a Java/Scala application where several threads map and unmap (disjunct) OpenCL buffers at the same time. With OpenJDK and the Intel OpenCL implementation for CPUs it sometimes crashes on Linux (did not test on Windows). The following jar replicates that:

https://bulsa.faui2k11.de/intel.fail-all.jar

If executed as 'java -cp intel.fail-all.jar OpenCL' it crashes nearly always. The problem goes away when I use another OpenCL implementation (tested Intel/AMD/Nvidia GPU and AMD CPU) or another JVM (tested IBM J9).

0 Kudos
2 Replies
Jeffrey_M_Intel1
Employee
237 Views

Sorry for the delayed reply.  For now just want you to know we have received your bug report and are 

starting to investigate.  A few clarifications could help speed up the investigation:

Which Linux are you using?
What processor are you running on?
Which package of Intel OpenCL is installed?
Also, IBM JVM v9 is still in beta.  Is it mission critical for you to have v9 or could you move 

forward with another JVM such as v8? 

Tobias_P_
Beginner
237 Views

This is very much non critical for me, as I only intended to use CPU OpenCL for a rough baseline (against GPUs) and ended up using the AMD implementation instead.

I tested this on a recent Fedora and Debian Linux, using a Sandy Bridge and an Ivy Bridge CPU.

I tested this on two Java jres, the IBM one was working flawlessly, I encountered crashes with the OpenJDK 8 jre.

Reply