GHOST  1.1.2
General, Hybrid, and Optimized Sparse Toolkit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
GPU data transfer

Function to transfer data to/from GPUs. More...

Functions

ghost_error ghost_densemat_download (ghost_densemat *vec)
 Downloads a densemat from a compute device, excluding halo elements. More...
 
ghost_error ghost_densemat_upload (ghost_densemat *vec)
 Uploads a densemat to a compute device, excluding halo elements. The densemat must be present on both host and device. More...
 

Detailed Description

Function to transfer data to/from GPUs.

Function Documentation

ghost_error ghost_densemat_download ( ghost_densemat vec)

Downloads a densemat from a compute device, excluding halo elements.

The densemat must be present on both host and device. Does nothing if the densemat is not present on the device.

Parameters
vecThe densemat.
Returns
GHOST_SUCCESS on success or an error indicator.
ghost_error ghost_densemat_upload ( ghost_densemat vec)

Uploads a densemat to a compute device, excluding halo elements. The densemat must be present on both host and device.

Parameters
vecThe densemat.