aboutsummaryrefslogtreecommitdiffstats
path: root/src/com
Commit message (Collapse)AuthorAgeFilesLines
* Bug 1479 - NativeLibrary: Add getNativeLibraryPath() returning actual native ↵HEADmasterSven Gothel2023-11-261-0/+3
| | | | library path, support throughout DynamicLibraryBundle[Info]
* Merge remote-tracking branch 'wwalker/master'v2.5.0Sven Gothel2023-07-123-3/+25
|\
| * Changing CLBuffer#create to respect the limit instead of capacity on the ↵Emily Leiviskä2016-11-161-1/+1
| | | | | | | | direct buffer that the CLBuffer is being created for as this more closely represents the users intention about the buffer size.
| * Changes CLMemory's getNIOSize() and getNIOCapacity() to use buffer.limit() ↵Emily Leiviskä2016-11-161-2/+2
| | | | | | | | instead of capacity() in order to respect the user's desired buffer size in memory operations.
| * Add new kernel workgroup info functions to CLKernelWade Walker2016-04-171-0/+22
| | | | | | | | | | Added workgroup info functions for OpenCL 1.1, since that's the version the CL Java objects currently wraps. Also added a test that shows how to query values from version 1.2 and later.
* | Adopt to GlueGen change: Drop ManualStaticInitCall, ↵Sven Gothel2023-06-164-5/+11
| | | | | | | | PointerBuffer.ELEMENT_SIZE -> AbstractBuffer.POINTER_SIZE
* | Bug 1367: Adapt to TempFileCache & TempJarCache ChangesSven Gothel2019-04-031-1/+1
| |
* | Merge pull request #1 from ghost/masterSven Gothel2019-03-261-1/+6
|\ \ | |/ |/| adding support for Android x86 platforms
| * added workaround to list devices in case platform only supports ↵Xavier Hallade2015-01-091-1/+6
| | | | | | | | | | | | CL_DEVICE_TYPE_GPU (and not CL_DEVICE_TYPE_ALL). That's the case with PowerVR OpenCL driver on Android devices.
* | Bug 1268: Adapt to GlueGen commit 2034bbfac88b7d1360f9c939e173ff758f7f47acSven Gothel2015-11-151-0/+10
| |
* | Fix CLProgramTest for Intel OpenCLWade Walker2015-11-081-0/+8
| | | | | | | | | | | | Added a couple of differences in test results for programs recreated from binaries (the programs are executable and have binary length > 0), and avoided the CL kernel creation test on a binary because it segfaults like it does on AMD drivers.
* | Fix CLProgram build lock to work on Intel OpenCL implementationWade Walker2015-11-081-16/+21
| | | | | | | | | | The Intel OpenCL implementation calls the clBuildProgram notify function on a different thread, so had to change a reentrant lock to a semaphore to allow this.
* | Remove CLGL interfaceWade Walker2015-11-089-38/+23
| | | | | | | | | | This removes the last sub-interface that would have to be separately versioned for future versions of OpenCL. After this, new OpenCL versions will only create one new interface and one new implementation.
* | Remove creation and all references to CL*Binding interfacesWade Walker2015-11-089-68/+47
| | | | | | | | This completes the removal of all CL*Binding interfaces; all tests pass at this point.
* | Remove use of CL*Binding interfacesWade Walker2015-11-0815-177/+122
| | | | | | In preparation for removing the interfaces themselves
* | Add ability to access newer CLImpl versions for devicesWade Walker2015-11-083-2/+27
| | | | | | | | | | | | Added a CLPlatform method to return a CLImpl version specific to a device. This lets the user get a CLImpl12 or CLImpl20 instance which they could then cast to the right type and use to access newer CL functions than those in the default CLImpl11 object.
* | Factor out common custom C and Java code to reduce duplicationWade Walker2015-11-083-279/+3
| | | | | | | | | | | | | | | | | | Consolidated C custom code so common functions are only defined once in the 1.1 version, then are called from the 1.2 and 2.0 version. Pulled common code in CLImpl up into the autogenerated implementation class and removed the hand-written implementation (since it was left empty). Factored custom Java code out so there was as little duplication as possible across the three CLImpl versions, with common code for all three versions in clImplCustomCode.java.
* | Add explicit version number to original CL impl classes.Wade Walker2015-11-084-11/+11
| | | | | | | | | | This makes all three versions (1.1, 1.2, and 2.0) use the same naming convention, and sets me up to use the unversioned name to factor out code common to all three.
* | JOCL QueueThread extends InterruptSource.Threadv2.3.2Sven Gothel2015-10-031-1/+2
| |
* | Bug 682 - Relocating javax.media.opengl.* -> com.jogamp.opengl.*Sven Gothel2015-02-026-7/+7
|/
* Bug 978: Promote CLAbstractImpl.isAvailable() to CLPlatform, public API. ↵Sven Gothel2014-09-032-19/+24
| | | | | | | | isAvailable() simply shall return true if JOCL/OpenCL libs could be loaded. - Promote CLAbstractImpl.isAvailable() to CLPlatform, public API. - CLAbstractImpl.isAvailable() simply shall return true if JOCL/OpenCL libs could be loaded.
* Bug 1024: Add fallback for native-jar-file location via classpathv2.2.0Sven Gothel2014-07-111-1/+1
| | | | Adapt to GlueGen commit f5c48efcf546ba4e08e197ccced6df83b57e1755
* Bug 1023, Bug 1024: Adapt to GlueGen commit ↵Sven Gothel2014-07-051-1/+1
| | | | 46faa59d439ef235d7691fc64d56eedc600ffa1a
* Code Clean-Up based on our Recommended Settings (jogamp-scripting ↵Sven Gothel2014-07-0357-1544/+1560
| | | | | | | | | | | | | c47bc86ae2ee268a1f38c5580d11f93d7f8d6e74) - Change non static accesses to static members using declaring type - Change indirect accesses to static members to direct accesses (accesses through subtypes) - Add final modifier to private fields - Add final modifier to method parameters - Add final modifier to local variables - Remove unnecessary casts - Remove unnecessary '$NON-NLS$' tags - Remove trailing white spaces on all lines
* Merge branch 'bug_1003_add_texture_interop_test'Wade Walker2014-04-132-4/+18
|\
| * Fix CL-GL interoperability tests on Mac.Wade Walker2014-04-061-3/+5
| | | | | | | | | | | | | | | | Fixed detection of compatible interoperability platforms (was silently skipping platform because GL vendor was Nvidia, but CL vendor was Apple). Also fixed CL kernel syntax error about signed-unsigned comparison that ATI's driver on Windows didn't find, and fixed the CL memory object to be write-only instead of read-only (which ATI's Windows driver just ignored).
| * Finish texture sharing test.Wade Walker2014-04-062-4/+16
| | | | | | | | | | Make the test modify a GL texture with a CL kernel, then loop over the texture afterwards to check each texel has the right value. Also make the test loop over all platforms and devices that support sharing.
* | Fix transposed arguments in putCopyBufferRectWade Walker2014-04-071-1/+1
|/ | | | Fixes transposed arguments in CLCommandQueue:putCopyBufferRect.
* Fix crashes due to AMD driver bugs.Wade Walker2014-03-081-0/+6
| | | | | | | | | | | programBinariesTest() failure was due to AMD drivers crashing in clCreateKernelsInProgram() when the program is not built yet, instead of returning error code CL_INVALID_PROGRAM_EXECUTABLE as they should. lowLevelVectorAddTest() failure was apparently due to the AMD drivers writing past the end of a direct byte buffer in such a way that it made System.gc() crash when called during teardown (this crash didn't even dump stack). Making the buffer larger solved the problem.
* Remove Java lint warnings.Wade Walker2014-03-076-8/+19
| | | | | | Remove all Java lint warnings, by fixing the code if possible, and if not possible then by inserting @SuppressWarnings. Some of these @SuppressWarnings can be replaced later with @SafeVarargs if we eventually drop support for Java 6.
* Pass function pointers into clEnqueueMapImage.Wade Walker2014-03-021-7/+7
| | | | | | | These pointers were showing up as uninitialized variables; on inspection they just weren't being passed in from the Java side or assigned on the C side. There are currently no tests of this function, which is how we didn't notice this omission.
* Minor editing: Remove static imports, using 'final' add some '@XXX' ↵Sven Gothel2014-02-214-203/+203
| | | | | | decorations to remove warnings. Note 'static import' is evil .. :)
* Bug 979: Add 'CL_DEVICE_MEM_BASE_ADDR_ALIGN' to CLDevice and overal maximum ↵Sven Gothel2014-02-214-4/+38
| | | | | | to CLContext - Split CLBufferTest and use alignment. See Bug 979 for remaining issues and discussion.
* Fix Bug 920 - JOCL does not work on windows with 32 bit vm (1/2)Sven Gothel2014-02-171-2/+2
| | | | | | | | | | | | | | | The 'clGetExtensionFunctionAddress' function pointer declaration was faulty, i.e. using CL_API_ENTRY instead of CL_API_CALL. CL_API_CALL on windows is defined as '__stdcall' which impacts Window 32bit platforms. Fixed same issue w/: - clCreateContext - clBuildProgram Same issue occurs with _all_ gluegen generated native function wrappers, i.e. CL_API_CALL is missing in the function declarations! I will follow-up w/ this fix in a bit ..
* Fix unit test bugs on Mac OS X 64-bit.Wade Walker2014-02-084-19/+39
| | | | | | | | This commit fixes bugs 959 (local work size set incorrectly), 960 (concurrencyTest() throws ConcurrentModificationException) 963 (programBinariesTest() causes SIGSEGV) and 964 (builderTest() cases CL_INVALID_VALUE). After this commit, all JOCL tests should pass on 64-bit Mac OS X.
* Cleanup Build: GlueGen config files, stub_includes; Add JoclVersion, Android ↵Sven Gothel2014-01-263-26/+265
| | | | | | | | | | | | | | | | | | JoclVersionActivity Cleanup Build: - Move gluegen config files into make/config (cleanup) - Move stub_includes into respective folder make/stub_includes and keep resources 'clean' JoclVersion: - Analoge to JoglVersion, replaces JOCLVersion (deprecated for now) - Added text based CL info dump. JoclVersionActivity: - Analog to JoclVersionActivity - Added full launch .. tested on Android (but no OpenCL avail.)
* Avoid sealed package violation: Move AutoCloseable to com.jogamp.openclSven Gothel2014-01-253-4/+1
|
* CLDynamicLibraryBundleInfo: Add libPVROCL.so lookup if Android ..v2.1.1Sven Gothel2013-10-191-3/+11
|
* Bug 773 - Device specific JOCL dynamic library look-up on Android - Part 1/2Sven Gothel2013-10-194-155/+176
| | | | | | | | | Use DynamicLibraryBundleInfo w/ alternative native library names, drop manual coding of loading and binding, i.e. JOCLJNILibLoader. After trying opencl native libs (and failing), try GL libs .. We use a manual impl. to CL's 'clGetExtensionFunctionAddress' similar to JOAL, JOGL ...
* Bug 579: Use result value in checkForError(..) for ↵Sven Gothel2013-10-124-29/+32
| | | | | | | | | | | | CLGLTexture2d.createFromGL*, CLGLTexture3d.createFromGL*, CLGLImage2d.createFromGL* and CLGLBuffer.createFromGL* - instead of returned 'id' Thank you Johan & Daniel ! Using your original patch, I went through the other CLGL[Texture*|Image2d|Buffer] classes and ensured all are handled the same. Reported and 1st patch provided by: Johan <[email protected]> Confirmed by: Daniel Balog <[email protected]>
* CLCommandQueue/CLException: Remove 'import static pack.class.*' for all ↵Sven Gothel2013-10-122-265/+258
| | | | (Easy on ClassLoader)
* Bug 552 putMapImage(..): Added variant w/ long[] imageRowPitch and long[] ↵Sven Gothel2013-10-121-1/+21
| | | | imageSlicePitch return values while always passing PointerBuffers (size_t*) for same values to clEnqueueMapImage(..)
* Fix Bug 573: putCopyBuffer(..)'s src/dest offset was not passed to ↵Sven Gothel2013-10-121-1/+1
| | | | putCopyBuffer(..) impl. method
* Refine 7b21b5abb6373637eeeb270de05bb7472f70b853: Add ↵Sven Gothel2013-10-121-21/+29
| | | | | | CLGL.CL_CONTEXT_PROPERTY_USE_CGL_SHAREGROUP_APPLE and comment it's usage; Remove 'import static' Note: JOCL impl. shall remove all 'import static' to remove hardhsip on ClassLoader ..
* Fixing some argument order issues; fixing creation of CLContext on Mac OS X ↵Lixo Man2013-09-042-4/+4
| | | | with GLContext sharing.
* Fix regression of commit 20a94528161909e12fdcbd06cf5affe89a37efb9: Missing ↵Sven Gothel2013-06-251-1/+1
| | | | positioning to desired index of duplicated PointerBuffer
* CLContext.release: Avoid 'concurrency map modify exception'Sven Gothel2013-06-251-3/+7
|
* Adapt to gluegen commit 9a71703904ebfec343fb2c7266343d37a2e4c3dbSven Gothel2012-06-261-1/+2
|
* Adapt to GlueGen commit cc76889a6fe96cffb91c9a3aa7934878c0ecd97e: Use ↵v2.0-rc9Sven Gothel2012-05-041-1/+1
| | | | ClassLoader to find JNI native libraries
* Attempt to load 'libOpenCL.so.1' if 'OpenCL' fails (-> AMD 32bit on 64bit ↵Sven Gothel2011-12-181-1/+9
| | | | machine)