mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Fix build of printf test
Also build as C++11 (required for unique_ptr) Signed-off-by: Kevin Petit <kevin.petit@arm.com>
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
set(MODULE_NAME PRINTF)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
|
||||
set(${MODULE_NAME}_SOURCES
|
||||
test_printf.c
|
||||
util_printf.c
|
||||
|
||||
@@ -410,6 +410,7 @@ static int doTest(cl_command_queue queue, cl_context context, const unsigned int
|
||||
char _analysisBuffer[ANALYSIS_BUFFER_SIZE];
|
||||
cl_uint out32 = 0;
|
||||
cl_ulong out64 = 0;
|
||||
int fd = -1;
|
||||
|
||||
// Define an index space (global work size) of threads for execution.
|
||||
size_t globalWorkSize[1];
|
||||
@@ -456,7 +457,7 @@ static int doTest(cl_command_queue queue, cl_context context, const unsigned int
|
||||
}
|
||||
}
|
||||
|
||||
int fd = acquireOutputStream();
|
||||
fd = acquireOutputStream();
|
||||
globalWorkSize[0] = 1;
|
||||
cl_event ndrEvt;
|
||||
err = clEnqueueNDRangeKernel(queue, kernel, 1, NULL, globalWorkSize, NULL, 0, NULL,&ndrEvt);
|
||||
|
||||
Reference in New Issue
Block a user