Login  Register

Re: ATI Stream SDK

Posted by Siassei on Nov 09, 2010; 11:00pm
URL: https://forum.jogamp.org/ATI-Stream-SDK-tp1872773p1872846.html

Examples from ATI in C running well.

Edit: I think, its an error that occurs from jocl. I have an build-server release for linux-86_64.

If I download the source code from mbiens or s... git repository. I can build gluegen and jogl. But with jocl I become a lot of build errors. :-(

Example: Error log with sgothel repository

[WARNING com.jogamp.gluegen.JavaEmitter]: skipping emission of unnamed struct "struct _cl_mem"
[WARNING com.jogamp.gluegen.JavaEmitter]: skipping emission of unnamed struct "struct _cl_mem"
[WARNING com.jogamp.gluegen.JavaEmitter]: skipping emission of unnamed struct "struct _cl_command_queue"
[WARNING com.jogamp.gluegen.JavaEmitter]: skipping emission of unnamed struct "struct _cl_command_queue"
[WARNING com.jogamp.gluegen.JavaEmitter]: skipping emission of unnamed struct "struct _cl_command_queue"
[WARNING com.jogamp.gluegen.CMethodBindingEmitter]: No capacity specified for java.nio.Buffer return value for function "dispatch_clGetExtensionFunctionAddressImpl" assuming size of equivalent C return type (sizeof(void *)): java.nio.ByteBuffer dispatch_clGetExtensionFunctionAddressImpl(java.lang.String func_name)
 - - - JOCL binding files generated - - -
Compiling 48 source files to /home/siassei/Projects/Private/jogamp/jocl/build/classes
/home/siassei/Projects/Private/jogamp/jocl/gensrc/java/com/jogamp/opencl/CL.java:726: nanf(java.nio.ByteBuffer) is already defined in com.jogamp.opencl.CL
  public float nanf(ByteBuffer arg0);
/home/siassei/Projects/Private/jogamp/jocl/gensrc/java/com/jogamp/opencl/CL.java:729: nanf(byte[],int) is already defined in com.jogamp.opencl.CL
  public float nanf(byte[] arg0, int arg0_offset);
/home/siassei/Projects/Private/jogamp/jocl/src/com/jogamp/opencl/InternalBufferUtil.java:5: warning: sun.misc.Unsafe is Sun proprietary API and may be removed in a future release
import sun.misc.Unsafe;
/home/siassei/Projects/Private/jogamp/jocl/src/com/jogamp/opencl/InternalBufferUtil.java:14: warning: sun.misc.Unsafe is Sun proprietary API and may be removed in a future release
    private static Unsafe unsafe;
/home/siassei/Projects/Private/jogamp/jocl/gensrc/java/com/jogamp/opencl/impl/CLAbstractImpl.java:1714: nanf(java.nio.ByteBuffer) is already defined in com.jogamp.opencl.impl.CLAbstractImpl
  public float nanf(ByteBuffer arg0)  {
/home/siassei/Projects/Private/jogamp/jocl/gensrc/java/com/jogamp/opencl/impl/CLAbstractImpl.java:1725: dispatch_nanf1(java.lang.Object,int,boolean,long) is already defined in com.jogamp.opencl.impl.CLAbstractImpl
  private native float dispatch_nanf1(Object arg0, int arg0_byte_offset, boolean arg0_is_direct, long procAddress);
/home/siassei/Projects/Private/jogamp/jocl/gensrc/java/com/jogamp/opencl/impl/CLAbstractImpl.java:1728: nanf(byte[],int) is already defined in com.jogamp.opencl.impl.CLAbstractImpl
  public float nanf(byte[] arg0, int arg0_offset)  {
/home/siassei/Projects/Private/jogamp/jocl/src/com/jogamp/opencl/CLBuffer.java:77: warning: [unchecked] unchecked cast
found   : java.nio.Buffer
required: B
            slice = (B)Buffers.slice(buffer, offset, size);
/home/siassei/Projects/Private/jogamp/jocl/src/com/jogamp/opencl/CLBuffer.java:118: warning: [unchecked] unchecked conversion
found   : java.util.List
required: java.util.List<com.jogamp.opencl.CLSubBuffer<B>>
            return Collections.EMPTY_LIST;
/home/siassei/Projects/Private/jogamp/jocl/src/com/jogamp/opencl/InternalBufferUtil.java:20: warning: sun.misc.Unsafe is Sun proprietary API and may be removed in a future release
            Field[] fields = Unsafe.class.getDeclaredFields();
/home/siassei/Projects/Private/jogamp/jocl/src/com/jogamp/opencl/InternalBufferUtil.java:24: warning: sun.misc.Unsafe is Sun proprietary API and may be removed in a future release
                    unsafe = (Unsafe)fields[i].get(Unsafe.class);
/home/siassei/Projects/Private/jogamp/jocl/src/com/jogamp/opencl/InternalBufferUtil.java:24: warning: sun.misc.Unsafe is Sun proprietary API and may be removed in a future release
                    unsafe = (Unsafe)fields[i].get(Unsafe.class);
/home/siassei/Projects/Private/jogamp/jocl/src/com/jogamp/opencl/gl/CLGLContext.java:142: cannot find symbol
symbol  : method getNativeWindow()
location: class com.jogamp.opengl.impl.GLDrawableImpl
            long displayHandle = ctxImpl.getDrawableImpl().getNativeWindow().getDisplayHandle();
/home/siassei/Projects/Private/jogamp/jocl/src/com/jogamp/opencl/gl/CLGLContext.java:152: cannot find symbol
symbol  : method getNativeWindow()
location: class com.jogamp.opengl.impl.GLDrawableImpl
            long surfaceHandle = ctxImpl.getDrawableImpl().getNativeWindow().getSurfaceHandle();
/home/siassei/Projects/Private/jogamp/jocl/src/com/jogamp/opencl/gl/CLGLContext.java:172: cannot find symbol
symbol  : method getNativeWindow()
location: class com.jogamp.opengl.impl.GLDrawableImpl
            long displayHandle = ctxImpl.getDrawableImpl().getNativeWindow().getDisplayHandle();
8 errors
7 warnings
/home/siassei/Projects/Private/jogamp/jocl/nbproject/build-impl.xml:442: The following error occurred while executing this line:
/home/siassei/Projects/Private/jogamp/jocl/nbproject/build-impl.xml:228: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 4 seconds)