Changeset View
Changeset View
Standalone View
Standalone View
libomptarget/deviceRTLs/nvptx/src/support.h
Show All 26 Lines | |||||
}; | }; | ||||
INLINE void setExecutionParameters(ExecutionMode EMode, RuntimeMode RMode); | INLINE void setExecutionParameters(ExecutionMode EMode, RuntimeMode RMode); | ||||
INLINE bool isGenericMode(); | INLINE bool isGenericMode(); | ||||
INLINE bool isSPMDMode(); | INLINE bool isSPMDMode(); | ||||
INLINE bool isRuntimeUninitialized(); | INLINE bool isRuntimeUninitialized(); | ||||
INLINE bool isRuntimeInitialized(); | INLINE bool isRuntimeInitialized(); | ||||
INLINE int getParallelLevel(int WarpId); | |||||
INLINE void setParallelLevel(int WarpId, int Val); | |||||
INLINE void changeParallelLevel(int WarpId, int Val, bool IsIncrement); | |||||
//////////////////////////////////////////////////////////////////////////////// | //////////////////////////////////////////////////////////////////////////////// | ||||
// get info from machine | // get info from machine | ||||
//////////////////////////////////////////////////////////////////////////////// | //////////////////////////////////////////////////////////////////////////////// | ||||
// get low level ids of resources | // get low level ids of resources | ||||
INLINE int GetThreadIdInBlock(); | INLINE int GetThreadIdInBlock(); | ||||
INLINE int GetBlockIdInKernel(); | INLINE int GetBlockIdInKernel(); | ||||
INLINE int GetNumberOfBlocksInKernel(); | INLINE int GetNumberOfBlocksInKernel(); | ||||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |