openmp_common.h
Go to the documentation of this file.
00001 #ifndef OPENMP_COMMON_H
00002 #define OPENMP_COMMON_H
00003 
00005 
00006 #define dxDeviceContext int
00007 #define dxDeviceQueue int
00008 #define dxParallelInfF std::numeric_limits<float>::infinity()
00009 #define dxParallelInfD std::numeric_limits<double>::infinity()
00010 #define dxOverload
00011 #define dxConstant
00012 #define dxDevice
00013 #define dxDeviceData
00014 #define dxHost
00015 #define dxMul24(a, b) ((a)*(b))
00016 #define dxParams
00017 #define dxGlobal
00018 #define dxShared static
00019 #define dxSyncthreads()
00020 #define dxBlockIdx s_blockIdx
00021 #define dxBlockDim s_blockDim
00022 #define dxThreadIdx s_threadIdx
00023 
00025 
00026 // Note: For OpenMP, we have no notion of a context, these are just placeholders
00027 static dxDeviceContext sCpuContext = 0;
00028 static dxDeviceQueue sDeviceQueue = 0;
00029 
00031 
00032 inline dxDeviceContext dxGetDeviceContext( ) { return sCpuContext; }
00033 inline dxDeviceQueue dxGetDeviceQueue( ) { return sDeviceQueue; }
00034 inline void dxGlobalSync() { }
00035 inline void dxInitDevice() { }
00036 inline void dxShutdownDevice() { }
00037 
00038 #endif


parallel_quickstep
Author(s): Jared Duke
autogenerated on Wed Apr 23 2014 10:23:51