GPUOcelot
Static Public Member Functions

cal::CalDriver Class Reference

Provides access to the CAL runtime/driver. More...

#include <CalDriver.h>

Collaboration diagram for cal::CalDriver:
Collaboration graph
[legend]

List of all members.

Public Member Functions

Initialization
void calInit () const
void calShutdown () const
Device Management
void calDeviceGetCount (CALuint *count) const
void calDeviceGetAttribs (CALdeviceattribs *attribs, CALuint ordinal) const
void calDeviceGetStatus (CALdevicestatus *status, CALdevice dev) const
void calDeviceOpen (CALdevice *dev, CALuint ordinal) const
void calDeviceClose (CALdevice dev) const
void calDeviceGetInfo (CALdeviceinfo *info, CALuint ordinal) const
Context Management
void calCtxCreate (CALcontext *ctx, CALdevice dev) const
void calCtxDestroy (CALcontext ctx) const
void calCtxGetMem (CALmem *mem, CALcontext ctx, CALresource res) const
void calCtxReleaseMem (CALcontext ctx, CALmem mem) const
void calCtxSetMem (CALcontext ctx, CALname name, CALmem mem) const
Module Management
void calModuleLoad (CALmodule *module, CALcontext ctx, CALimage image) const
void calModuleUnload (CALcontext ctx, CALmodule module) const
void calModuleGetEntry (CALfunc *func, CALcontext ctx, CALmodule module, const CALchar *procName) const
void calModuleGetName (CALname *name, CALcontext ctx, CALmodule module, const CALchar *varName) const
Memory Management
void calResAllocLocal1D (CALresource *res, CALdevice dev, CALuint width, CALformat format, CALuint flags) const
void calResAllocRemote1D (CALresource *res, CALdevice *dev, CALuint deviceCount, CALuint width, CALformat format, CALuint flags) const
void calResFree (CALresource res) const
void calResMap (CALvoid **pPtr, CALuint *pitch, CALresource res, CALuint flags) const
void calResUnmap (CALresource res) const
Execution Management
void calCtxRunProgramGrid (CALevent *event, CALcontext ctx, CALprogramGrid *pProgramGrid) const
bool calCtxIsEventDone (CALcontext ctx, CALevent event) const
Compiler Interface
void calclCompile (CALobject *obj, CALlanguage language, const CALchar *source, CALtarget target) const
void calclLink (CALimage *image, CALobject *obj, CALuint objCount) const
void calclFreeObject (CALobject obj) const
void calclFreeImage (CALimage image) const
Error Reporting
const CALcharcalGetErrorString () const

Static Public Member Functions

static const CalDriverInstance ()
 Singleton instance getter.

Detailed Description

Provides access to the CAL runtime/driver.

Implemented as a Singleton. It is non-thread-safe for now (is CAL thread-safe?)


Member Function Documentation

void cal::CalDriver::calclCompile ( CALobject obj,
CALlanguage  language,
const CALchar source,
CALtarget  target 
) const
void cal::CalDriver::calclFreeImage ( CALimage  image) const
void cal::CalDriver::calclFreeObject ( CALobject  obj) const
void cal::CalDriver::calclLink ( CALimage image,
CALobject obj,
CALuint  objCount 
) const
void cal::CalDriver::calCtxCreate ( CALcontext ctx,
CALdevice  dev 
) const
void cal::CalDriver::calCtxDestroy ( CALcontext  ctx) const
void cal::CalDriver::calCtxGetMem ( CALmem mem,
CALcontext  ctx,
CALresource  res 
) const
bool cal::CalDriver::calCtxIsEventDone ( CALcontext  ctx,
CALevent  event 
) const
void cal::CalDriver::calCtxReleaseMem ( CALcontext  ctx,
CALmem  mem 
) const
void cal::CalDriver::calCtxRunProgramGrid ( CALevent event,
CALcontext  ctx,
CALprogramGrid pProgramGrid 
) const
void cal::CalDriver::calCtxSetMem ( CALcontext  ctx,
CALname  name,
CALmem  mem 
) const
void cal::CalDriver::calDeviceClose ( CALdevice  dev) const
void cal::CalDriver::calDeviceGetAttribs ( CALdeviceattribs attribs,
CALuint  ordinal 
) const
void cal::CalDriver::calDeviceGetCount ( CALuint count) const
void cal::CalDriver::calDeviceGetInfo ( CALdeviceinfo info,
CALuint  ordinal 
) const
void cal::CalDriver::calDeviceGetStatus ( CALdevicestatus status,
CALdevice  dev 
) const
void cal::CalDriver::calDeviceOpen ( CALdevice dev,
CALuint  ordinal 
) const
const CALchar * cal::CalDriver::calGetErrorString ( ) const
void cal::CalDriver::calInit ( ) const
void cal::CalDriver::calModuleGetEntry ( CALfunc func,
CALcontext  ctx,
CALmodule  module,
const CALchar procName 
) const
void cal::CalDriver::calModuleGetName ( CALname name,
CALcontext  ctx,
CALmodule  module,
const CALchar varName 
) const
void cal::CalDriver::calModuleLoad ( CALmodule module,
CALcontext  ctx,
CALimage  image 
) const
void cal::CalDriver::calModuleUnload ( CALcontext  ctx,
CALmodule  module 
) const
void cal::CalDriver::calResAllocLocal1D ( CALresource res,
CALdevice  dev,
CALuint  width,
CALformat  format,
CALuint  flags 
) const
void cal::CalDriver::calResAllocRemote1D ( CALresource res,
CALdevice dev,
CALuint  deviceCount,
CALuint  width,
CALformat  format,
CALuint  flags 
) const
void cal::CalDriver::calResFree ( CALresource  res) const
void cal::CalDriver::calResMap ( CALvoid **  pPtr,
CALuint pitch,
CALresource  res,
CALuint  flags 
) const
void cal::CalDriver::calResUnmap ( CALresource  res) const
void cal::CalDriver::calShutdown ( ) const
const CalDriver * cal::CalDriver::Instance ( ) [static]

Singleton instance getter.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines