Open GoogleCodeExporter opened 9 years ago
I have a similar issue on my notebook with a Geforce GT 520MX
- Run Aparapi program on Windows 7 64bit
Aparapi-version: Aparapi_2014_04_29_Win64.zip r1675
from https://code.google.com/p/aparapi/source/browse/#svn%2Ftrunk%2FDownloads
Java Version: 1.8.0_25-b18
I get the following:
!!!!!!! clCreateContextFromType() failed device not available
Okt 27, 2014 9:30:53 PM com.amd.aparapi.internal.kernel.KernelRunner warnFallBac
kAndExecute
WARNUNG: Reverting to Java Thread Pool (JTP) for class instaero.Instaero$1: init
JNI failed to return a valid handle
Original comment by rennne...@gmail.com
on 28 Oct 2014 at 5:30
Do you get the same error with this build?
https://github.com/aparapi/aparapi/releases
We're migrating to Github, but this website has not yet been updated...
Original comment by ryan.lam...@gmail.com
on 29 Oct 2014 at 1:07
Yes, the issue is still there. With the Aparapi-1.0.0 from github
Original comment by rennne...@gmail.com
on 31 Oct 2014 at 8:43
Can you run the cltest test app which is in com.amd.aparapi.jni ?
You can build it with something like
$ cd com.amd.aparapi.jni
$ ant cltest
It is a poor mans' 'clinfo' but should tell us what your GPU device is reported
as. We are looking at the device type (GPU/CPU) and the OpenCL version (OpenCL
1.1, 1.2 or 2.0)
Also look at the code around #440 here
https://code.google.com/p/aparapi/source/browse/trunk/com.amd.aparapi.jni/src/cp
p/invoke/OpenCLJNI.cpp
This is where Aparapi is trying to detect compatible OpenCL platforms.
This is assuming of course that your code is correctly dynamically linking
against the OpenCL.so via the ICD.
Original comment by frost.g...@gmail.com
on 31 Oct 2014 at 9:22
I tryed that and had to change
<condition property="optional.amd64.subdir" value="" else="amd64\">
to
<condition property="optional.amd64.subdir" value="" else="x86_amd64\">
The "amd64" directory does not exist on my computer ..
I use: Visual Studio Express 2013
and tryed the 2.9 and 2.9.1 version of the AMD-SDK
but that does not seem to work because i got:
BUILD FAILED
C:\Aparapi\aparapi-master\com.amd.aparapi.jni\build.xml:583: exec returned: -107
3741515
from ant
but for: info the oclDeviceQuery.exe prints:
OpenCL SW Info:
CL_PLATFORM_NAME: NVIDIA CUDA
CL_PLATFORM_VERSION: OpenCL 1.1 CUDA 6.5.21
OpenCL SDK Revision: 7027912
Original comment by rennne...@gmail.com
on 3 Nov 2014 at 9:34
Ah, so that is the problem.
Aparapi is expecting the string to contain just "OpenCL 1.1" or "OpenCL 1.2"
it does not expect to find the 'Cuda....' stuff. It should be a simple change
to the code to change the strcmp to strncmp to test this.
Sadly I cannot make this change.
Gary
Original comment by gfr...@google.com
on 3 Nov 2014 at 9:55
If you are referring to the code around #440 here
https://code.google.com/p/aparapi/source/browse/trunk/com.amd.aparapi.jni/src/cp
p/invoke/OpenCLJNI.cpp
There is already strncmp in use.
Original comment by rennne...@gmail.com
on 4 Nov 2014 at 6:50
Original issue reported on code.google.com by
james.st...@gmail.com
on 17 Jun 2014 at 8:04