HIP: Heterogenous-computing Interface for Portability
Public Types | Public Member Functions | Public Attributes | Friends | List of all members
ihipStream_t Class Reference

Public Types

enum  ScheduleMode { Auto, Spin, Yield }
 
typedef uint64_t SeqNum_t
 

Public Member Functions

 ihipStream_t (ihipCtx_t *ctx, hc::accelerator_view av, unsigned int flags)
 
void locked_copySync (void *dst, const void *src, size_t sizeBytes, unsigned kind, bool resolveOn=true)
 
void locked_copyAsync (void *dst, const void *src, size_t sizeBytes, unsigned kind)
 
void lockedSymbolCopySync (hc::accelerator &acc, void *dst, void *src, size_t sizeBytes, size_t offset, unsigned kind)
 
void lockedSymbolCopyAsync (hc::accelerator &acc, void *dst, void *src, size_t sizeBytes, size_t offset, unsigned kind)
 
LockedAccessor_StreamCrit_t lockopen_preKernelCommand ()
 
void lockclose_postKernelCommand (const char *kernelName, hc::accelerator_view *av)
 
void locked_wait ()
 
hc::accelerator_view * locked_getAv ()
 
void locked_waitEvent (hipEvent_t event)
 
void locked_recordEvent (hipEvent_t event)
 
ihipStreamCritical_tcriticalData ()
 
hc::hcWaitMode waitMode () const
 
void wait (LockedAccessor_StreamCrit_t &crit)
 
void launchModuleKernel (hc::accelerator_view av, hsa_signal_t signal, uint32_t blockDimX, uint32_t blockDimY, uint32_t blockDimZ, uint32_t gridDimX, uint32_t gridDimY, uint32_t gridDimZ, uint32_t groupSegmentSize, uint32_t sharedMemBytes, void *kernarg, size_t kernSize, uint64_t kernel)
 
const ihipDevice_tgetDevice () const
 
ihipCtx_tgetCtx () const
 
bool isDefaultStream () const
 

Public Attributes

SeqNum_t _id
 
unsigned _flags
 
ihipStreamCritical_t _criticalData
 

Friends

std::ostream & operator<< (std::ostream &os, const ihipStream_t &s)
 
hipError_t hipStreamQuery (hipStream_t)
 Return hipSuccess if all of the operations in the specified stream have completed, or hipErrorNotReady if not. More...
 

Friends And Related Function Documentation

hipError_t hipStreamQuery ( hipStream_t  stream)
friend

Return hipSuccess if all of the operations in the specified stream have completed, or hipErrorNotReady if not.

Parameters
[in]streamstream to query
Returns
hipSuccess, hipErrorNotReady, hipErrorInvalidResourceHandle

This is thread-safe and returns a snapshot of the current state of the queue. However, if other host threads are sending work to the stream, the status may change immediately after the function is called. It is typically used for debug.

See also
hipStreamCreate, hipStreamCreateWithFlags, hipStreamWaitEvent, hipStreamSynchronize, hipStreamDestroy

The documentation for this class was generated from the following files: