summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2024-11-12 11:12:10 -0500
committerSam Anthony <sam@samanthony.xyz>2024-11-12 11:12:10 -0500
commit322dbbf4ea80f3cb28be82bdb59b6e29cbb2ad75 (patch)
treea452173def3113cca357e915c1e065426efd4807
parentd83b2f805246d9e0424be636ac240065f7442928 (diff)
downloadballs-322dbbf4ea80f3cb28be82bdb59b6e29cbb2ad75.zip
fix typo
-rw-r--r--balls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/balls.c b/balls.c
index e03ac77..beff72e 100644
--- a/balls.c
+++ b/balls.c
@@ -161,10 +161,10 @@ initCL(void) {
cpuPlatform = platforms[i];
/* Get GPU device. */
- i = getDevicePlatform(platforms, nPlatforms, CL_DEVICE_TYPE_CPU, &cpuDevice);
+ i = getDevicePlatform(platforms, nPlatforms, CL_DEVICE_TYPE_GPU, &gpuDevice);
if (i < 0)
- sysfatal("No CPU device available.\n");
- cpuPlatform = platforms[i];
+ sysfatal("No GPU device available.\n");
+ gpuPlatform = platforms[i];
/* Configure properties for OpenGL interoperability. */
#ifdef WINDOWS