diff options
author | Gil Pitney <gil.pitney@linaro.org> | 2015-03-07 01:27:20 +0000 |
---|---|---|
committer | Gil Pitney <gil.pitney@linaro.org> | 2015-03-07 01:27:20 +0000 |
commit | 754983749172dca3f74b611c8f205ca1578ca4d7 (patch) | |
tree | d2e796e0a5c7ea6c41151295dabd8bcb81662c43 /src/core/icd.cpp | |
parent | a27f9abbc2e14684e696502b90cc7b51906ffaf8 (diff) |
Implement OpenCL v1.2 API clGetKernelArgInfo()
Kernel argument metadata is generated when adding the clang switch:
-cl-kernel-arg-info
In this case, it is possible to walk the kernel metadata for the compiled
module, and get information about each kernel's arguments.
Upon calling Kernel::addFunction(), typically from createKernel(),
this data is parsed and stored for later retrieval by the clGetKernelArgInfo().
Much of the parsing code was derived from review of the pocl and mesa/clover
clGetKernelArgInfo() implementations.
Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
Diffstat (limited to 'src/core/icd.cpp')
-rw-r--r-- | src/core/icd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/icd.cpp b/src/core/icd.cpp index d79ef1c..dab415f 100644 --- a/src/core/icd.cpp +++ b/src/core/icd.cpp @@ -132,7 +132,7 @@ void * dispatch_table[] = (void *) 0, // clCompileProgram; (void *) 0, // clLinkProgram; (void *) 0, // clUnloadPlatformCompiler; - (void *) 0, // clGetKernelArgInfo; + (void *) clGetKernelArgInfo, (void *) 0, // clEnqueueFillBuffer; (void *) 0, // clEnqueueFillImage; (void *) 0, // clEnqueueMigrateMemObjects; |