aboutsummaryrefslogtreecommitdiffstats
path: root/test/com
Commit message (Collapse)AuthorAgeFilesLines
* Remove creation and all references to CL*Binding interfacesWade Walker2015-11-083-35/+28
| | | | This completes the removal of all CL*Binding interfaces; all tests pass at this point.
* Add ability to access newer CLImpl versions for devicesWade Walker2015-11-081-1/+12
| | | | | | 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-081-1/+1
| | | | | | | | | 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-081-1/+0
| | | | | 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.
* Bug 682 - Relocating javax.media.opengl.* -> com.jogamp.opengl.*Sven Gothel2015-02-021-7/+7
|
* Bug 978: UITestCase shall only report 'not available on this machine', due ↵v2.2.4v2.2.3v2.2.2v2.2.1b22xSven Gothel2014-09-031-1/+1
| | | | | | to commit c720767642618cfb4f3739dc6962cde0465e25c5 Giving the OS type leads to misconception that is may not be available on all machines of this OS type.
* Bug 978: Promote CLAbstractImpl.isAvailable() to CLPlatform, public API. ↵Sven Gothel2014-09-033-6/+8
| | | | | | | | 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 1057: Analyze CLProgramTest freeze on Win 8.1 Intel i7-4770T CPU / HD ↵Sven Gothel2014-09-011-27/+30
| | | | | | | | Graphics 4600 - Properly enforce test order (alphanumeric) - Split builderTest() to synchronized and async tests
* Code Clean-Up based on our Recommended Settings (jogamp-scripting ↵Sven Gothel2014-07-0312-362/+382
| | | | | | | | | | | | | 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 remote-tracking branch 'wwalker/master'Sven Gothel2014-05-102-1/+119
|\
| * Merge branch 'bug_1003_add_texture_interop_test'Wade Walker2014-04-131-0/+115
| |\
| | * Fix CL-GL interoperability tests on Mac.Wade Walker2014-04-061-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | 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-061-40/+72
| | | | | | | | | | | | | | | 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.
| | * Start adding texture interop test.Wade Walker2014-04-041-0/+83
| | | | | | | | | | | | | | | The test here is still not complete, just checking in so I can switch branches.
| * | Fix direct buffer usage in lowLevelVectorAddTestWade Walker2014-04-131-1/+4
| |/ | | | | | | | | | | | | 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.
* / Bug 978: Promote whether a test shall fail due to unavailable CL driver in ↵Sven Gothel2014-05-1010-84/+22
|/ | | | base UITest class.
* Fix crashes due to AMD driver bugs.Wade Walker2014-03-082-13/+24
| | | | | | | | | | | 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-074-0/+10
| | | | | | 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.
* Fix new subBufferTest02FloatBuffer() test on Solaris.v2.1.5Wade Walker2014-02-251-0/+2
| | | | | | | The new OpenCL isAvailable() didn't make it into this test due to a merge slipup. Change-Id: I049388908b8f2f2869cc018dbf6be86d1a8dcb9d
* Merge remote-tracking branch 'personal/bug_978_fix_solaris_tests'Wade Walker2014-02-259-2/+95
|\
| * Fix OpenCL test failures on Solaris.Wade Walker2014-02-239-2/+95
| | | | | | | | | | | | | | | | | | | | 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.
* | Merge remote-tracking branch ↵Sven Gothel2014-02-222-15/+48
|\ \ | | | | | | | | | 'wwalker/fix_jocl_bug_981_out_of_direct_buffer_memory'
| * | Fix memory problems in High/LowLevelBindingTests.Wade Walker2014-02-222-15/+48
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Bug 979: Add 'CL_DEVICE_MEM_BASE_ADDR_ALIGN' to CLDevice and overal maximum ↵Sven Gothel2014-02-212-32/+63
|/ / | | | | | | | | | | to CLContext - Split CLBufferTest and use alignment. See Bug 979 for remaining issues and discussion.
* / Fix unit test bugs on Mac OS X 64-bit.Wade Walker2014-02-081-2/+4
|/ | | | | | | | 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.
* MiscUtils: Forgot to change access of package-private to public due to new ↵Sven Gothel2014-01-261-2/+2
| | | | package location (sorry)
* Rename TestUtils -> MiscUtils (not a test), remove 'main' .. oopsSven Gothel2014-01-265-18/+6
|
* Adapt all unit tests to use UITestCase and enforce named unit test order. ↵Sven Gothel2014-01-2610-112/+226
| | | | Added main entry and listed in tests.sh for manual test.
* Add unit test TestJoclVersion and UITestCase base class for singleton unit ↵Sven Gothel2014-01-262-0/+209
| | | | tests ; Fix setenv-jocl.sh: Add jocl-test.jar
* Bug 884: Add standard JogAmp build files.Wade Walker2013-12-152-5/+2
| | | | | | | | | 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.
* Refine 7b21b5abb6373637eeeb270de05bb7472f70b853: Add ↵Sven Gothel2013-10-121-10/+2
| | | | | | 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 ..
* CLCommandQueueTest: Remove warning ..v2.0.2-rc12v2.0-rc12Sven Gothel2013-06-251-2/+5
|
* Adapt to GlueGen ARM Build Changes 422d7a5eb53fca6642ebf4e8910d8b0311bb2597 ↵Sven Gothel2012-08-181-9/+1
| | | | ; Remove JOGL GLProfile.initSingleton(boolean) call in CLGL test
* Fix copyright/author tagsedgeSven Gothel2011-06-281-2/+2
|
* Fix merge w/ latest mbien/edgeSven Gothel2011-06-281-14/+14
|\
| * Fix last merge of mbien/masterSven Gothel2011-06-281-10/+9
| |\
| * | Synced w/ mbien's JOCL branch - Making it compatible w/ GlueGen againSven Gothel2011-05-181-14/+14
| | |
* | | CLKernel short setters, setArgs(Object... values) for convenient initialization.Michael Bien2011-06-191-2/+5
| | |
* | | LLB refactoring.Michael Bien2011-05-274-1/+8
| |/ |/| | | | | | | | | - split up CL into multiple sub interfaces - seperation is now feature wise - introdused llb package for low level classes
* | fixed event-condition test which failed sporadically with out-of-order queues.Michael Bien2011-05-251-10/+9
|/
* CLKernel code review.Michael Bien2011-05-151-1/+18
| | | | | - optimized create from name path - putArg should not increment the index if setting the argument fails - added putArg() test
* added submitAll() utility methodMichael Bien2011-05-091-16/+18
| | | | junit test now covering queue contexts switching improved javadoc.
* concurrent utils bugfixes and improvements.Michael Bien2011-05-091-10/+97
| | | | | | - more utility methods - generics fixes - basic junit test for CLCommandQueuePool - javadoc and argument validation
* added context switching functionality.Michael Bien2011-05-081-7/+5
|
* introduced CLQueueContext and its factory - WIP.Michael Bien2011-05-071-2/+33
|
* initial import of CLCommandQueuePool and CLTask.Michael Bien2011-05-041-1/+4
|
* initial import of CLMultiContext utility and test.Michael Bien2011-05-031-0/+51
|
* using CL_CGL sharegroup for context creation on mac + enabled CLGLTest on macMichael Bien2011-04-261-7/+1
|
* - CLGLBuffer size must now be specified when the buffer is createdMichael Bien2011-04-261-19/+118
| | | | | - but can be updated later if required (gl lock is mandatory) - added VBO CLGL test - javadoc updates
* switched from PointerBuffer to NativeSizeBuffer.Michael Bien2011-04-231-13/+13
|