Giter Club home page Giter Club logo

Comments (10)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 15, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 15, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 15, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 15, 2024
[deleted comment]

from aparapi.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 15, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 15, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 15, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 15, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 15, 2024
Can this issue be closed?

Original comment by [email protected] on 19 Nov 2012 at 8:12

from aparapi.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 15, 2024

Original comment by [email protected] on 22 Apr 2013 at 5:03

  • Changed state: Fixed

from aparapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.