aboutsummaryrefslogtreecommitdiffstats
path: root/make/config/clImplCustomCode.c
Commit message (Collapse)AuthorAgeFilesLines
* Factor out common custom C and Java code to reduce duplicationWade Walker2015-11-081-0/+31
| | | | | | | | | 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-435/+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.
* Pass function pointers into clEnqueueMapImage.Wade Walker2014-03-021-2/+2
| | | | | | | 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.
* Fix C build warnings.Wade Walker2014-03-021-2/+2
| | | | | | 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.
* Fix Bug 920 - JOCL does not work on windows with 32 bit vm (1/2)Sven Gothel2014-02-171-4/+4
| | | | | | | | | | | | | | | 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 ..
* Cleanup Build: GlueGen config files, stub_includes; Add JoclVersion, Android ↵Sven Gothel2014-01-261-0/+435
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.)