From eb37570583ec639b4270e08b429ceb9bc6fe3077 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanko=20Krsti=C4=87?= Date: Fri, 4 Nov 2016 16:53:00 +0100 Subject: [PATCH] coding fixes OCL --- ocl_device_utils/opencl.cpp | 2 +- ocl_xpm/ocl_xmp.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ocl_device_utils/opencl.cpp b/ocl_device_utils/opencl.cpp index f8c4b3ae9..cea4c9082 100644 --- a/ocl_device_utils/opencl.cpp +++ b/ocl_device_utils/opencl.cpp @@ -85,7 +85,7 @@ bool clCompileKernel(cl_context gContext, try { stream.open(i); } catch (std::system_error& e) { - fprintf(stderr, " %s\n", e.code().message()); + fprintf(stderr, " %s\n", e.code().message().c_str()); return false; } std::string str((std::istreambuf_iterator(stream)), std::istreambuf_iterator()); diff --git a/ocl_xpm/ocl_xmp.cpp b/ocl_xpm/ocl_xmp.cpp index 42e2ff33d..d0a96a2a8 100644 --- a/ocl_xpm/ocl_xmp.cpp +++ b/ocl_xpm/ocl_xmp.cpp @@ -204,7 +204,7 @@ void ocl_xmp::start(ocl_xmp& device_context) { for (size_t i = 0; i < gpus.size(); i++) { char kernelName[64]; - sprintf(kernelName, "equiw200k9_gpu%u_%u.bin", (unsigned)i); + sprintf(kernelName, "equiw200k9_gpu%u.bin", (unsigned)i); if (!clCompileKernel(gContext[i], gpus[i], kernelName,