diff options
author | Michael Bien <[email protected]> | 2010-01-22 18:02:35 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-01-22 18:02:35 +0100 |
commit | 9ca000faa6aea6771ff5cf209846ef7fb9ff227a (patch) | |
tree | 9c4494df5b3fd688a993c4e1672934950cb8919d /resources/clImplCustomCode.java | |
parent | 468928edc68896718f0a27b47d59ddad2c892967 (diff) |
dynamic dispatch via CLProcAddressTable for OpenCL extensions.
made CLProgram failsafe, updated tests.
Diffstat (limited to 'resources/clImplCustomCode.java')
-rw-r--r-- | resources/clImplCustomCode.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/clImplCustomCode.java b/resources/clImplCustomCode.java index c0c8365b..0a42cc12 100644 --- a/resources/clImplCustomCode.java +++ b/resources/clImplCustomCode.java @@ -1,4 +1,6 @@ + CLProcAddressTable addressTable = new CLProcAddressTable(); + public long clCreateContext(java.nio.Buffer properties, long[] devices, CreateContextCallback pfn_notify, Object userData, IntBuffer errcode_ret) { if(pfn_notify != null) @@ -51,7 +53,7 @@ /** Entry point to C language function: <code> int32_t clBuildProgram(cl_program, uint32_t, cl_device_id * , const char * , void * ); </code> */ private native int clBuildProgram1(long program, int devices, Object deviceList, String options, BuildProgramCallback cb, Object userData); - + private final static void convert32To64(long[] values) { if(values.length%2 == 1) { values[values.length-1] = values[values.length/2]>>>32; |