From 322dbbf4ea80f3cb28be82bdb59b6e29cbb2ad75 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Tue, 12 Nov 2024 11:12:10 -0500 Subject: fix typo --- balls.c | 6 +++--- 1 file 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 -- cgit v1.2.3