Class Context

Inheritance Relationships

Base Type

Class Documentation

class Context : public cu::Wrapper<CUcontext>

Public Functions

inline Context(int flags, Device &device)
inline unsigned getApiVersion() const
inline Context getCurrent()
inline void setCurrent() const
inline Context popCurrent()
inline void pushCurrent()
inline Device getDevice()
inline size_t getFreeMemory() const
inline size_t getTotalMemory() const
inline Context(CUcontext context, Device &device)

Public Static Functions

static inline CUfunc_cache getCacheConfig()
static inline void setCacheConfig(CUfunc_cache config)
static inline size_t getLimit(CUlimit limit)
template<CUlimit limit>
static inline size_t getLimit()
static inline void setLimit(CUlimit limit, size_t value)
template<CUlimit limit>
static inline void setLimit(size_t value)
static inline void synchronize()

Friends

friend class Device