cuda.core.WorkqueueResource#

class cuda.core.WorkqueueResource(*args, **kwargs)#

Represent a workqueue resource for a device or green context.

Merges CU_DEV_RESOURCE_TYPE_WORKQUEUE_CONFIG and CU_DEV_RESOURCE_TYPE_WORKQUEUE under one user-facing type. Instances are returned by DeviceResources.workqueue and cannot be instantiated directly.

Methods

__init__(*args, **kwargs)#
configure(self, options)#

Configure the workqueue resource in place.

Parameters:

options (WorkqueueResourceOptions) – Configuration options (sharing scope, etc.).

Attributes

handle#

Return the address of the underlying config CUdevResource struct.