PetscStreamType#
Stream blocking mode, indicates how a stream implementation will interact with the default NULL
stream, which is usually blocking.
Synopsis#
#include <petscdevicetypes.h>
typedef enum {
PETSC_STREAM_GLOBAL_BLOCKING,
PETSC_STREAM_DEFAULT_BLOCKING,
PETSC_STREAM_GLOBAL_NONBLOCKING,
PETSC_STREAM_MAX
} PetscStreamType;
Values#
PETSC_STREAM_GLOBAL_BLOCKING
- Alias forNULL
stream. Block the host for all other streams to finish work before starting its operations.PETSC_STREAM_DEFAULT_BLOCKING
- Stream will act independent of other streams, but will still be blocked by actions on theNULL
stream.PETSC_STREAM_GLOBAL_NONBLOCKING
- Stream is truly asynchronous, and is blocked by nothing, not even theNULL
stream.PETSC_STREAM_MAX
- Always 1 greater than the largestPetscStreamType
, do not use
See Also#
PetscDeviceContextSetStreamType()
, PetscDeviceContextGetStreamType()
Level#
intermediate
Location#
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages