summaryrefslogtreecommitdiffstats
path: root/resources/clImplCustomCode.java
diff options
context:
space:
mode:
authorWade Walker <[email protected]>2013-12-15 16:16:18 -0600
committerWade Walker <[email protected]>2013-12-15 16:24:11 -0600
commit9ecc606bce374ea093c6321f2d4921b5019a0b18 (patch)
treea9029d561ebed9135ac599dc5941c3d760af3167 /resources/clImplCustomCode.java
parentd1113c49ed95a2089decdc5c270a29fcbd233d68 (diff)
Bug 884: Add standard JogAmp build files.
The new make/build.xml successfully builds and tests the project. The original NetBeans build files are still present, but won't work anymore since the resources directory is now inside the make directory. The new build files are based on those of JOAL. The new build is not yet minimized and cleaned up, because this commit is meant to be the minimum way to get things functional.
Diffstat (limited to 'resources/clImplCustomCode.java')
-rw-r--r--resources/clImplCustomCode.java53
1 files changed, 0 insertions, 53 deletions
diff --git a/resources/clImplCustomCode.java b/resources/clImplCustomCode.java
deleted file mode 100644
index bee53425..00000000
--- a/resources/clImplCustomCode.java
+++ /dev/null
@@ -1,53 +0,0 @@
-
- static final DynamicLibraryBundle dynamicLookupHelper;
- protected static final CLProcAddressTable addressTable;
-
- static {
- addressTable = new CLProcAddressTable();
- if(null==addressTable) {
- throw new RuntimeException("Couldn't instantiate ALProcAddressTable");
- }
-
- dynamicLookupHelper = AccessController.doPrivileged(new PrivilegedAction<DynamicLibraryBundle>() {
- public DynamicLibraryBundle run() {
- final DynamicLibraryBundle bundle = new DynamicLibraryBundle(new CLDynamicLibraryBundleInfo());
- if(null==bundle) {
- throw new RuntimeException("Null CLDynamicLookupHelper");
- }
- if(!bundle.isToolLibLoaded()) {
- throw new RuntimeException("Couln't load native CL library");
- }
- if(!bundle.isLibComplete()) {
- throw new RuntimeException("Couln't load native CL/JNI glue library");
- }
- addressTable.reset(bundle);
- return bundle;
- } } );
- }
-
- public static CLProcAddressTable getCLProcAddressTable() { return addressTable; }
-
- static long clGetExtensionFunctionAddress(long clGetExtensionFunctionAddressHandle, java.lang.String procname)
- {
- if (clGetExtensionFunctionAddressHandle == 0) {
- throw new RuntimeException("Passed null pointer for method \"clGetExtensionFunctionAddress\"");
- }
- return dispatch_clGetExtensionFunctionAddressStatic(procname, clGetExtensionFunctionAddressHandle);
- }
-
- public CLAbstractImpl() {
- }
-
- /** Entry point (through function pointer) to C language function: <br> <code> void* clGetExtensionFunctionAddress(const char * fname); </code> */
- long clGetExtensionFunctionAddress(String fname) {
-
- final long __addr_ = addressTable._addressof_clGetExtensionFunctionAddress;
- if (__addr_ == 0) {
- throw new UnsupportedOperationException("Method \"clGetExtensionFunctionAddress\" not available");
- }
- return dispatch_clGetExtensionFunctionAddressStatic(fname, __addr_);
- }
-
- /** Entry point (through function pointer) to C language function: <br> <code> void* clGetExtensionFunctionAddress(const char * fname); </code> */
- private static native long dispatch_clGetExtensionFunctionAddressStatic(String fname, long procAddress);
-