Comments (10)
Almost forgot, attached is a print out of what you get when you run clinfo.exe
Original comment by [email protected]
on 4 Apr 2012 at 4:48
Attachments:
from aparapi.
I had never run with this device. The problem is that the default range
created by Aparapi will try to suggest a local size (or group size) of 256 and
your hardware device will only allow a maximum of 128. You can see this in the
output from clinfo (thanks for including it)
If you are using the kernel.execute(int globalSize) such as...
int globalSize = somelarge power of two ;
myKernel.execute(globalSize);
Consider using a range which allows you to pick the group size rather than the
default.
Range range = Range.create(somelarge power of two, 128); // pick a group size
of 128
myKernel.execute(range);
What we really need (and I am toying with this in the extensions branch) is a
way to allocated a range based on the device we intend to use. At present the
default Range sizing is chosen based on newer GPU's.....
Try the above change.
For the second part of your question (eclipse) make sure that the you set the
java.library.path JVM arg in the run configuration to include the directory
containing the aparapi_x86.dll file.
So open the run configuration for the application you want to run. Look in the
'arguments' tab. You need to add something like
-Djava.library.path=c:\AparapiInstall
To the lower JVM arguments section
noting of course that aparapi_x86.dll is in dir c:\AparapiInstall for me ;) you
will need to set it to point to your installed dll.
Gary
Original comment by [email protected]
on 4 Apr 2012 at 7:48
from aparapi.
I just added a unit test WideInc to replicate/track this. I will tackle the
wide inc/dec code path first to see how hard this is.
Original comment by [email protected]
on 11 Apr 2012 at 1:53
- Changed state: Accepted
- Added labels: Priority-High
- Removed labels: Priority-Medium
from aparapi.
[deleted comment]
from aparapi.
Kinda the same thing with my Asus laptop with Core i7 and Radeon HD5730 :
C:\Users\User\Folder\aparapi-2012-02-15\aparapi-2012-02-15\samples\mandel>jav
a -Djava.library.path=../.. -Dcom.amd.aparapi.executionMode= -classpath ../..
/aparapi.jar;mandel.jar com.amd.aparapi.sample.mandel.Main2D
range= 2D(global:768x768 local:(derived)16x16)
6/05/2012 01:02:34 AM com.amd.aparapi.KernelRunner warnFallBackAndExecute
ADVERTENCIA: Reverting to Java Thread Pool (JTP) for class com.amd.aparapi.sampl
e.mandel.Main2D$MandelKernel: initJNI failed to return a valid handle
Execution mode=JTP
Original comment by [email protected]
on 6 May 2012 at 6:08
from aparapi.
Yuriha,
I think you have encountered issue #46
(http://code.google.com/p/aparapi/issues/detail?id=46) which is related to
OpenCL 1.2. I am planning to build a binary distribution today.
Original comment by [email protected]
on 6 May 2012 at 4:04
from aparapi.
I see
I'll check it out and post the results.
Thank you for your time !
Original comment by [email protected]
on 6 May 2012 at 7:01
from aparapi.
stored aparapi_x86_64.dll at :
C:\Program Files\Java\jdk1.6.0_23\jre\bin
and the new aparapi.jar at :
lib/ext/
had to recompile the samples with NetBeans and worked fine !
Original comment by [email protected]
on 7 May 2012 at 6:45
from aparapi.
Can this issue be closed?
Original comment by [email protected]
on 19 Nov 2012 at 8:12
from aparapi.
Original comment by [email protected]
on 22 Apr 2013 at 5:03
- Changed state: Fixed
from aparapi.
Related Issues (20)
- Invoking kernels with single boolean fields in kernel causes NoSuchFieldError in JNI
- Problem when running with NVIDIA GPUs HOT 8
- Generating OpenCL
- Patch for /trunk/samples/add/src/com/amd/aparapi/sample/add/Main.java
- fatal error when disposing a 2D float execution kernel HOT 2
- Failed to load aparapi native library
- 2D arrays management HOT 2
- FFT Extension example fails to run HOT 1
- Add support for Intel Xeon Phi
- Trouble running samples in lambda branch on Kaveri HOT 6
- Release in the downloads section is old and no guide on how to compile on Mac HOT 1
- High total processing/running time on GPU mode w/Aparapi HOT 2
- Aparapi can't find OpenCL HOT 21
- Mandel Works Fine With The GPU But, When I Run My Code From BlueJ It Doesn't Work HOT 1
- Can i Run Aparapi on "Nvidia Gpu" or "Intel Gpu"? HOT 4
- Missing Sync or Volatile with Aparapi HOT 2
- Dump modified Java bytecode HOT 4
- Please update the tutorial about HSA settings
- Adding Vector data type at Aparapi HOT 1
- OpenCL compile fails... sometimes? (w/ Processing)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aparapi.