aboutsummaryrefslogtreecommitdiff
path: root/src/core/icd.cpp
diff options
context:
space:
mode:
authorGil Pitney <gil.pitney@linaro.org>2015-03-18 21:06:20 +0000
committerGil Pitney <gil.pitney@linaro.org>2015-03-18 21:06:20 +0000
commitbd009ee932b8f003244844576c03f5ee8c6f11e2 (patch)
treed2134fb1e1dcefc99e4c2adee6cde890c8003261 /src/core/icd.cpp
parent754983749172dca3f74b611c8f205ca1578ca4d7 (diff)
Implement the basics of separate Compilation and Linking (v1.2 feature)
Separate the Program::build() method into separate ::compile() and link() phases. Implement basic clCompileProgram() and clLinkProgram() APIs, and export via ICD table. This commit allows the following Khronos v1.2 tests to pass: % test_compiler simple_link_only % test_compiler simple_link_with_callback % test_compiler two_file_link % test_compiler multiple_files The last test validates linking 256 files together. Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
Diffstat (limited to 'src/core/icd.cpp')
-rw-r--r--src/core/icd.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/icd.cpp b/src/core/icd.cpp
index dab415f..1d3cf4b 100644
--- a/src/core/icd.cpp
+++ b/src/core/icd.cpp
@@ -127,10 +127,10 @@ void * dispatch_table[] =
(void *) 0, //clCreateSubDevices;
(void *) 0, //clRetainDevice;
(void *) 0, //clReleaseDevice;
- (void *) 0, // clCreateImage,
+ (void *) clCreateImage,
(void *) 0, // clCreateProgramWithBuiltInKernels;
- (void *) 0, // clCompileProgram;
- (void *) 0, // clLinkProgram;
+ (void *) clCompileProgram,
+ (void *) clLinkProgram,
(void *) 0, // clUnloadPlatformCompiler;
(void *) clGetKernelArgInfo,
(void *) 0, // clEnqueueFillBuffer;