opencl_common.h
Go to the documentation of this file.
00001 #ifndef OPENCL_COMMON_H
00002 #define OPENCL_COMMON_H
00003 
00005 
00006 #define dxDeviceContext cl_context
00007 #define dxDeviceQueue cl_command_queue
00008 #define dxParallelInfF CL_HUGEVAL_F
00009 #define dxParallelInfD CL_HUGEVAL
00010 #define dxOverload __OVERLOADABLE__
00011 #define dxDevice
00012 #define dxHost
00013 #define dxDeviceData __global
00014 #define dxConstant __constant
00015 #define dxParams params
00016 #define dxMul24(a, b) mul24(a, b)
00017 #define dxGlobal __kernel
00018 #define dxShared __local
00019 #define dxSyncthreads() barrier(CLK_LOCAL_MEM_FENCE)
00020 
00021 #define dxGridDimX() get_num_groups(0)
00022 #define dxBlockIdxX() get_group_id(0)
00023 #define dxBlockDimX() get_local_size(0)
00024 #define dxThreadIdxX() get_local_id(0)
00025 #define dxGlobalOffsetX() get_global_offset(0)
00026 #define dxGlobalIdxX() get_global_id(0)
00027 
00028 #define dxBlockIdxY() get_group_id(1)
00029 #define dxBlockDimY() get_local_size(1)
00030 #define dxThreadIdxY() get_local_id(1)
00031 #define dxGlobalOffsetY() get_global_offset(1)
00032 #define dxGlobalIdxY() get_global_id(1)
00033 
00034 #define dxExecKernel(numb, numt, kfunc, args)
00035 //kfunc<<<numb, numt>>>args
00036 
00038 
00039 #endif


parallel_quickstep
Author(s): Jared Duke
autogenerated on Fri Jan 3 2014 11:36:56