core/ocl: update dynamic runtime

This commit is contained in:
Alexander Alekhin
2013-12-06 18:41:23 +04:00
parent 381d7851b7
commit 5ecf759742
32 changed files with 1288 additions and 88 deletions
+12
View File
@@ -244,6 +244,18 @@ struct TLSData
static TLSData* get();
};
#if defined(BUILD_SHARED_LIBS)
#if defined WIN32 || defined _WIN32 || defined WINCE
#define CL_RUNTIME_EXPORT __declspec(dllexport)
#elif defined __GNUC__ && __GNUC__ >= 4
#define CL_RUNTIME_EXPORT __attribute__ ((visibility ("default")))
#else
#define CL_RUNTIME_EXPORT
#endif
#else
#define CL_RUNTIME_EXPORT
#endif
namespace ocl
{
MatAllocator* getOpenCLAllocator();