|
Hello,
I am facing a jocl crash issue with clBuildProgram.
Important info : I am using RHEL6 64b and the latest nvidia driver for k20 (340.65)
When I build a kernel using jocl, the jvm crashes.
I have recompiled jocl to investigate where this comes from and I'm a bit stuck now so I turn to you guys.
it seems that the issue comes from the clBuildProgram function call in the JNI file.
Four interesting points :
1/ Building the same kernel with a plain old c program does not crash (same parameters passed to the driver)
2/ Building the same kernel with a plain old c program using dlopen and dlsym just like jocl does not crash either.
3/ The crash occurs only on 340.65, I have been able to downgrade to an older version (304.xx) and jocl works just fine.
4/ 340.65 works fine on windows
here is the stack before the crash :
#172 0x00007f10fdfca5c7 in NvCliCompileProgram () from /usr/lib64/libnvidia-compiler.so.340.65
#173 0x00007f11271c20ac in ?? () from /usr/lib64/libnvidia-opencl.so.1
#174 0x00007f11271b64c5 in ?? () from /usr/lib64/libnvidia-opencl.so.1
#175 0x00007f112c3bb8c9 in Java_com_jogamp_opencl_llb_impl_CLImpl_clBuildProgram0 ()
Any ideas on why this could happen ? Maybe it's a bug on the driver side, but if it's the case, I would like to be able to send them a reproduction case without jocl in the middle.
Thanks for your help, any ideas are welcome.
Bram
|