Jogamp
jocl.git
4 years agoScripts: Bump to java 1.8.0_20
Sven Gothel [Sun, 31 Aug 2014 19:17:58 +0000 (21:17 +0200)]
Scripts: Bump to java 1.8.0_20

4 years agoScripts: Bump to java 1.7.0_67 and apache-ant 1.9.4
Sven Gothel [Thu, 28 Aug 2014 05:00:13 +0000 (07:00 +0200)]
Scripts: Bump to java 1.7.0_67 and apache-ant 1.9.4

4 years agoBug 1024: Add fallback for native-jar-file location via classpath v2.2.0
Sven Gothel [Fri, 11 Jul 2014 01:13:08 +0000 (03:13 +0200)]
Bug 1024: Add fallback for native-jar-file location via classpath

Adapt to GlueGen commit f5c48efcf546ba4e08e197ccced6df83b57e1755

4 years agoBug 1023/Bug 1024: Create native jar files for different configurations due to non...
Sven Gothel [Thu, 10 Jul 2014 15:27:44 +0000 (17:27 +0200)]
Bug 1023/Bug 1024: Create native jar files for different configurations due to non-native-jar aliasing

4 years agoBug 1023, Bug 1024: Adapt to GlueGen commit 46faa59d439ef235d7691fc64d56eedc600ffa1a
Sven Gothel [Sat, 5 Jul 2014 13:25:07 +0000 (15:25 +0200)]
Bug 1023, Bug 1024: Adapt to GlueGen commit 46faa59d439ef235d7691fc64d56eedc600ffa1a

4 years agoCode Clean-Up based on our Recommended Settings (jogamp-scripting c47bc86ae2ee268a1f3...
Sven Gothel [Thu, 3 Jul 2014 14:35:47 +0000 (16:35 +0200)]
Code Clean-Up based on our Recommended Settings (jogamp-scripting 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

4 years agoAdd System.err log if CL/JNI library could not be loaded
Sven Gothel [Wed, 25 Jun 2014 10:48:25 +0000 (12:48 +0200)]
Add System.err log if CL/JNI library could not be loaded

4 years agoAdapt to GlueGen commit 9ee44e1a289ecbac024662dd5a2ffc42e8add023 (Bug 1025)
Sven Gothel [Wed, 25 Jun 2014 08:19:25 +0000 (10:19 +0200)]
Adapt to GlueGen commit 9ee44e1a289ecbac024662dd5a2ffc42e8add023 (Bug 1025)

4 years agoAdapt to GlueGen commit 2f6586292cd298bbc19d8acda0f7cf303c82078b (compount call-by...
Sven Gothel [Wed, 18 Jun 2014 01:55:00 +0000 (03:55 +0200)]
Adapt to GlueGen commit 2f6586292cd298bbc19d8acda0f7cf303c82078b (compount call-by-value extension)

- initializeImpl() is no more required, since it's not forced .. uncomment in manual static initializer

4 years agoAdapt to GlueGen commit c3054a01990e55ab35756ea23ab7d7c05f24dd37 (compount call-by...
Sven Gothel [Tue, 17 Jun 2014 01:32:45 +0000 (03:32 +0200)]
Adapt to GlueGen commit c3054a01990e55ab35756ea23ab7d7c05f24dd37 (compount call-by-value extension)

4 years agoMerge remote-tracking branch 'wwalker/master'
Sven Gothel [Fri, 9 May 2014 23:34:35 +0000 (01:34 +0200)]
Merge remote-tracking branch 'wwalker/master'

4 years agoBug 978: Promote whether a test shall fail due to unavailable CL driver in base UITes...
Sven Gothel [Fri, 9 May 2014 23:32:15 +0000 (01:32 +0200)]
Bug 978: Promote whether a test shall fail due to unavailable CL driver in base UITest class.

4 years agoignore all build* folders
Sven Gothel [Fri, 9 May 2014 23:29:33 +0000 (01:29 +0200)]
ignore all build* folders

4 years agounit test: preserve hs_err_pid*.log files (move to results folder for archive)
Sven Gothel [Fri, 9 May 2014 21:43:13 +0000 (23:43 +0200)]
unit test: preserve hs_err_pid*.log files (move to results folder for archive)

4 years agoFix build instructions
Wade Walker [Sat, 26 Apr 2014 19:40:03 +0000 (14:40 -0500)]
Fix build instructions

Fixed the build instructions to reflect the changes that bring
JOCL into line with the other JogAmp modules. Also fixed dead
links and updated the version of OpenCL we point to.

4 years agoMerge branch 'bug_1003_add_texture_interop_test'
Wade Walker [Sun, 13 Apr 2014 21:52:01 +0000 (16:52 -0500)]
Merge branch 'bug_1003_add_texture_interop_test'

4 years agoFix direct buffer usage in lowLevelVectorAddTest
Wade Walker [Sun, 13 Apr 2014 21:04:16 +0000 (16:04 -0500)]
Fix direct buffer usage in lowLevelVectorAddTest

Increase buffer size and rewind before reuse in every possible
place. This is to try to remove a couple of remaining failures on
some platforms. The failure causes an abnormal JVM exit without
a stack trace when System.gc() is called during teardown.

4 years agoFix transposed arguments in putCopyBufferRect
Wade Walker [Mon, 7 Apr 2014 20:12:50 +0000 (15:12 -0500)]
Fix transposed arguments in putCopyBufferRect

Fixes transposed arguments in CLCommandQueue:putCopyBufferRect.

4 years agoFix CL-GL interoperability tests on Mac.
Wade Walker [Sun, 6 Apr 2014 20:05:46 +0000 (15:05 -0500)]
Fix CL-GL interoperability tests on Mac.

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).

4 years agoFinish texture sharing test.
Wade Walker [Sun, 6 Apr 2014 19:20:19 +0000 (14:20 -0500)]
Finish texture sharing test.

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.

4 years agoStart adding texture interop test.
Wade Walker [Fri, 4 Apr 2014 20:55:35 +0000 (15:55 -0500)]
Start adding texture interop test.

The test here is still not complete, just checking in so I can switch
branches.

4 years agoUse gluegen's JUnit in Eclipse
Wade Walker [Fri, 4 Apr 2014 20:53:49 +0000 (15:53 -0500)]
Use gluegen's JUnit in Eclipse

This fixes problems when Eclipse's default JUnit is too old for our code.

4 years agoFix crashes due to AMD driver bugs.
Wade Walker [Sat, 8 Mar 2014 22:17:36 +0000 (16:17 -0600)]
Fix crashes due to AMD driver bugs.

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.

4 years agoRemove Java lint warnings.
Wade Walker [Fri, 7 Mar 2014 22:32:48 +0000 (16:32 -0600)]
Remove Java lint warnings.

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.

4 years agoRemove warnings, turn on linting, fix Eclipse.
Wade Walker [Fri, 7 Mar 2014 22:28:41 +0000 (16:28 -0600)]
Remove warnings, turn on linting, fix Eclipse.

Removed warnings due to memoryMaximumSize being ignored when javac isn't
forked. Turned on all linting. Changed the arguments of
uncomment-function-params so it will run from within Eclipse properly
(using basedir instead of user.dir, since only the former will be
properly set both inside Eclipse and on the command line).

4 years agoRemove alignment warning in gluegen preprocessing.
Wade Walker [Wed, 5 Mar 2014 22:10:56 +0000 (16:10 -0600)]
Remove alignment warning in gluegen preprocessing.

Turns off the warning about CL_ALIGNED not being
defined for the current compiler, but only inside
the gluegen preprocessor. If CL_ALIGNED isn't
defined for the real C compiler on the platform,
the warning will still show up during C compilation.

4 years agoRemove unnamed struct emission warnings.
Wade Walker [Wed, 5 Mar 2014 20:49:54 +0000 (14:49 -0600)]
Remove unnamed struct emission warnings.

Uses the new augmentation of gluegen's Ignore keyword.

4 years agoPass function pointers into clEnqueueMapImage.
Wade Walker [Sun, 2 Mar 2014 20:02:25 +0000 (14:02 -0600)]
Pass function pointers into clEnqueueMapImage.

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.

4 years agoLoad jocl.properties if present.
Wade Walker [Sun, 2 Mar 2014 18:41:48 +0000 (12:41 -0600)]
Load jocl.properties if present.

This lets us build with debug information turned on.

4 years agoFix C build warnings.
Wade Walker [Sun, 2 Mar 2014 18:16:42 +0000 (12:16 -0600)]
Fix C build warnings.

Fixes -fno-rtti and implicit cast warnings. After this commit,
all C warnings are gone except for one due to gluegen emitting
char pointers instead of unsigned char pointers.

4 years agoMerge remote-tracking branch 'jogamporg/master'
Wade Walker [Tue, 25 Feb 2014 22:02:12 +0000 (16:02 -0600)]
Merge remote-tracking branch 'jogamporg/master'

4 years agoFix new subBufferTest02FloatBuffer() test on Solaris. v2.1.5
Wade Walker [Tue, 25 Feb 2014 20:56:33 +0000 (14:56 -0600)]
Fix new subBufferTest02FloatBuffer() test on Solaris.

The new OpenCL isAvailable() didn't make it into this test due to
a merge slipup.

Change-Id: I049388908b8f2f2869cc018dbf6be86d1a8dcb9d

4 years agoMerge remote-tracking branch 'personal/bug_978_fix_solaris_tests'
Wade Walker [Tue, 25 Feb 2014 15:20:55 +0000 (09:20 -0600)]
Merge remote-tracking branch 'personal/bug_978_fix_solaris_tests'

4 years agoMerge pull request #5 from WadeWalker/bug_978_fix_solaris_tests
Wade Walker [Tue, 25 Feb 2014 01:43:43 +0000 (19:43 -0600)]
Merge pull request #5 from WadeWalker/bug_978_fix_solaris_tests

Fix OpenCL test failures on Solaris for bug 978.

4 years agoFix OpenCL test failures on Solaris.
Wade Walker [Mon, 24 Feb 2014 00:23:57 +0000 (18:23 -0600)]
Fix OpenCL test failures on Solaris.

Since nobody currently makes an OpenCL driver for Solaris, all the
tests used to fail, which told us nothing. This commit adds code
to check whether OpenCL is unavailable and the OS is Solaris, in
which case the test contents are skipped. If an OpenCL driver ever
appears for Solaris, or if we start testing on another platform
with no OpenCL driver, there's now one single place to add or remove
checks that will allow for this.

4 years agoMerge remote-tracking branch 'wwalker/fix_jocl_bug_981_out_of_direct_buffer_memory'
Sven Gothel [Sat, 22 Feb 2014 22:57:48 +0000 (23:57 +0100)]
Merge remote-tracking branch 'wwalker/fix_jocl_bug_981_out_of_direct_buffer_memory'

4 years agoFix memory problems in High/LowLevelBindingTests.
Wade Walker [Sat, 22 Feb 2014 20:28:40 +0000 (14:28 -0600)]
Fix memory problems in High/LowLevelBindingTests.

These tests now adaptively reduce the global work size until they
successfully allocate memory for their DirectByteBuffers. This
makes the tests work on JVMs where XX:MaxDirectMemorySize is
smaller than the modern defaults. These tests were failing on
OS X 10.6 for this reason.

4 years agoMinor editing: Remove static imports, using 'final' add some '@XXX' decorations to...
Sven Gothel [Fri, 21 Feb 2014 07:38:35 +0000 (08:38 +0100)]
Minor editing: Remove static imports, using 'final' add some '@XXX' decorations to remove warnings.

Note 'static import' is evil .. :)

4 years agoBug 979: Add 'CL_DEVICE_MEM_BASE_ADDR_ALIGN' to CLDevice and overal maximum to CLCont...
Sven Gothel [Fri, 21 Feb 2014 07:37:26 +0000 (08:37 +0100)]
Bug 979: Add 'CL_DEVICE_MEM_BASE_ADDR_ALIGN' to CLDevice and overal maximum to CLContext - Split CLBufferTest and use alignment.

See Bug 979 for remaining issues and discussion.

4 years agoFix build.xml (regression): Re-activate 'generate.jdk6.autocloseable, generate.jdk7...
Sven Gothel [Fri, 21 Feb 2014 04:43:01 +0000 (05:43 +0100)]
Fix build.xml (regression): Re-activate 'generate.jdk6.autocloseable, generate.jdk7.autocloseable' in java.generate.impl

Regression of commit 46cc6ebfb2f53daebceb9a36b553ff01af56999f

4 years agobuild.xml: Don't re-generate source (gluegen) if CLAbstractImpl_JNI.c uptodate (use...
Sven Gothel [Mon, 17 Feb 2014 04:03:54 +0000 (05:03 +0100)]
build.xml: Don't re-generate source (gluegen) if CLAbstractImpl_JNI.c uptodate (use java.generate.skip); Put native code on gensrc/native/jocl

4 years agoFix Bug 920 - JOCL does not work on windows with 32 bit vm (2/2)
Sven Gothel [Mon, 17 Feb 2014 01:56:57 +0000 (02:56 +0100)]
Fix Bug 920 - JOCL does not work on windows with 32 bit vm (2/2)

All gluegen generated native function wrappers,
miss CL_API_CALL in the function declarations
similar to commit 569726132f622e290bebc5d40c96f8115dbcb5da.

Adding gluegen calling convention to cl-impl.cfg:
  LocalProcAddressCallingConvention __ALL__ CL_API_CALL

All tests passed on windows 32bit now!

4 years agoFix Bug 920 - JOCL does not work on windows with 32 bit vm (1/2)
Sven Gothel [Mon, 17 Feb 2014 01:30:52 +0000 (02:30 +0100)]
Fix Bug 920 - JOCL does not work on windows with 32 bit vm (1/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 ..

4 years agoFix windows test scripts (CP, D_ARGS, ..)
Sven Gothel [Mon, 17 Feb 2014 00:15:41 +0000 (01:15 +0100)]
Fix windows test scripts (CP, D_ARGS, ..)

4 years agoFix build.xml: Remove gluegen config dependency on ../build using build-temp
Sven Gothel [Mon, 17 Feb 2014 00:00:03 +0000 (01:00 +0100)]
Fix build.xml: Remove gluegen config dependency on ../build using build-temp

Fix copy2temp target and issue it before gluegen of cl-if.cfg.

Note: ${project.root}/build cannot be a hard-dependency since
      ${rootrel.build} is configurable hence
      ${project.root}/${rootrel.build}.

4 years agoWindows build scripts: Bump ant to 1.8.2
Sven Gothel [Sun, 16 Feb 2014 23:54:52 +0000 (00:54 +0100)]
Windows build scripts: Bump ant to 1.8.2

4 years agoscript: set exec flag
Sven Gothel [Sat, 15 Feb 2014 06:28:48 +0000 (07:28 +0100)]
script: set exec flag

4 years agoFix build scripts
Sven Gothel [Sat, 15 Feb 2014 06:28:20 +0000 (07:28 +0100)]
Fix build scripts

4 years agoAdd scripts/check-junit.sh to validate local unit tests ..
Sven Gothel [Wed, 12 Feb 2014 02:06:24 +0000 (03:06 +0100)]
Add scripts/check-junit.sh to validate local unit tests ..

4 years agoFix unit test bugs on Mac OS X 64-bit.
Wade Walker [Sat, 8 Feb 2014 20:00:41 +0000 (14:00 -0600)]
Fix unit test bugs on Mac OS X 64-bit.

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.

4 years agoFix javadoc packagenames v2.1.4
Sven Gothel [Fri, 31 Jan 2014 10:08:20 +0000 (11:08 +0100)]
Fix javadoc packagenames

4 years agoMiscUtils: Forgot to change access of package-private to public due to new package...
Sven Gothel [Sun, 26 Jan 2014 04:56:53 +0000 (05:56 +0100)]
MiscUtils: Forgot to change access of package-private to public due to new package location (sorry)

4 years agoRename TestUtils -> MiscUtils (not a test), remove 'main' .. oops
Sven Gothel [Sun, 26 Jan 2014 04:50:59 +0000 (05:50 +0100)]
Rename TestUtils -> MiscUtils (not a test), remove 'main' .. oops

4 years agoUnit Tests: Also test 'Test*' while excluding inner classes
Sven Gothel [Sun, 26 Jan 2014 04:43:04 +0000 (05:43 +0100)]
Unit Tests: Also test 'Test*' while excluding inner classes

4 years agoFix build.xml: Processed CL stub_includes _must_ reside in current folder (make)...
Sven Gothel [Sun, 26 Jan 2014 04:33:34 +0000 (05:33 +0100)]
Fix build.xml: Processed CL stub_includes _must_ reside in current folder (make) due to relative fileset access only!

Commit aac4c5fc4ab7c77eff3b71f518100dd182ec2c33 moved processed CL stub_includes
to 'build/includes', which would be 'nice to have'.

However, due to relative fileset restrictions, we must locate it from current folder 'make'.

Not detected, since an old 'make/includes/CL' was still around.

Using dedicated folder 'make/stub_includes.gen'.

4 years agoJoclVersionActivity: Dump info on stderr for adb logcat
Sven Gothel [Sun, 26 Jan 2014 02:48:57 +0000 (03:48 +0100)]
JoclVersionActivity: Dump info on stderr for adb logcat

4 years agoAdapt all unit tests to use UITestCase and enforce named unit test order. Added main...
Sven Gothel [Sun, 26 Jan 2014 02:33:17 +0000 (03:33 +0100)]
Adapt all unit tests to use UITestCase and enforce named unit test order. Added main entry and listed in tests.sh for manual test.

4 years agoAdd unit test TestJoclVersion and UITestCase base class for singleton unit tests...
Sven Gothel [Sun, 26 Jan 2014 02:15:47 +0000 (03:15 +0100)]
Add unit test TestJoclVersion and UITestCase base class for singleton unit tests ; Fix setenv-jocl.sh: Add jocl-test.jar

4 years agoCleanup Build: GlueGen config files, stub_includes; Add JoclVersion, Android JoclVers...
Sven Gothel [Sun, 26 Jan 2014 01:14:26 +0000 (02:14 +0100)]
Cleanup Build: GlueGen config files, stub_includes; Add JoclVersion, Android 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.)

4 years agobuild.xml: Fix jogl.build: Use [passed or default] jogl.build as well as rootrel...
Sven Gothel [Sat, 25 Jan 2014 17:49:41 +0000 (18:49 +0100)]
build.xml: Fix jogl.build: Use [passed or default] jogl.build as well as rootrel.build (as gluegen does)

4 years agoAdd '-b${joal.build.number}' to joal.version / archive.name ; Produce jar and apk...
Sven Gothel [Sat, 25 Jan 2014 15:21:15 +0000 (16:21 +0100)]
Add '-b${joal.build.number}' to joal.version / archive.name ; Produce jar and apk files in ${build}/jar (as it was before new build system)

4 years agoAvoid sealed package violation: Move AutoCloseable to com.jogamp.opencl
Sven Gothel [Sat, 25 Jan 2014 15:20:30 +0000 (16:20 +0100)]
Avoid sealed package violation: Move AutoCloseable to com.jogamp.opencl

4 years agoBug 884: Move obsolete NB based build files to 'obsolete.make-nb' ; Fix text file...
Sven Gothel [Sat, 25 Jan 2014 14:13:06 +0000 (15:13 +0100)]
Bug 884: Move obsolete NB based build files to 'obsolete.make-nb' ; Fix text file suffix ; Fix Jar Manifest: Move Sealed to bottom.

4 years agoMerge remote-tracking branch 'wwalker/bug_884_replace_netbeans_build_with_jogamp_stan...
Sven Gothel [Sat, 25 Jan 2014 14:03:04 +0000 (15:03 +0100)]
Merge remote-tracking branch 'wwalker/bug_884_replace_netbeans_build_with_jogamp_standard_build'

4 years agoJar Manifest: Add empty line before EOF (otherwise last line is cut-off - duh), add...
Sven Gothel [Thu, 23 Jan 2014 02:29:48 +0000 (03:29 +0100)]
Jar Manifest: Add empty line before EOF (otherwise last line is cut-off - duh), add 'Application-Library-Allowable-Codebase: *'

4 years agoBug 884: Add standard JogAmp build files.
Wade Walker [Sun, 15 Dec 2013 22:16:18 +0000 (16:16 -0600)]
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.

4 years agoUse 'gluegen-clang.properties' for generic clang and 'gluegen-xcode_clang.properties... v2.1.3
Sven Gothel [Sun, 17 Nov 2013 16:37:17 +0000 (17:37 +0100)]
Use 'gluegen-clang.properties' for generic clang and 'gluegen-xcode_clang.properties' for OSX xcode-clang ; Add GNU/Linux LLVM/clang build scripts

4 years agoBug 881 - Add 'Application-Name' in Jar's manifest to avoid Java6 NPEs .. v2.1.2
Sven Gothel [Fri, 1 Nov 2013 02:14:25 +0000 (03:14 +0100)]
Bug 881 - Add 'Application-Name' in Jar's manifest to avoid Java6 NPEs ..

5 years agoFix MacOSX build scripts / Add scripts/make.jocl.all.macosx-clang.sh
Sven Gothel [Thu, 24 Oct 2013 19:20:22 +0000 (21:20 +0200)]
Fix MacOSX build scripts / Add scripts/make.jocl.all.macosx-clang.sh

5 years agoCLDynamicLibraryBundleInfo: Add libPVROCL.so lookup if Android .. v2.1.1
Sven Gothel [Sat, 19 Oct 2013 05:11:01 +0000 (07:11 +0200)]
CLDynamicLibraryBundleInfo: Add libPVROCL.so lookup if Android ..

5 years agoBug 773 - Device specific JOCL dynamic library look-up on Android - Part 1/2
Sven Gothel [Sat, 19 Oct 2013 04:47:48 +0000 (06:47 +0200)]
Bug 773 - Device specific JOCL dynamic library look-up on Android - Part 1/2

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 ...

5 years agoBump 7u45
Sven Gothel [Fri, 18 Oct 2013 05:37:24 +0000 (07:37 +0200)]
Bump 7u45

5 years agoBug 579: Use result value in checkForError(..) for CLGLTexture2d.createFromGL*, CLGLT...
Sven Gothel [Sat, 12 Oct 2013 21:36:51 +0000 (23:36 +0200)]
Bug 579: Use result value in checkForError(..) for 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 <kjolhede@telia.com>
Confirmed by: Daniel Balog <danielbalog86@gmail.com>

5 years agoCLCommandQueue/CLException: Remove 'import static pack.class.*' for all (Easy on...
Sven Gothel [Sat, 12 Oct 2013 21:30:29 +0000 (23:30 +0200)]
CLCommandQueue/CLException: Remove 'import static pack.class.*' for all (Easy on ClassLoader)

5 years agoBug 552 putMapImage(..): Added variant w/ long[] imageRowPitch and long[] imageSliceP...
Sven Gothel [Sat, 12 Oct 2013 20:54:56 +0000 (22:54 +0200)]
Bug 552 putMapImage(..): Added variant w/ long[] imageRowPitch and long[] imageSlicePitch return values while always passing PointerBuffers (size_t*) for same values to clEnqueueMapImage(..)

5 years agoFix Bug 573: putCopyBuffer(..)'s src/dest offset was not passed to putCopyBuffer...
Sven Gothel [Sat, 12 Oct 2013 20:18:19 +0000 (22:18 +0200)]
Fix Bug 573: putCopyBuffer(..)'s src/dest offset was not passed to putCopyBuffer(..) impl. method

5 years agoRefine 7b21b5abb6373637eeeb270de05bb7472f70b853: Add CLGL.CL_CONTEXT_PROPERTY_USE_CGL...
Sven Gothel [Sat, 12 Oct 2013 20:09:27 +0000 (22:09 +0200)]
Refine 7b21b5abb6373637eeeb270de05bb7472f70b853: Add 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 ..

5 years agoMerge branch 'lixoman100/master': 'Fixes Bug 553, Bug 824 and Bug 825'
Sven Gothel [Sat, 12 Oct 2013 19:24:53 +0000 (21:24 +0200)]
Merge branch 'lixoman100/master': 'Fixes Bug 553, Bug 824 and Bug 825'

5 years agoartifact.properties: Add jocl.build.version:=jogamp.version v2.1.0
Sven Gothel [Fri, 4 Oct 2013 17:03:10 +0000 (19:03 +0200)]
artifact.properties: Add jocl.build.version:=jogamp.version

5 years agoBump to JDK/JRE 7u40.
Sven Gothel [Thu, 19 Sep 2013 07:21:21 +0000 (09:21 +0200)]
Bump to JDK/JRE 7u40.

5 years agoFix Bug 835: Add validation script .. however, classes were java6 clean.
Sven Gothel [Thu, 19 Sep 2013 07:21:08 +0000 (09:21 +0200)]
Fix Bug 835: Add validation script .. however, classes were java6 clean.

5 years agoFixing some argument order issues; fixing creation of CLContext on Mac OS X with...
Lixo Man [Wed, 4 Sep 2013 16:57:09 +0000 (13:57 -0300)]
Fixing some argument order issues; fixing creation of CLContext on Mac OS X with GLContext sharing.

5 years agoJavadoc: Use JogAmp Stylesheet / Colors .. v2.0.2
Sven Gothel [Wed, 17 Jul 2013 14:13:58 +0000 (16:13 +0200)]
Javadoc: Use JogAmp Stylesheet / Colors ..

5 years agoCLCommandQueueTest: Remove warning .. v2.0-rc12 v2.0.2-rc12
Sven Gothel [Tue, 25 Jun 2013 08:41:37 +0000 (10:41 +0200)]
CLCommandQueueTest: Remove warning ..

5 years agoFix regression of commit 20a94528161909e12fdcbd06cf5affe89a37efb9: Missing positionin...
Sven Gothel [Tue, 25 Jun 2013 08:41:25 +0000 (10:41 +0200)]
Fix regression of commit 20a94528161909e12fdcbd06cf5affe89a37efb9: Missing positioning to desired index of duplicated PointerBuffer

5 years agoCLContext.release: Avoid 'concurrency map modify exception'
Sven Gothel [Tue, 25 Jun 2013 08:40:17 +0000 (10:40 +0200)]
CLContext.release: Avoid 'concurrency map modify exception'

5 years agoEclipse: Add junit4 dep.
Sven Gothel [Tue, 25 Jun 2013 08:39:44 +0000 (10:39 +0200)]
Eclipse: Add junit4 dep.

5 years agoBug 758: Fix scripts and ant build files to work w/ Java7 (default now) producing...
Sven Gothel [Fri, 21 Jun 2013 08:24:49 +0000 (10:24 +0200)]
Bug 758: Fix scripts and ant build files to work w/ Java7 (default now) producing Java6 bytecode ; Apply JAR Manifest tags: Sealed, Permissions and Codebase

5 years agoAndroid SDK changes: Add /build-tools/17.0.0 to PATH
Sven Gothel [Thu, 13 Jun 2013 18:39:32 +0000 (20:39 +0200)]
Android SDK changes: Add /build-tools/17.0.0 to PATH

5 years agoFix eclipse .classpath file (import dependent projects, don't use JAR files)
Sven Gothel [Tue, 11 Jun 2013 14:28:28 +0000 (16:28 +0200)]
Fix eclipse .classpath file (import dependent projects, don't use JAR files)

5 years agoAdd scripts/make.jocl.all.sh
Sven Gothel [Wed, 24 Apr 2013 03:30:22 +0000 (05:30 +0200)]
Add scripts/make.jocl.all.sh

5 years agoUse new toolchain (gluegen 3b7ea9f67487be8f133c19b493b632fc579c5049)
Sven Gothel [Wed, 24 Apr 2013 03:13:02 +0000 (05:13 +0200)]
Use new toolchain (gluegen 3b7ea9f67487be8f133c19b493b632fc579c5049)

5 years agoAdapt to new version scheme, see GlueGen a3f2ef50ad33c58a240a17fcf03e415d772207c3...
Sven Gothel [Fri, 29 Mar 2013 07:43:10 +0000 (08:43 +0100)]
Adapt to new version scheme, see GlueGen a3f2ef50ad33c58a240a17fcf03e415d772207c3, etc

5 years agoLICENSE: The JogAmp community is community lead - we welcome new commits
Xerxes Rånby [Thu, 7 Mar 2013 09:44:34 +0000 (10:44 +0100)]
LICENSE: The JogAmp community is community lead - we welcome new commits

Signed-off-by: Xerxes Rånby <xerxes@zafena.se>
5 years agoLICENSE: Repository http://github.com/JogAmp/jocl
Xerxes Rånby [Wed, 6 Mar 2013 16:32:47 +0000 (17:32 +0100)]
LICENSE: Repository http://github.com/JogAmp/jocl

Signed-off-by: Xerxes Rånby <xerxes@zafena.se>
5 years agoREADME: Add new IRC channel, mark Jabber deprecated
Sven Gothel [Wed, 16 Jan 2013 16:37:15 +0000 (17:37 +0100)]
README: Add new IRC channel, mark Jabber deprecated

5 years agoAndroid build scripts: Fix env. name ANDROID_SDK_HOME -> ANDROID_HOME
Sven Gothel [Thu, 27 Dec 2012 04:59:47 +0000 (05:59 +0100)]
Android build scripts: Fix env. name ANDROID_SDK_HOME -> ANDROID_HOME

Intuitively I assumed ANDROID_SDK_HOME to be pointing to the SDK root dir,
however this is not true: Semantics by Android tools are:

ANDROID_SDK_HOME - Users ~/.android folder
ANDROID_HOME     - SDK root folder

6 years agoFix 'clean-jar-test' target (need to redo 'init' for manifest.mf file) .. called... v2.0-rc11
Sven Gothel [Sun, 26 Aug 2012 00:44:13 +0000 (02:44 +0200)]
Fix 'clean-jar-test' target (need to redo 'init' for manifest.mf file) .. called from jenkins

6 years agofix detection of created ${build.dir}/jar/manifest.mf file, required for jocl.jar
Sven Gothel [Sun, 26 Aug 2012 00:22:13 +0000 (02:22 +0200)]
fix detection of created ${build.dir}/jar/manifest.mf file, required for jocl.jar

note to myself: we really should get rid of the NB skeleton!

6 years agoAdapt to JogAmp build infrastructure (get rid of 'dist' folder, drop jnlp files in...
Sven Gothel [Sat, 25 Aug 2012 13:20:56 +0000 (15:20 +0200)]
Adapt to JogAmp build infrastructure (get rid of 'dist' folder, drop jnlp files in ./jnlp-files)

http://JogAmp.org git info: FAQ, tutorial and man pages.