Storage and methods for GPU card data.

Details

Data is held in an external pointer.

Methods

Public methods


Method new()

Usage

cardR6$new(id = 0)

Arguments

id

GPU id number.

Details

Class initializer.


Method set()

Usage

cardR6$set(id)

Arguments

id

GPU id number.

Details

Set card to a different GPU.


Method synch()

Usage

cardR6$synch()

Details

Synchronizes the GPU, i.e. blocks further GPU execution until the device completes all previously executed kernels.


Method info()

Usage

cardR6$info()

Details

Print one-line information about the object.


Method print()

Usage

cardR6$print()

Details

Print one-line information about the object.


Method get_id()

Usage

cardR6$get_id()

Details

Returns GPU id number.


Method valid_card()

Usage

cardR6$valid_card()

Details

Returns whether or not the card object is valid.


Method data_ptr()

Usage

cardR6$data_ptr()

Details

Returns the external pointer data. For developers only.


Method clone()

The objects of this class are cloneable with this method.

Usage

cardR6$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.