blob: 4599c957a8befde6d01266f7a51576134e5199c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include "utest_helper.hpp"
void compiler_function_qualifiers(void)
{
OCL_CREATE_KERNEL("compiler_function_qualifiers");
size_t param_value_size;
void* param_value;
cl_int err;
err = clGetKernelInfo(kernel, CL_KERNEL_ATTRIBUTES, 0, NULL, ¶m_value_size);
OCL_ASSERT(err == CL_SUCCESS);
param_value = malloc(param_value_size);
err = clGetKernelInfo(kernel, CL_KERNEL_ATTRIBUTES, param_value_size, param_value, NULL);
OCL_ASSERT(err == CL_SUCCESS);
free(param_value);
}
MAKE_UTEST_FROM_FUNCTION(compiler_function_qualifiers);
|