Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge branch 'CLGL-Interop'
- Loading branch information
Showing
15 changed files
with
1,649 additions
and
236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,10 @@ | ||
| set(SRCS clrun/clrun.c | ||
| clrun/dynamiclib.c | ||
| clrun/gencl.c | ||
| clrun/genclgl.c) | ||
| clrun/genclgl.c | ||
| clrun/genclext.c | ||
| clrun/genclglext.c | ||
| ) | ||
|
|
||
| add_library(clrun STATIC ${SRCS}) | ||
| target_link_libraries(clrun ${CMAKE_DL_LIBS}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| // Automatically generated by generateClRun.pl | ||
| #include "dynamiclib.h" | ||
| #include "../include/CL/cl_ext.h" | ||
|
|
||
|
|
||
| static cl_int (*clIcdGetPlatformIDsKHR_ptr)(cl_uint, cl_platform_id *, cl_uint *) = NULL; | ||
| cl_int CL_API_CALL clIcdGetPlatformIDsKHR (cl_uint num_entries,cl_platform_id * platforms,cl_uint * num_platforms) { | ||
| if(!clIcdGetPlatformIDsKHR_ptr) clIcdGetPlatformIDsKHR_ptr = getFunction("clIcdGetPlatformIDsKHR"); | ||
| return (*clIcdGetPlatformIDsKHR_ptr)(num_entries, platforms, num_platforms); | ||
| } | ||
| static cl_int (* clReleaseDeviceEXT_ptr)(cl_device_id) = NULL; | ||
| cl_int CL_API_CALL clReleaseDeviceEXT (cl_device_id device) { | ||
| if(! clReleaseDeviceEXT_ptr) clReleaseDeviceEXT_ptr = getFunction(" clReleaseDeviceEXT"); | ||
| return (* clReleaseDeviceEXT_ptr)(device); | ||
| } | ||
|
|
||
| static cl_int (* clRetainDeviceEXT_ptr)(cl_device_id) = NULL; | ||
| cl_int CL_API_CALL clRetainDeviceEXT (cl_device_id device) { | ||
| if(! clRetainDeviceEXT_ptr) clRetainDeviceEXT_ptr = getFunction(" clRetainDeviceEXT"); | ||
| return (* clRetainDeviceEXT_ptr)(device); | ||
| } | ||
|
|
||
| static cl_int (* clCreateSubDevicesEXT_ptr)(cl_device_id, const cl_device_partition_property_ext *, cl_uint, cl_device_id *, cl_uint *) = NULL; | ||
| cl_int CL_API_CALL clCreateSubDevicesEXT (cl_device_id in_device,const cl_device_partition_property_ext * properties,cl_uint num_entries,cl_device_id * out_devices,cl_uint * num_devices) { | ||
| if(! clCreateSubDevicesEXT_ptr) clCreateSubDevicesEXT_ptr = getFunction(" clCreateSubDevicesEXT"); | ||
| return (* clCreateSubDevicesEXT_ptr)(in_device, properties, num_entries, out_devices, num_devices); | ||
| } | ||
|
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| // Automatically generated by generateClRun.pl | ||
| #include "dynamiclib.h" | ||
| #include "../include/CL/cl_gl_ext.h" | ||
|
|
||
|
|
||
| static cl_event (*clCreateEventFromGLsyncKHR_ptr)(cl_context, cl_GLsync, cl_int *) = NULL; | ||
| cl_event CL_API_CALL clCreateEventFromGLsyncKHR (cl_context context,cl_GLsync cl_GLsync,cl_int * errcode_ret) { | ||
| if(!clCreateEventFromGLsyncKHR_ptr) clCreateEventFromGLsyncKHR_ptr = getFunction("clCreateEventFromGLsyncKHR"); | ||
| return (*clCreateEventFromGLsyncKHR_ptr)(context, cl_GLsync, errcode_ret); | ||
| } | ||
|
|
Empty file.
Oops, something went wrong.