diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2024-11-12 11:12:10 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2024-11-12 11:12:10 -0500 |
| commit | 322dbbf4ea80f3cb28be82bdb59b6e29cbb2ad75 (patch) | |
| tree | a452173def3113cca357e915c1e065426efd4807 | |
| parent | d83b2f805246d9e0424be636ac240065f7442928 (diff) | |
| download | balls-322dbbf4ea80f3cb28be82bdb59b6e29cbb2ad75.zip | |
fix typo
| -rw-r--r-- | balls.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |