summaryrefslogtreecommitdiff
path: root/utests/runtime_flat_address_space.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/runtime_flat_address_space.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/runtime_flat_address_space.cpp')
-rw-r--r--utests/runtime_flat_address_space.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/utests/runtime_flat_address_space.cpp b/utests/runtime_flat_address_space.cpp
index 0357cbd0..08167c45 100644
--- a/utests/runtime_flat_address_space.cpp
+++ b/utests/runtime_flat_address_space.cpp
@@ -53,7 +53,7 @@ main(int argc, char *argv[])
NULL);
// Be sure that everything run fine
- dst_buffer = (int *) clIntelMapBuffer(dst[j], &status);
+ dst_buffer = (int *) clMapBufferIntel(dst[j], &status);
if (status != CL_SUCCESS)
goto error;
for (uint32_t i = 0; i < n; ++i)
@@ -61,13 +61,13 @@ main(int argc, char *argv[])
fprintf(stderr, "run-time flat address space failed\n");
exit(-1);
}
- OCL_CALL (clIntelUnmapBuffer, dst[j]);
+ OCL_CALL (clUnmapBufferIntel, dst[j]);
}
for (uint32_t j = 0; j < 24; ++j) OCL_CALL (clReleaseMemObject, dst[j]);
cl_test_destroy();
- printf("%i memory leaks\n", clIntelReportUnfreed());
- assert(clIntelReportUnfreed() == 0);
+ printf("%i memory leaks\n", clReportUnfreedIntel());
+ assert(clReportUnfreedIntel() == 0);
error:
return status;