diff options
author | Ruiling Song <ruiling.song@intel.com> | 2013-09-03 15:42:37 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@linux.intel.com> | 2013-09-04 10:45:31 +0800 |
commit | cffc1b9b0af0cae6c27109f7ba8c3cbb12a78257 (patch) | |
tree | aba9ab8a34515f37c1ac882e61310aebfd5751ba /utests/compiler_function_constant0.cpp | |
parent | 916f6ee9027e18c7fedfca1bc2d5689075cc4584 (diff) |
Change constant unit test to cover 4 byte data type.
Signed-off-by: Ruiling Song <ruiling.song@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'utests/compiler_function_constant0.cpp')
-rw-r--r-- | utests/compiler_function_constant0.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utests/compiler_function_constant0.cpp b/utests/compiler_function_constant0.cpp index c0a8a9d8..6fbbd30a 100644 --- a/utests/compiler_function_constant0.cpp +++ b/utests/compiler_function_constant0.cpp @@ -7,7 +7,7 @@ void compiler_function_constant0(void) // Setup kernel and buffers OCL_CREATE_KERNEL("compiler_function_constant0"); - OCL_CREATE_BUFFER(buf[0], 0, 75 * sizeof(short), NULL); + OCL_CREATE_BUFFER(buf[0], 0, 75 * sizeof(int32_t), NULL); OCL_CREATE_BUFFER(buf[1], 0, 1 * sizeof(char), NULL); OCL_CREATE_BUFFER(buf[2], 0, n * sizeof(uint32_t), NULL); OCL_SET_ARG(0, sizeof(cl_mem), &buf[0]); @@ -17,7 +17,7 @@ void compiler_function_constant0(void) OCL_MAP_BUFFER(0); for(uint32_t i = 0; i < 69; ++i) - ((short *)buf_data[0])[i] = i; + ((int32_t *)buf_data[0])[i] = i; OCL_UNMAP_BUFFER(0); OCL_MAP_BUFFER(1); |