Summary: | IllegalArgumentException in jocl-demos julia3D | ||
---|---|---|---|
Product: | [JogAmp] Jocl | Reporter: | Wade Walker <wwalker3> |
Component: | opencl | Assignee: | Wade Walker <wwalker3> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | sgothel |
Priority: | --- | ||
Version: | 1 | ||
Hardware: | All | ||
OS: | all | ||
Type: | --- | SCM Refs: |
e935256bf1ad44ceb2d9e3e63810f8d5017733be
|
Workaround: | --- |
Description
Wade Walker
2014-02-01 23:27:43 CET
Patrick: I know this is two years old, but there were no replies, and in case someone else stumbles across this thread, RenderingConfig32.java, RenderingConfig64.java, Vec32.java, and Vec64.java all seem to define their structures incorrectly. Perhaps the way they are supposed to be defined changed. To fix it, replace each occurrence of setIntAt(x, val) with setIntAt(x*4, val) (e.g. setIntAt(1, val) -> setIntAt(4, val)) Do the same thing with getIntAt(x), getFloatAt(x), setFloatAt(x, val), setFloatsAt(x, val), and getFloatsAt(x). Hope this helps. +++ We need to generate said classes w/ our StructAccessor either via explicit rules or the annotation - see GlueGen. While doing so - it would be great to have jocl-demos ant build files to be replaced as well. I plan to take a look at this once I finish fixing the JOCL JUnit tests. Done. Also fixed RadixSort on OS X, though it still doesn't work right on Windows (at least not on my box). |