diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2015-09-03 15:12:00 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2015-09-03 15:12:00 +0200 |
commit | f8c2b0db7bea39cd42c0fbf055e0965d530e8c3b (patch) | |
tree | e8975307d9da9acfd4f44ca6718d0eddb780ecff /ufo/ufo-resources.c | |
parent | e8d2ee40bba7585feb9ac2373b3d9beeda676ff5 (diff) |
Define OpenCL constants without value
This might break code but AFAIK the defines are not used within our own code
yet.
Diffstat (limited to 'ufo/ufo-resources.c')
-rw-r--r-- | ufo/ufo-resources.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ufo/ufo-resources.c b/ufo/ufo-resources.c index ac8f25e..91ea9bb 100644 --- a/ufo/ufo-resources.c +++ b/ufo/ufo-resources.c @@ -324,10 +324,10 @@ add_vendor_to_build_opts (GString *opts, cl_platform_id platform) { if (platform_vendor_has_prefix (platform, "NVIDIA")) - g_string_append (opts, "-cl-nv-verbose -DVENDOR=NVIDIA"); + g_string_append (opts, "-cl-nv-verbose -DVENDOR_NVIDIA"); if (platform_vendor_has_prefix (platform, "Advanced Micro Devices")) - g_string_append (opts, "-DVENDOR=AMD"); + g_string_append (opts, "-DVENDOR_AMD"); } static void @@ -496,7 +496,7 @@ get_device_build_options (UfoResourcesPrivate *priv, UFO_RESOURCES_CHECK_CLERR (clGetDeviceInfo (priv->devices[device_index], CL_DEVICE_NAME, size, name, NULL)); - g_string_append_printf (opts, " -DDEVICE=%s", escape_device_name (name)); + g_string_append_printf (opts, " -DDEVICE_%s", escape_device_name (name)); g_free (name); g_list_foreach (priv->paths, (GFunc) append_include_path, opts); |