summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYang Rong <rong.r.yang@intel.com>2014-09-01 13:05:05 +0800
committerZhigang Gong <zhigang.gong@intel.com>2014-09-02 09:57:08 +0800
commitcd8604c12ba92cfd52f2b6564f316616cb3a9a62 (patch)
tree8fb4868b8670d85a2d8c20ae869891446d8a05e2 /src
parentd611adefa6b9d28cf6d3a40dee3be8d12c85c675 (diff)
Two minor fix.
1. Some systems don't define ulong type, use unsigned long instead of.. 2. Use sA, sB... instead of sa, sb... to access vector 16, because sometimes sa, sb will cause clang error. Signed-off-by: Yang Rong <rong.r.yang@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/cl_kernel.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cl_kernel.c b/src/cl_kernel.c
index 94b834b7..5ab9c558 100644
--- a/src/cl_kernel.c
+++ b/src/cl_kernel.c
@@ -225,13 +225,13 @@ cl_get_kernel_arg_info(cl_kernel k, cl_uint arg_index, cl_kernel_arg_info param_
if (param_value_size_ret)
*param_value_size_ret = sizeof(cl_kernel_arg_address_qualifier);
if (!param_value) return CL_SUCCESS;
- if ((ulong)ret_info == 0) {
+ if ((cl_ulong)ret_info == 0) {
*(cl_kernel_arg_address_qualifier *)param_value = CL_KERNEL_ARG_ADDRESS_PRIVATE;
- } else if ((ulong)ret_info == 1 || (ulong)ret_info == 4) {
+ } else if ((cl_ulong)ret_info == 1 || (cl_ulong)ret_info == 4) {
*(cl_kernel_arg_address_qualifier *)param_value = CL_KERNEL_ARG_ADDRESS_GLOBAL;
- } else if ((ulong)ret_info == 2) {
+ } else if ((cl_ulong)ret_info == 2) {
*(cl_kernel_arg_address_qualifier *)param_value = CL_KERNEL_ARG_ADDRESS_CONSTANT;
- } else if ((ulong)ret_info == 3) {
+ } else if ((cl_ulong)ret_info == 3) {
*(cl_kernel_arg_address_qualifier *)param_value = CL_KERNEL_ARG_ADDRESS_LOCAL;
} else {
/* If no address qualifier is specified, the default address qualifier