summaryrefslogtreecommitdiff
path: root/utests/utest_helper.cpp
diff options
context:
space:
mode:
authorSimon Richter <Simon.Richter@hogyros.de>2013-04-22 11:26:25 +0200
committerZhigang Gong <zhigang.gong@linux.intel.com>2013-04-22 18:04:14 +0800
commit1c018c6fd12efce72f1dfada72fb3ae10ac5114a (patch)
treefdc40565fea9e25bb4f3e61ad05e818000fff989 /utests/utest_helper.cpp
parent2dbfe92a7277e3d427a5ea3031feb65bb3570d9e (diff)
downloadbeignet-1c018c6fd12efce72f1dfada72fb3ae10ac5114a.tar.gz
Rename Intel specific extension functions for ICD
The ICD extension specification requires that extension function names end in the vendor name to allow clGetExtensionFunctionAddress to switch between implementations. Signed-off-by: Simon Richter <Simon.Richter@hogyros.de> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'utests/utest_helper.cpp')
-rw-r--r--utests/utest_helper.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/utests/utest_helper.cpp b/utests/utest_helper.cpp
index b5365981..3e73db39 100644
--- a/utests/utest_helper.cpp
+++ b/utests/utest_helper.cpp
@@ -216,7 +216,7 @@ do_kiss_path(const char *file, cl_device_id device)
if (device == NULL)
sub_path = "";
else {
- if (clIntelGetGenVersion(device, &ver) != CL_SUCCESS)
+ if (clGetGenVersionIntel(device, &ver) != CL_SUCCESS)
clpanic("Unable to get Gen version", -1);
sub_path = "";
}
@@ -240,7 +240,7 @@ cl_kernel_init(const char *file_name, const char *kernel_name, int format)
/* Load the program and build it */
ker_path = do_kiss_path(file_name, device);
if (format == LLVM)
- program = clCreateProgramWithLLVM(ctx, 1, &device, ker_path, &status);
+ program = clCreateProgramWithLLVMIntel(ctx, 1, &device, ker_path, &status);
else if (format == SOURCE) {
cl_file_map_t *fm = cl_file_map_new();
FATAL_IF (cl_file_map_open(fm, ker_path) != CL_FILE_MAP_SUCCESS,
@@ -428,8 +428,8 @@ cl_test_destroy(void)
{
cl_kernel_destroy();
cl_ocl_destroy();
- printf("%i memory leaks\n", clIntelReportUnfreed());
- assert(clIntelReportUnfreed() == 0);
+ printf("%i memory leaks\n", clReportUnfreedIntel());
+ assert(clReportUnfreedIntel() == 0);
}
void
@@ -438,7 +438,7 @@ cl_buffer_destroy(void)
int i;
for (i = 0; i < MAX_BUFFER_N; ++i) {
if (buf_data[i] != NULL) {
- clIntelUnmapBuffer(buf[i]);
+ clUnmapBufferIntel(buf[i]);
buf_data[i] = NULL;
}
if (buf[i] != NULL) {
@@ -456,7 +456,7 @@ cl_report_perf_counters(cl_mem perf)
uint32_t i;
if (perf == NULL)
return;
- start = (uint32_t*) clIntelMapBuffer(perf, &status);
+ start = (uint32_t*) clMapBufferIntel(perf, &status);
assert(status == CL_SUCCESS && start != NULL);
end = start + 128;
@@ -481,7 +481,7 @@ cl_report_perf_counters(cl_mem perf)
}
printf("\n\n");
- clIntelUnmapBuffer(perf);
+ clUnmapBufferIntel(perf);
}
struct bmphdr {