soft/dev/vocl.git
4 years agoHotfix for fixing error test in enqueue_map master
Antonio J. Pena [Wed, 27 Aug 2014 05:48:53 +0000]
Hotfix for fixing error test in enqueue_map

4 years agoAdded clGetEventInfo
Antonio J. Pena [Wed, 27 Aug 2014 05:45:47 +0000]
Added clGetEventInfo

4 years agoFixed error test in enqueue_map
Antonio J. Pena [Wed, 27 Aug 2014 05:39:23 +0000]
Fixed error test in enqueue_map

4 years agoAdded clCreateContextFromType
Antonio J. Pena [Wed, 27 Aug 2014 05:10:57 +0000]
Added clCreateContextFromType

4 years agoHotfix for auto-finalization hook
Antonio J. Pena [Tue, 26 Aug 2014 01:47:37 +0000]
Hotfix for auto-finalization hook

4 years agoAdded auto-finalization hook
Antonio J. Pena [Tue, 26 Aug 2014 01:43:56 +0000]
Added auto-finalization hook

4 years agoAdded clGetEventProfilingInfo
Antonio J. Pena [Tue, 26 Aug 2014 01:25:11 +0000]
Added clGetEventProfilingInfo

4 years agoFixed onw clGetKernelArgInfo
Antonio J. Pena [Thu, 14 Aug 2014 18:32:21 +0000]
Fixed onw clGetKernelArgInfo

4 years agoHotfix for checking error value in enqueue_unmap
Antonio J. Pena [Tue, 12 Aug 2014 00:36:25 +0000]
Hotfix for checking error value in enqueue_unmap

4 years agoChecked error value in enqueue_unmap
Antonio J. Pena [Tue, 12 Aug 2014 00:34:21 +0000]
Checked error value in enqueue_unmap

4 years agoChecked error value in enqueue_map
Antonio J. Pena [Tue, 12 Aug 2014 00:26:49 +0000]
Checked error value in enqueue_map

4 years agoMoved the order of including files
Antonio J. Pena [Tue, 12 Aug 2014 00:03:34 +0000]
Moved the order of including files

We may need the structures defined in the other includes from the cq.

4 years agoFirst virtual event id starts in 1 instead of 0
Antonio J. Pena [Mon, 11 Aug 2014 23:58:53 +0000]
First virtual event id starts in 1 instead of 0

4 years agoRemoved leftover TODO comment
Antonio J. Pena [Mon, 11 Aug 2014 23:57:04 +0000]
Removed leftover TODO comment

4 years agoAdded comment-reminder to add EnqueueWaitForEvents
Antonio J. Pena [Mon, 11 Aug 2014 23:55:03 +0000]
Added comment-reminder to add EnqueueWaitForEvents

4 years agoAdded ordered information to vc_cq
Antonio J. Pena [Mon, 11 Aug 2014 23:43:42 +0000]
Added ordered information to vc_cq

4 years agoRemoved leftover variable from VOCL_set_kernel_arg
Antonio J. Pena [Thu, 7 Aug 2014 21:07:10 +0000]
Removed leftover variable from VOCL_set_kernel_arg

4 years agoMinor style (whitespace) change in vocli_native.h
Antonio J. Pena [Wed, 6 Aug 2014 05:31:38 +0000]
Minor style (whitespace) change in vocli_native.h

4 years agoVirtual command queue identifiers start at 1 now
Antonio J. Pena [Wed, 6 Aug 2014 05:30:02 +0000]
Virtual command queue identifiers start at 1 now

4 years agoAdded clEnqueueBarrier for internal use
Antonio J. Pena [Wed, 6 Aug 2014 05:28:45 +0000]
Added clEnqueueBarrier for internal use

4 years agoRemoved unneccessary #ifdef
Antonio J. Pena [Wed, 6 Aug 2014 05:25:37 +0000]
Removed unneccessary #ifdef

4 years agoFixed a few memory leaks
Antonio J. Pena [Tue, 29 Jul 2014 22:48:55 +0000]
Fixed a few memory leaks

4 years agoSwitched to lists with tail ptrs
Antonio J. Pena [Tue, 29 Jul 2014 22:04:44 +0000]
Switched to lists with tail ptrs

O(n) -> O(1) pushes

4 years agoExplicit -> automatic detection of OpenCL 1.2
Antonio J. Pena [Fri, 25 Jul 2014 22:34:35 +0000]
Explicit -> automatic detection of OpenCL 1.2

4 years agoFixed clGetSupportedImageFormats
Antonio Pena Monferrer [Thu, 24 Jul 2014 18:58:28 +0000]
Fixed clGetSupportedImageFormats

Fixed algorithm, added assertions, and improved cleanup on failure.

5 years agoAdded missing assert
Antonio J. Pena [Fri, 18 Jul 2014 22:22:53 +0000]
Added missing assert

5 years agoAdded clGetProgramInfo
Antonio J. Pena [Fri, 18 Jul 2014 22:17:54 +0000]
Added clGetProgramInfo

5 years agoPropageted error code on clCreateBuffer
Antonio J. Pena [Fri, 18 Jul 2014 22:17:12 +0000]
Propageted error code on clCreateBuffer

5 years agoWhitespace fix
Antonio J. Pena [Fri, 18 Jul 2014 21:40:22 +0000]
Whitespace fix

5 years agoVirtual kernel id can't be 0
Antonio J. Pena [Fri, 18 Jul 2014 21:31:46 +0000]
Virtual kernel id can't be 0

NULL values are interpreted as errors by applications.

5 years agoPropagate error code on clCreateProgramWithSource
Antonio J. Pena [Fri, 18 Jul 2014 21:30:42 +0000]
Propagate error code on clCreateProgramWithSource

5 years agoFixed a bug in VOCLI_kernel_arg_info
Antonio J. Pena [Fri, 18 Jul 2014 21:21:36 +0000]
Fixed a bug in VOCLI_kernel_arg_info

The parser didn't take into account the possibility of having
__attribute__-like constructions between the keywords "__kernel" and "void".

5 years agoAdded clGetCommandQueueInfo
Antonio J. Pena [Fri, 18 Jul 2014 20:33:26 +0000]
Added clGetCommandQueueInfo

5 years agoAdded clGetKernelWorkGroupInfo
Antonio J. Pena [Fri, 18 Jul 2014 19:59:20 +0000]
Added clGetKernelWorkGroupInfo

5 years agoReordered get_kernel_arg_info in vocli_native.h
Antonio J. Pena [Fri, 18 Jul 2014 19:46:37 +0000]
Reordered get_kernel_arg_info in vocli_native.h

5 years agoFix VOCL_create_kernel for OpenCL 1.2+
Antonio J. Pena [Fri, 18 Jul 2014 19:23:18 +0000]
Fix VOCL_create_kernel for OpenCL 1.2+

Loading clGetLKernelArgInfo from the native OpenCL library was missing.

5 years agoFix bug in VOCLI_get_kernel_arg_info
Antonio J. Pena [Fri, 18 Jul 2014 18:44:51 +0000]
Fix bug in VOCLI_get_kernel_arg_info

5 years agoFix incorrect usage of VOCLI_find_vc_cq_by_id
Antonio J. Pena [Fri, 18 Jul 2014 18:35:00 +0000]
Fix incorrect usage of VOCLI_find_vc_cq_by_id

5 years agoTypecast fix in VOCL_release_mem_obj
Antonio J. Pena [Fri, 18 Jul 2014 17:05:03 +0000]
Typecast fix in VOCL_release_mem_obj

5 years agoMinor style fix in vocl_enqueue_map.c
Antonio J. Pena [Fri, 18 Jul 2014 17:04:23 +0000]
Minor style fix in vocl_enqueue_map.c

Move a variable definition to restrict its usage to its scope.

5 years agoAdd clEnqueueUnmapMemObject
Antonio J. Pena [Fri, 18 Jul 2014 17:03:20 +0000]
Add clEnqueueUnmapMemObject

5 years agoAdd clEnqueueMapBuffer (asynchronous memory copy)
Antonio J. Pena [Fri, 13 Dec 2013 22:27:04 +0000]
Add clEnqueueMapBuffer (asynchronous memory copy)

Based on code from Xiuxia Zhang

5 years agoFixed clReleaseMemObj when the context is freed
Antonio J. Pena [Fri, 18 Jul 2014 15:34:39 +0000]
Fixed clReleaseMemObj when the context is freed

5 years agoAdded clGetSupportedImageFormats
Antonio J. Pena [Fri, 18 Jul 2014 15:19:57 +0000]
Added clGetSupportedImageFormats

5 years agoAdded clReleaseProgram
Antonio J. Pena [Fri, 18 Jul 2014 04:54:22 +0000]
Added clReleaseProgram

5 years agoAdd clReleaseKernel support
Antonio J. Pena [Fri, 18 Jul 2014 04:35:35 +0000]
Add clReleaseKernel support

5 years agoFix vkernel allocation and deallocation
Antonio J. Pena [Fri, 18 Jul 2014 04:35:07 +0000]
Fix vkernel allocation and deallocation

5 years agoAdded clFlush
Antonio J. Pena [Thu, 17 Jul 2014 22:38:58 +0000]
Added clFlush

5 years agoModified event handling in device-to-device copy
Antonio J. Pena [Thu, 17 Jul 2014 22:17:31 +0000]
Modified event handling in device-to-device copy

5 years agoAdd clReleaseEvent
Antonio J. Pena [Tue, 13 Aug 2013 01:50:20 +0000]
Add clReleaseEvent

5 years agoEvents should not be released on clWaitForEvents
Antonio J. Pena [Thu, 17 Jul 2014 19:05:48 +0000]
Events should not be released on clWaitForEvents

5 years agoFixed clSetKernelArg
Antonio J. Pena [Wed, 16 Jul 2014 22:23:39 +0000]
Fixed clSetKernelArg

Previously it was passing virtual ids from memory objects. This has
required parsing the original source file to check the argument type of
the kernel in case we don't have OpenCL 1.2; otherwise this is easily
done by an OpenCL call.

5 years agoFixed memory object v_id should not be 0
Antonio J. Pena [Wed, 16 Jul 2014 22:21:41 +0000]
Fixed memory object v_id should not be 0

Some parts of the standard, like clSetKernelArg, define special
behaviors for NULL parameters. This fix sets the initial virtual id for
memory objects to 1 to avoid that overlapping.

5 years agoAdded missing opencl/wait_for_events.c to Makefile
Antonio J. Pena [Wed, 16 Jul 2014 22:20:18 +0000]
Added missing opencl/wait_for_events.c to Makefile

5 years agoFixed a syntax error in waitforevent function
Xiuxia Zhang [Fri, 30 Aug 2013 21:10:35 +0000]
Fixed a syntax error in waitforevent function

5 years agoAdd clGetContextInfo functionality
Antonio J. Pena [Wed, 16 Oct 2013 03:46:16 +0000]
Add clGetContextInfo functionality

5 years agoAdd device to device copy
Antonio J. Pena [Thu, 12 Dec 2013 16:44:18 +0000]
Add device to device copy

Some parts based on code from Xiuxia Zhang

5 years agoFixed a bug in vc_cq cleanup
Antonio J. Pena [Sat, 12 Jul 2014 15:59:14 +0000]
Fixed a bug in vc_cq cleanup

5 years agoAdd release command queue functionality
Antonio J. Pena [Fri, 30 Aug 2013 20:36:59 +0000]
Add release command queue functionality

Some parts based on code from Xiuxia Zhang

5 years agoAdded missing prototype for release_mem_obj
Antonio J. Pena [Sat, 12 Jul 2014 15:26:17 +0000]
Added missing prototype for release_mem_obj

Hotfix for cc1a6acf

5 years agoAdd release memory object functionality
Antonio J. Pena [Tue, 13 Aug 2013 01:14:00 +0000]
Add release memory object functionality

Some parts based on code from Xiuxia Zhang.

5 years agoAdded TAGS to .gitignore
Antonio J. Pena [Wed, 2 Jul 2014 21:52:07 +0000]
Added TAGS to .gitignore

5 years agoMake clCreateContext return non-zero
Antonio J. Pena [Wed, 2 Jul 2014 21:50:53 +0000]
Make clCreateContext return non-zero

According to the specs: clCreateContext returns a valid non-zero
context.

5 years agoHotfix for clCreateProgramWithSource
Antonio J. Pena [Wed, 2 Jul 2014 19:07:42 +0000]
Hotfix for clCreateProgramWithSource

5 years agoAdded .gitignore
Antonio J. Pena [Wed, 2 Jul 2014 17:56:44 +0000]
Added .gitignore

5 years agoFixed clCreateProgramWithSource
Antonio J. Pena [Wed, 2 Jul 2014 17:38:07 +0000]
Fixed clCreateProgramWithSource

Taking into account NULL lenghts and zero values according to the
standard.

5 years agoAdd clGetDeviceInfo support
Xiuxia Zhang [Wed, 16 Oct 2013 05:47:00 +0000]
Add clGetDeviceInfo support

Based in code from Xiuxia Zhang

5 years agoAdded check for -ldl in configure
Antonio J. Pena [Tue, 1 Jul 2014 19:46:01 +0000]
Added check for -ldl in configure

5 years agoFix passing NULL to num_devices on getdeviceids
Xiuxia Zhang [Thu, 1 Aug 2013 18:46:25 +0000]
Fix passing NULL to num_devices on getdeviceids

Add null pointer check

Signed-off-by: Antonio J. Pena <apenya@mcs.anl.gov>

6 years agoRename temporary configure variables.
Pavan Balaji [Fri, 28 Jun 2013 21:40:13 +0000]
Rename temporary configure variables.

6 years agoAllow for subdir objects, so the build directory is cleaner.
Pavan Balaji [Fri, 28 Jun 2013 13:52:50 +0000]
Allow for subdir objects, so the build directory is cleaner.

6 years agoDisable OpenCL-1.2 by default.
Pavan Balaji [Thu, 27 Jun 2013 21:34:04 +0000]
Disable OpenCL-1.2 by default.

Some of our code is broken when we try to use OpenCL-1.2.  Since this
part is not critical right now, we disable it by default.

6 years agoAccidentally dropped in the .deps directory into the repo.
Pavan Balaji [Sun, 12 May 2013 15:03:35 +0000]
Accidentally dropped in the .deps directory into the repo.

No reviewer.

6 years agoWhite-space cleanup.
Pavan Balaji [Sat, 30 Mar 2013 06:23:07 +0000]
White-space cleanup.

No reviewer.

[svn breadcrumb: r379 @ https://svn.mcs.anl.gov/repos/vocl/branches/newvocl]

6 years agoWarning squashes.
Pavan Balaji [Sat, 30 Mar 2013 06:23:05 +0000]
Warning squashes.

No reviewer.

[svn breadcrumb: r378 @ https://svn.mcs.anl.gov/repos/vocl/branches/newvocl]

6 years agoSome placeholder code for wait_for_shutdown.
Pavan Balaji [Sat, 30 Mar 2013 06:23:04 +0000]
Some placeholder code for wait_for_shutdown.

No reviewer.

[svn breadcrumb: r377 @ https://svn.mcs.anl.gov/repos/vocl/branches/newvocl]

6 years agoWe need to free the vevent structure when we wait for it.
Pavan Balaji [Sat, 30 Mar 2013 06:23:03 +0000]
We need to free the vevent structure when we wait for it.

No reviewer.

[svn breadcrumb: r376 @ https://svn.mcs.anl.gov/repos/vocl/branches/newvocl]

6 years agoWhite-space cleanup.
Pavan Balaji [Sat, 30 Mar 2013 05:09:59 +0000]
White-space cleanup.

No reviewer.

[svn breadcrumb: r375 @ https://svn.mcs.anl.gov/repos/vocl/branches/newvocl]

6 years agoUse consistent naming convention with the OpenCL standard.
Pavan Balaji [Sat, 30 Mar 2013 05:09:58 +0000]
Use consistent naming convention with the OpenCL standard.

No reviewer.

[svn breadcrumb: r374 @ https://svn.mcs.anl.gov/repos/vocl/branches/newvocl]

6 years agoRework the event management code, so all events have a unique ID
Pavan Balaji [Sat, 30 Mar 2013 04:41:34 +0000]
Rework the event management code, so all events have a unique ID
within the address space.

No reviewer.

[svn breadcrumb: r373 @ https://svn.mcs.anl.gov/repos/vocl/branches/newvocl]

6 years agoAdded initial draft of the clWaitForEvents functionality.
Pavan Balaji [Sat, 30 Mar 2013 04:41:33 +0000]
Added initial draft of the clWaitForEvents functionality.

No reviewer.

[svn breadcrumb: r372 @ https://svn.mcs.anl.gov/repos/vocl/branches/newvocl]

6 years agoGet rid of unnecessary header file includes.
Pavan Balaji [Fri, 29 Mar 2013 21:20:43 +0000]
Get rid of unnecessary header file includes.

No reviewer.

[svn breadcrumb: r371 @ https://svn.mcs.anl.gov/repos/vocl/branches/newvocl]

6 years agoGet rid of unimplemented functions.
Pavan Balaji [Fri, 29 Mar 2013 20:51:16 +0000]
Get rid of unimplemented functions.

No reviewer.

[svn breadcrumb: r370 @ https://svn.mcs.anl.gov/repos/vocl/branches/newvocl]

6 years agoMove the native OpenCL dynamic library functionality to a separate
Pavan Balaji [Fri, 29 Mar 2013 20:51:15 +0000]
Move the native OpenCL dynamic library functionality to a separate
file.  Also created a list of the OpenCL functions that we missed out.

No reviewer.

[svn breadcrumb: r369 @ https://svn.mcs.anl.gov/repos/vocl/branches/newvocl]

6 years agoAdded a new virtual datatype VOCL_vevent_id_t that corresponds to
Pavan Balaji [Fri, 29 Mar 2013 19:40:09 +0000]
Added a new virtual datatype VOCL_vevent_id_t that corresponds to
OpenCL events.  Read, write, and kernel enqueue calls now can create
virtual events.  We don't yet support event dependencies.

No reviewer.

[svn breadcrumb: r368 @ https://svn.mcs.anl.gov/repos/vocl/branches/newvocl]

6 years agoCleaned up a temporary name for the virtualized datatypes. Also got
Pavan Balaji [Fri, 29 Mar 2013 19:40:08 +0000]
Cleaned up a temporary name for the virtualized datatypes.  Also got
rid of some additional non-OpenCL datatypes that should never have
been virtualized.

No reviewer.

[svn breadcrumb: r367 @ https://svn.mcs.anl.gov/repos/vocl/branches/newvocl]

6 years agoInitial code drop for VOCL.
Pavan Balaji [Fri, 29 Mar 2013 06:43:32 +0000]
Initial code drop for VOCL.

No reviewer.

[svn breadcrumb: r366 @ https://svn.mcs.anl.gov/repos/vocl/branches/newvocl]

6 years agoCreated a brand new branch for the new code. Borrows almost nothing
Pavan Balaji [Mon, 25 Mar 2013 06:19:44 +0000]
Created a brand new branch for the new code.  Borrows almost nothing
from the previous code.

[svn breadcrumb: r365 @ https://svn.mcs.anl.gov/repos/vocl/branches/newvocl]

6 years agoRename vc_ptr --> vc, voclc_context_creation_t --> voclc_context_t,
Pavan Balaji [Sun, 24 Mar 2013 07:31:48 +0000]
Rename vc_ptr --> vc, voclc_context_creation_t --> voclc_context_t,
and voclc_command_queue_creation_t --> voclc_cq_t.

No reviewer.

[svn breadcrumb: r361 @ https://svn.mcs.anl.gov/repos/vocl/branches/new-struct/vocl_mp]

6 years agoProtect a configure replaced section to not be affected by
Pavan Balaji [Sun, 24 Mar 2013 06:20:54 +0000]
Protect a configure replaced section to not be affected by
indentation.

No reviewer.

[svn breadcrumb: r360 @ https://svn.mcs.anl.gov/repos/vocl/branches/new-struct/vocl_mp]

6 years agoWhite space cleanup.
Pavan Balaji [Sun, 24 Mar 2013 05:59:26 +0000]
White space cleanup.

No reviewer.

[svn breadcrumb: r359 @ https://svn.mcs.anl.gov/repos/vocl/branches/new-struct/vocl_mp]

6 years agoMade a cleanup pass on the naming.
Pavan Balaji [Sun, 24 Mar 2013 05:59:24 +0000]
Made a cleanup pass on the naming.

No reviewer.

[svn breadcrumb: r358 @ https://svn.mcs.anl.gov/repos/vocl/branches/new-struct/vocl_mp]

6 years agoAdded indentation on/off settings to assist with white-space cleanup.
Pavan Balaji [Sun, 24 Mar 2013 05:59:22 +0000]
Added indentation on/off settings to assist with white-space cleanup.

No reviewer.

[svn breadcrumb: r357 @ https://svn.mcs.anl.gov/repos/vocl/branches/new-struct/vocl_mp]

6 years agoFunction name cleanup.
Pavan Balaji [Sun, 24 Mar 2013 05:59:21 +0000]
Function name cleanup.

No reviewer.

[svn breadcrumb: r356 @ https://svn.mcs.anl.gov/repos/vocl/branches/new-struct/vocl_mp]

6 years agoFirst steps to isolate common library
Antonio Pena [Sun, 24 Mar 2013 04:29:23 +0000]
First steps to isolate common library

[svn breadcrumb: r355 @ https://svn.mcs.anl.gov/repos/vocl/branches/new-struct/vocl_mp]

6 years agoautogen.sh should be an executable.
Pavan Balaji [Sun, 24 Mar 2013 02:58:06 +0000]
autogen.sh should be an executable.

No reviewer.

[svn breadcrumb: r354 @ https://svn.mcs.anl.gov/repos/vocl/branches/new-struct/vocl_mp]

6 years agoUse an m4 macro to check for cl-type sizes instead of duplicating the
Pavan Balaji [Sun, 24 Mar 2013 02:55:16 +0000]
Use an m4 macro to check for cl-type sizes instead of duplicating the
code.

No reviewer.

[svn breadcrumb: r353 @ https://svn.mcs.anl.gov/repos/vocl/branches/new-struct/vocl_mp]

6 years agoRemove unnecessary m4 files.
Pavan Balaji [Sun, 24 Mar 2013 02:55:15 +0000]
Remove unnecessary m4 files.

[svn breadcrumb: r352 @ https://svn.mcs.anl.gov/repos/vocl/branches/new-struct/vocl_mp]

6 years agosolve the issue in the compilation without vock_rebalance option.
Yan Li [Sun, 24 Mar 2013 01:13:53 +0000]
solve the issue in the compilation without vock_rebalance option.

[svn breadcrumb: r351 @ https://svn.mcs.anl.gov/repos/vocl/branches/new-struct/vocl_mp]

6 years agoadd voclc_mig.c to it.
Yan Li [Sun, 24 Mar 2013 01:11:48 +0000]
add voclc_mig.c to it.

[svn breadcrumb: r350 @ https://svn.mcs.anl.gov/repos/vocl/branches/new-struct/vocl_mp]