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:
Kevin Petit
2019-02-20 16:10:40 +00:00
committed by Kévin Petit
parent 05a11d8e49
commit becdc3a1ad
2 changed files with 4 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
set(MODULE_NAME PRINTF)
set(CMAKE_CXX_STANDARD 11)
set(${MODULE_NAME}_SOURCES
test_printf.c
util_printf.c

View File

@@ -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);