diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2017-02-08 10:35:08 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2017-02-08 10:30:24 +0100 |
commit | 1bbd841b8e80e78ffcd5789ebf33645777511495 (patch) | |
tree | f94c56e7efe7a11258764044bf412147417beed9 /ufo/ufo-resources.c | |
parent | 016fc2e87aa4a93f15f3301057311095369683d6 (diff) |
Make device usage output unambiguous
Diffstat (limited to 'ufo/ufo-resources.c')
-rw-r--r-- | ufo/ufo-resources.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ufo/ufo-resources.c b/ufo/ufo-resources.c index 3548ef6..92e240c 100644 --- a/ufo/ufo-resources.c +++ b/ufo/ufo-resources.c @@ -434,10 +434,10 @@ initialize_opencl (UfoResourcesPrivate *priv) device_type |= priv->device_type & UFO_DEVICE_GPU ? CL_DEVICE_TYPE_GPU : 0; device_type |= priv->device_type & UFO_DEVICE_ACC ? CL_DEVICE_TYPE_ACCELERATOR : 0; - g_debug ("INFO Using CPUs=%i GPUs=%i Accelerators=%i", - (device_type & CL_DEVICE_TYPE_CPU) != 0, - (device_type & CL_DEVICE_TYPE_GPU) != 0, - (device_type & CL_DEVICE_TYPE_ACCELERATOR) != 0); + g_debug ("INFO Using CPUs=%c GPUs=%c Accelerators=%c", + (device_type & CL_DEVICE_TYPE_CPU) != 0 ? 'y' : 'n', + (device_type & CL_DEVICE_TYPE_GPU) != 0 ? 'y' : 'n', + (device_type & CL_DEVICE_TYPE_ACCELERATOR) != 0 ? 'y' : 'n'); errcode = clGetDeviceIDs (priv->platform, device_type, 0, NULL, &priv->n_devices); UFO_RESOURCES_CHECK_AND_SET (errcode, &priv->construct_error); |