Psi Lambda LLC ψ(λκ) Kappa Library User Guide

Context Attributes

The attributes at a context level can be retrieved by executing the statement:

!Context/Attributes -> <context_name>;

where <context_name> is the name of the current context. This create the following Value objects:

/kappa/CUDA/<context_name>#MemoryFree

/kappa/CUDA/<context_name>#MemoryTotal

/kappa/CUDA/<context_name>#MemoryUsed

/kappa/CUDA/<context_name>#APIVersion

/kappa/CUDA/<context_name>#DriverVersion

/kappa/CUDA/<context_name>#CacheConfig

/kappa/CUDA/<context_name>#DeviceID

/kappa/CUDA/<context_name>#ThreadStackSize

/kappa/CUDA/<context_name>#PrintfFIFOSize

/kappa/CUDA/<context_name>#HeapSize

Please refer to the CUDA Reference Manual or C Programming Guide for the cuMemGetInfo, cuCtxGetApiVersion, cuDriverGetVersion, cuCtxGetCacheConfig, cuCtxGetDevice, and cuCtxGetLimit functions respectively for details for these values.

Page