Polaris Project
Functions
Context Management

Functions

PolarisContextpolaris_create_context (int devid)
 Create a polaris context object on a specific device. More...
 
void polaris_destroy_context (PolarisContext *ctxt)
 Free and destroy a polaris context. More...
 

Detailed Description

Functions related to operations of PolarisContext.

Function Documentation

◆ polaris_create_context()

PolarisContext* polaris_create_context ( int  devid)

Create a polaris context object on a specific device.

The device id can be obtained by calling polaris_get_devices(). Once the context is created, it cannot be moved to another device.

Parameters
[in]devidDevice id
Returns
Pointer to a PolarisContext object, NULL for failure
See also
polaris_get_devices()

◆ polaris_destroy_context()

void polaris_destroy_context ( PolarisContext ctxt)

Free and destroy a polaris context.

Parameters
[in]ctxtPointer to a PolarisContext object