Comments (9)
My guess is that this is an overly strict check.
Although the check (now - after MacOS fix) should be checking the OpenCL
version string and from the text above it should see the OpenCL 1.1 and be
happy.
Of course Intel's OpenCL will not work in GPU mode. You should be able to make
it work in CPU mode using -Dcom.amd.aparapi.executionMode=CPU. The default is
of course to run in GPU mode.
Is it possible you were expecting GPU execution? Or were not requesting CPU
mode?
Gary
Original comment by [email protected]
on 28 Oct 2011 at 2:58
- Changed state: Accepted
from aparapi.
I was expecting CPU mode, but what I got is java threads mode instead.
I actually tried with a svn checkout, but the native binaries were the ones of
the latest release (2011-10-13)
Original comment by [email protected]
on 28 Oct 2011 at 3:16
from aparapi.
Did you request CPU mode using -Dcom.amd.aparapi.executionMode=CPU or by
setting Kernel.setExecutionMode(...) prior to first execution?
I should stress that there is no 'default to CPU' mode. The default is to
expect GPU and to drop back to JTP if GPU fails. I considered dropping back to
CPU if GPU is unavailable.
Original comment by [email protected]
on 28 Oct 2011 at 3:27
from aparapi.
Ah, brilliant, that works!
I was expecting it to enter in CPU mode automatically if GPU was not found.
It's quite a bit faster than JTP mode too. The mandel example reports:
- FPS 6 in JTP mode
- FPS 20 in CPU mode
It would be very useful if the code searched for the best possible mode
automatically, so that one can distribute the software and have it find its
best mode on the client machine without having to deal with system variable
settings (thought having a way to force a specific mode is still going to be
useful)
Original comment by [email protected]
on 28 Oct 2011 at 3:44
from aparapi.
Glad that worked. I have seen a few applications where CPU outperforms JTP, but
have also seen some where this is not the case. Obviously Mandel is a great
data-parallel example and so tends to demonstrate good parallel performance.
Maybe the approach would be so allow the user to set a preferred fallback
sequence for occasions where they know that CPU mode will help.
Something like.
setFallBackSequence(Kernel.ExecutionMode.GPU_CPU_JTP)
setFallBackSequence(Kernel.ExecutionMode.GPU_JTP)
setFallBackSequence(Kernel.ExecutionMode.CPU_JTP)
Gary
Original comment by [email protected]
on 28 Oct 2011 at 4:14
from aparapi.
Marking this as not a bug/defect. If anything it is an enhancement request to
allow a fallback mechanism which tries CPU mode before JTP.
Original comment by [email protected]
on 28 Oct 2011 at 4:15
- Changed state: WontFix
from aparapi.
The configurable fallback sequence seems interesting, should I open a
enhancement request for it?
Original comment by [email protected]
on 28 Oct 2011 at 4:20
from aparapi.
Sure. I only have phone access here ;) if you open it as an
enhancement request I will track it from there.
Thanks.
Gary
Original comment by [email protected]
on 28 Oct 2011 at 4:27
from aparapi.
The separate enhancement request allowing fallback from GPU to CPU and to allow
fallback requests/polices to be requested is covered in issue #16.
Will close this as a duplicate.
Original comment by [email protected]
on 10 Nov 2011 at 7:24
- Changed state: Duplicate
from aparapi.
Related Issues (20)
- 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)
- How Learn Aparapi and use it!Any pdf , tutorial and ... HOT 3
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.