| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
direct buffer that the CLBuffer is being created for as this more closely represents the users intention about the buffer size.
|
|
|
|
| |
instead of capacity() in order to respect the user's desired buffer size in memory operations.
|
|
|
|
| |
This test didn't work properly, since that property only applies to
custom devices and built-in kernels.
|
|
|
|
|
| |
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.
|
|
|
| |
User events start as CL_SUBMITTED instead of CL_QUEUE on Intel.
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
This completes the removal of all CL*Binding interfaces; all tests pass
at this point.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
to commit c720767642618cfb4f3739dc6962cde0465e25c5
Giving the OS type leads to misconception that is may not be available on all machines of this OS type.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
Graphics 4600
- Properly enforce test order (alphanumeric)
- Split builderTest() to synchronized and async tests
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\ |
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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).
|
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | |
| | | |
The test here is still not complete, just checking in so I can switch
branches.
|
| |/
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
| |
base UITest class.
|
|
|
|
|
|
|
|
|
|
|
| |
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 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.
|
|
|
|
|
|
|
| |
The new OpenCL isAvailable() didn't make it into this test due to
a merge slipup.
Change-Id: I049388908b8f2f2869cc018dbf6be86d1a8dcb9d
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\ \
| | |
| | |
| | | |
'wwalker/fix_jocl_bug_981_out_of_direct_buffer_memory'
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
|/ /
| |
| |
| |
| |
| | |
to CLContext - Split CLBufferTest and use alignment.
See Bug 979 for remaining issues and discussion.
|
|/
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
package location (sorry)
|
| |
|
|
|
|
| |
Added main entry and listed in tests.sh for manual test.
|
|
|
|
| |
tests ; Fix setenv-jocl.sh: Add jocl-test.jar
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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 ..
|
| |
|
|
|
|
| |
; Remove JOGL GLProfile.initSingleton(boolean) call in CLGL test
|
| |
|
|\ |
|
| |\ |
|
| | | |
|
| | | |
|
| |/
|/|
| |
| |
| |
| | |
- split up CL into multiple sub interfaces
- seperation is now feature wise
- introdused llb package for low level classes
|
|/ |
|
|
|
|
|
| |
- optimized create from name path
- putArg should not increment the index if setting the argument fails
- added putArg() test
|
|
|
|
| |
junit test now covering queue contexts switching
improved javadoc.
|
|
|
|
|
|
| |
- more utility methods
- generics fixes
- basic junit test for CLCommandQueuePool
- javadoc and argument validation
|
| |
|