CudaContext
Contains information on a CUDA context.
This class allows defining the execution context for CUDA functions. For more information, refer to the CUDA documentation.
This class allows defining the execution context for CUDA functions. For more information, refer to the CUDA documentation.
- The device ID determines the NVIDIA card used by the CUDA functions.
- The CUDA stream determines the stream used by the CUDA functions. If this parameter is null, the ImageDev/CUDA algorithms will use their own stream.
Syntax
Method | Description |
---|---|
Ptr New( int cudaDeviceId = 0, const bool initStream = true ) | Constructor returning a new CUDA Context.
|
int cudaDeviceId() const | Gets the device ID. |
void setCudaDeviceId( int newCudaDeviceId ) | Sets the device ID.
|
void* cudaStream() const | Gets the CUDA stream. |
void setCudaStream( void* newCudaStream ) | Sets the CUDA stream.
|