Loading...
Logo
Processing Forum
Hello

I've uploaded  two demos using aparapi with processing. 


Conways 'Game of Life' at HD running at 60 fps.

GrayScott RD model from toxiclibs running at 60fps with 1024x512

I hope enjoy this library like me :)


Blog entry with downloadable file: http://edumo.net/wp/gray-scott-conways-game-of-life-aparapi-processing-org/ (sorry, are in spanish :) 

Replies(8)

great, thanks for posting this. I added the latest native libs from the aparapi site for osx and linux, and I can get the  examples to work on all platforms. Although I see some issues: Life shows a "duplicated output" on OSX (see image below), and GrayScott is giving crashes on Linux and Windows (this is using latest revision from Processing repo):

java.lang.NullPointerException
at processing.mode.java.runner.Runner.findException(Runner.java:706)
at processing.mode.java.runner.Runner.reportException(Runner.java:651)
at processing.mode.java.runner.Runner.exception(Runner.java:594)
at processing.mode.java.runner.EventThread.exceptionEvent(EventThread.java:367)
at processing.mode.java.runner.EventThread.handleEvent(EventThread.java:255)
at processing.mode.java.runner.EventThread.run(EventThread.java:89)
Exception in thread "Animation Thread" java.lang.IllegalArgumentException: java.lang.ClassCastException@4532be10
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at processing.core.PApplet$RegisteredMethods.handle(PApplet.java:1083)
at processing.core.PApplet.handleMouseEvent(PApplet.java:2531)


Hello Andres,

thanks for the feedback, first I've updated the native libs in git.

I've downloaded from svn the latest processing version and build the core.jar with ant, but I Can´t reproduce de error. With 2.0b6 everything works fine in my laptop.

With my old linux (ubuntu 10.10) both examples crash.

I've not OSX for test, but I report this errors to aparapi forum.

Thanks for your awesome efforts with 2.0
and ...

can I add some parameters at compile in the processing IDE??

No, I mean when compile a sketch from the processing IDE. For example in this case, aparapi likes to add a param to preserve the variable names in bytecode. For this, maybe could be usefull to add the posiblity to set parameters when compile from Processing IDE . How do you look it?


Hello Edumo,

Wanted to try the impressive aparapi for processing, then i installed last AMD APP SDK and grabbed aparapiP5 from your github but still can,t run examples correctly, i got the following messages:

 - Life:
range = global:1049088 local:256
Execution mode = GPU
1 févr. 2013 11:01:05 com.amd.aparapi.MethodModel init
ATTENTION: Method run()V does not contain a LocalVariableTable entry (source not compiled with -g) aparapi will attempt to create a synthetic table based on bytecode. This is experimental!!
1 févr. 2013 11:01:10 com.amd.aparapi.KernelRunner executeOpenCL
ATTENTION: ### CL exec seems to have failed. Trying to revert to Java ###
!!!!!!! clEnqueueNDRangeKernel() failed invalid work item size
after clEnqueueNDRangeKernel, globalSize[0] = 1049088, localSize[0] = 256

- GrayScott:
range = global:524288 local:256
Execution mode = GPU
ControlP5 1.5.2 infos, comments, questions at http://www.sojamo.de/libraries/controlP5
1 févr. 2013 11:06:47 com.amd.aparapi.MethodModel init
ATTENTION: Method run()V does not contain a LocalVariableTable entry (source not compiled with -g) aparapi will attempt to create a synthetic table based on bytecode. This is experimental!!
1 févr. 2013 11:06:47 com.amd.aparapi.MethodModel init
ATTENTION: Method getFCoeffAt(II)F does not contain a LocalVariableTable entry (source not compiled with -g) aparapi will attempt to create a synthetic table based on bytecode. This is experimental!!
1 févr. 2013 11:06:47 com.amd.aparapi.MethodModel init
ATTENTION: Method getKCoeffAt(II)F does not contain a LocalVariableTable entry (source not compiled with -g) aparapi will attempt to create a synthetic table based on bytecode. This is experimental!!
1 févr. 2013 11:06:48 com.amd.aparapi.KernelRunner executeOpenCL
ATTENTION: ### CL exec seems to have failed. Trying to revert to Java ###
!!!!!!! clEnqueueNDRangeKernel() failed invalid work item size
after clEnqueueNDRangeKernel, globalSize[0] = 524288, localSize[0] = 256

Run on Windows7, Processing2b07, ATI Radeon HD5470

What does the "source not compiled with -g" message mean?
Could you help me having this working?

Thanks,


Makio135
http://makio135.com/
Hello Makio135

this response is making me crazy with the forum, I lost the reply 2 times, aagghhhhh :(

I think the error is in the groupSize for execution, maybe your card doesn´t support 256,

you can see this value for your card with the method getGroupSize, see the aparapi javadoc

regards

Eduardo Moriana
http://edumo.net
Hello Edumo,
Thanks, you were right, limiting size to 128 made it work for Life exemple but for GrayScott, only ControlP5 and frameRate are displaying over a white sketch.

Makio135
http://makio135.com/