summaryrefslogtreecommitdiff
path: root/utests/load_program_from_spir.cpp
diff options
context:
space:
mode:
authorLuo Xionghu <xionghu.luo@intel.com>2015-07-13 14:51:34 -0400
committerYang Rong <rong.r.yang@intel.com>2015-07-14 17:00:55 +0800
commitce53344f318e020e1862b0ea38ea7b213e24b2ea (patch)
treeb74c2f35825674e536be81cc3286696e0c227a0f /utests/load_program_from_spir.cpp
parent89c6f17e83294b7d24882de42915a2633905e34d (diff)
downloadbeignet-ce53344f318e020e1862b0ea38ea7b213e24b2ea.tar.gz
fix utest bug.
should query and use extension info by same API clGetPlatformInfo. Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: "Yang, Rong R" <rong.r.yang@intel.com>
Diffstat (limited to 'utests/load_program_from_spir.cpp')
-rw-r--r--utests/load_program_from_spir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utests/load_program_from_spir.cpp b/utests/load_program_from_spir.cpp
index f03e7c25..8ea1cd46 100644
--- a/utests/load_program_from_spir.cpp
+++ b/utests/load_program_from_spir.cpp
@@ -16,7 +16,7 @@ static void test_load_program_from_spir(void)
std::string extensionStr;
OCL_CALL (clGetPlatformInfo, platform, CL_PLATFORM_EXTENSIONS, 0, 0, &param_value_size);
std::vector<char> param_value(param_value_size);
- OCL_CALL (clGetDeviceInfo, device, CL_DEVICE_EXTENSIONS, param_value_size, param_value.empty() ? NULL : &param_value.front(), &param_value_size);
+ OCL_CALL (clGetPlatformInfo, platform, CL_PLATFORM_EXTENSIONS, param_value_size, param_value.empty() ? NULL : &param_value.front(), &param_value_size);
if (!param_value.empty())
extensionStr = std::string(&param_value.front(), param_value_size-1);