From 7a68d978ad1ec96fd0ac6d3da27e0c9ff46243a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C5=91rinc=20Serf=C5=91z=C5=91?= Date: Mon, 3 Jun 2024 10:02:49 +0200 Subject: [PATCH] fix(binaries): Sample lang in binary name --- samples/core/binaries/main.c | 6 +++--- samples/core/binaries/main.cpp | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/samples/core/binaries/main.c b/samples/core/binaries/main.c index b01dcc14..c1a09abc 100644 --- a/samples/core/binaries/main.c +++ b/samples/core/binaries/main.c @@ -187,7 +187,7 @@ int main(int argc, char *argv[]) if (!diag_opts.quiet) cl_util_print_device_info(device); /// Try to read binary - program = cl_util_read_binaries(context, &device, 1, "Collatz", &error); + program = cl_util_read_binaries(context, &device, 1, "Collatz-c", &error); if (error != CL_SUCCESS) { // if binary not present, compile and save @@ -207,7 +207,7 @@ int main(int argc, char *argv[]) OCLERROR_RET(cl_util_build_program(program, device, options), error, prgs); - OCLERROR_RET(cl_util_write_binaries(program, "Collatz"), error, prgs); + OCLERROR_RET(cl_util_write_binaries(program, "Collatz-c"), error, prgs); printf("Binary file written.\n\n"); prgs: @@ -216,7 +216,7 @@ int main(int argc, char *argv[]) free(kernel); OCLERROR_PAR(program = cl_util_read_binaries(context, &device, 1, - "Collatz", &error), + "Collatz-c", &error), error, cont); } diff --git a/samples/core/binaries/main.cpp b/samples/core/binaries/main.cpp index b39cdaea..32776c7d 100644 --- a/samples/core/binaries/main.cpp +++ b/samples/core/binaries/main.cpp @@ -93,7 +93,8 @@ int main(int argc, char* argv[]) try { /// Try to read binary - binaries = cl::util::read_binary_files(devices, "Collatz", &error); + binaries = + cl::util::read_binary_files(devices, "Collatz-cpp", &error); } catch (cl::util::Error& e) { // if binary not present, compile and save @@ -106,7 +107,7 @@ int main(int argc, char* argv[]) program.build(devices.at(0)); binaries = program.getInfo(&error); - cl::util::write_binaries(binaries, devices, "Collatz"); + cl::util::write_binaries(binaries, devices, "Collatz-cpp"); } // if the binary is already present - calculate