[Beignet] [PATCH] fix utest bug.
Yang, Rong R
rong.r.yang at intel.com
Tue Jul 14 01:43:57 PDT 2015
LGTM, will push it later, thanks.
> -----Original Message-----
> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of
> xionghu.luo at intel.com
> Sent: Tuesday, July 14, 2015 02:52
> To: beignet at lists.freedesktop.org
> Cc: Luo, Xionghu
> Subject: [Beignet] [PATCH] fix utest bug.
>
> From: Luo Xionghu <xionghu.luo at intel.com>
>
> should query and use extension info by same API clGetPlatformInfo.
>
> Signed-off-by: Luo Xionghu <xionghu.luo at intel.com>
> ---
> utests/load_program_from_spir.cpp | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/utests/load_program_from_spir.cpp
> b/utests/load_program_from_spir.cpp
> index f03e7c2..8ea1cd4 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,
> ¶m_value_size);
> std::vector<char> param_value(param_value_size);
> - OCL_CALL (clGetDeviceInfo, device, CL_DEVICE_EXTENSIONS,
> param_value_size, param_value.empty() ? NULL : ¶m_value.front(),
> ¶m_value_size);
> + OCL_CALL (clGetPlatformInfo, platform, CL_PLATFORM_EXTENSIONS,
> param_value_size, param_value.empty() ? NULL : ¶m_value.front(),
> ¶m_value_size);
> if (!param_value.empty())
> extensionStr = std::string(¶m_value.front(), param_value_size-1);
>
> --
> 1.9.1
>
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet
More information about the Beignet
mailing list