Aparapi: Problems using my own compiled class files

Discussion created by bennC32 on Feb 19, 2011
Latest reply on Feb 23, 2011 by bennC32
Can't use my own compiled class files with Aparapi

I'm new to Aparapi and I having some trouble running my own compiled samples.

I can't seem to run the Aparapi samples in GPU execution mode using java class files I generate.  The samples (e.g, mandel) work fine in JTP mode using my class files, and the work fine in both JTP  and GPU mode if I use the distributed class files.  The files compile cleanly, but when I try to run them in GPU mode I get the following:


C32% java -Dcom.amd.aparapi.executionMode=GPU com/amd/aparapi/sample/mandel/Main
com.amd.aparapi.classtools.ClassParseException: java.lang.NullPointerException
    at com.amd.aparapi.classtools.MethodModel.<init>(
    at com.amd.aparapi.classtools.ClassModel.getMethodModel(
    at com.amd.aparapi.classtools.ClassModel.getEntrypoint(
    at com.amd.aparapi.classtools.ClassModel.getEntrypoint(
    at com.amd.aparapi.KernelRunner.execute(
    at com.amd.aparapi.Kernel.execute(
    at com.amd.aparapi.sample.mandel.Main.main(
Caused by: java.lang.NullPointerException
    at com.amd.aparapi.classtools.MethodModel.<init>(
    ... 6 more
Execution mode=JTP
FPS = 10


Any hints or suggestions would be appreciated.

For backgoround, I have just installed the latest (V2.3) APP SDK and the examples provided with that seem to work fine.  I'm using java version "1.6.0_24" on Ubuntu 10.04 64-bit.