From 786384664e9469131e1844f755d144d3b76770b6 Mon Sep 17 00:00:00 2001 From: jsteube Date: Thu, 8 Feb 2018 09:42:59 +0100 Subject: [PATCH] DECLSPEC for CPU --- OpenCL/inc_vendor.cl | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/OpenCL/inc_vendor.cl b/OpenCL/inc_vendor.cl index 6097915b5..e9774071a 100644 --- a/OpenCL/inc_vendor.cl +++ b/OpenCL/inc_vendor.cl @@ -81,11 +81,16 @@ * function declarations can have a large influence depending on the opencl runtime */ - -#ifdef IS_NV -#define DECLSPEC -#else +#ifdef IS_CPU +#define DECLSPEC static +#elif IS_GPU +#ifdef IS_AMD #define DECLSPEC inline +#else +#define DECLSPEC +#endif +#else +#define DECLSPEC #endif /**