summaryrefslogtreecommitdiff
path: root/samples/samax.c
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2023-05-14 11:25:15 +0200
committerGitHub <noreply@github.com>2023-05-14 11:25:15 +0200
commit221121b8407d5538cfed2f53973303f02810d856 (patch)
tree2040b81a268d10f8f51aa37af4d16bc3a9d74489 /samples/samax.c
parent8d2f3540e9b2081c8550d3ffb4fd53e94ca7b54f (diff)
Add Github Actions CI (#464)
This replaces the old Travis CI builds with Github Actions that test on both Ubuntu and MacOS, with both Clang and GCC. The builds on macOS also run the tests and some other programs, on Ubuntu OpenCL is not working at the moment. Because these tests use new/different compilers, I fixed a few warnings and errors along the way.
Diffstat (limited to 'samples/samax.c')
-rw-r--r--samples/samax.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/samax.c b/samples/samax.c
index 36e78846..27a8f133 100644
--- a/samples/samax.c
+++ b/samples/samax.c
@@ -19,7 +19,7 @@
#include <stdio.h>
#include <string.h>
-#define CL_TARGET_OPENCL_VERSION 110
+#define CL_TARGET_OPENCL_VERSION 120
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS // to disable deprecation warnings
// Includes the CLBlast library (C interface)
@@ -84,7 +84,7 @@ int main(void) {
clEnqueueReadBuffer(queue, device_output, CL_TRUE, 0, 1*sizeof(unsigned int), host_output, 0, NULL, NULL);
// Example completed. See "clblast_c.h" for status codes (0 -> success).
- printf("Completed iSAMAX with status %d: array of %d values with staircases from 0..9 repeated, max at index %zu with value %.0lf\n",
+ printf("Completed iSAMAX with status %d: array of %zu values with staircases from 0..9 repeated, max at index %u with value %.0lf\n",
status, n, host_output[0], host_input[host_output[0]]);
// Clean-up