diff options
author | Benjamin Segovia <segovia.benjamin@gmail.com> | 2012-05-03 16:24:24 +0000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-08-10 16:16:58 -0700 |
commit | ccd746d3af1a4778e5c145fb752ea5a739f70840 (patch) | |
tree | 0c2be48dec1047e9629210ecda488a5fa5e087f8 /utests/utest_helper.hpp | |
parent | 1a9bcd8ff623a0b96cb034df711e4b02bfab8c6e (diff) | |
download | beignet-ccd746d3af1a4778e5c145fb752ea5a739f70840.tar.gz |
Revamped tests to make them smaller and simpler (and more automatic to use)
Diffstat (limited to 'utests/utest_helper.hpp')
-rw-r--r-- | utests/utest_helper.hpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/utests/utest_helper.hpp b/utests/utest_helper.hpp index 5d044e6d..f014b37c 100644 --- a/utests/utest_helper.hpp +++ b/utests/utest_helper.hpp @@ -27,6 +27,7 @@ #include "CL/cl.h" #include "CL/cl_intel.h" +#include "utest.hpp" #include <assert.h> #include <stdio.h> #include <stdlib.h> @@ -70,17 +71,13 @@ CALL (clSetKernelArg, kernel, ID, SIZE, ARG); \ } while (0) -#ifdef __cplusplus -extern "C" { -#endif - +enum { MAX_BUFFER_N = 16 }; extern cl_platform_id platform; extern cl_device_id device; extern cl_context ctx; extern cl_program program; extern cl_kernel kernel; extern cl_command_queue queue; -enum { MAX_BUFFER_N = 16 }; extern cl_mem buf[MAX_BUFFER_N]; // initialized at NULL extern void* buf_data[MAX_BUFFER_N]; // initialized at NULL extern size_t globals[3]; // initialized at zero @@ -119,9 +116,5 @@ extern void cl_report_error(cl_int err); /* Nicely output the performance counters */ extern void cl_report_perf_counters(cl_mem perf); -#ifdef __cplusplus -} -#endif - #endif /* __UTEST_HELPER_HPP__ */ |