/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rpp/checkouts/docs-6.2.4/include/rpp.h Source File#
rpp.h
Go to the documentation of this file.
149 extern "C" SHARED_PUBLIC rppStatus_t rppCreateWithBatchSize(rppHandle_t* handle, size_t nBatchSize, Rpp32u numThreads = 0);
241 extern "C" SHARED_PUBLIC rppStatus_t rppCreateWithStream(rppHandle_t* handle, rppAcceleratorQueue_t stream);
260 extern "C" SHARED_PUBLIC rppStatus_t rppCreateWithStreamAndBatchSize(rppHandle_t* handle, rppAcceleratorQueue_t stream, size_t nBatchSize);
295 extern "C" SHARED_PUBLIC rppStatus_t rppSetStream(rppHandle_t handle, rppAcceleratorQueue_t streamID);
313 extern "C" SHARED_PUBLIC rppStatus_t rppGetStream(rppHandle_t handle, rppAcceleratorQueue_t* streamID);
333 extern "C" SHARED_PUBLIC rppStatus_t rppSetAllocator(rppHandle_t handle, rppAllocatorFunction allocator, rppDeallocatorFunction deallocator, void* allocatorContext);
#define RPP_DECLARE_OBJECT(name)
Construct type name from a struct.
Definition: rpp.h:58
SHARED_PUBLIC rppStatus_t rppSetBatchSize(rppHandle_t handle, size_t batchSize)
Set batch size given a RPP handle.
SHARED_PUBLIC rppStatus_t rppSetAllocator(rppHandle_t handle, rppAllocatorFunction allocator, rppDeallocatorFunction deallocator, void *allocatorContext)
Set allocator given a RPP handle.
hipStream_t rppAcceleratorQueue_t
Set rppAcceleratorQueue_t to hipStream_t if RPP_BACKEND_HIP.
Definition: rpp.h:51
SHARED_PUBLIC rppStatus_t rppDestroyHost(rppHandle_t handle)
Destory RPP HOST handle - To be deprecated.
void(* rppDeallocatorFunction)(void *context, void *memory)
Handles RPP context allocations.
Definition: rpp.h:99
SHARED_PUBLIC rppStatus_t rppGetKernelTime(rppHandle_t handle, float *time)
Get time taken by previous kernel.
SHARED_PUBLIC rppStatus_t rppCreateWithStreamAndBatchSize(rppHandle_t *handle, rppAcceleratorQueue_t stream, size_t nBatchSize)
Creates RPP handle with accelerator stream for GPU batch processing.
SHARED_PUBLIC rppStatus_t rppCreateWithBatchSize(rppHandle_t *handle, size_t nBatchSize, Rpp32u numThreads=0)
Creates RPP handle for HOST batch processing.
void *(* rppAllocatorFunction)(void *context, size_t sizeBytes)
Handles RPP context allocations.
Definition: rpp.h:91
SHARED_PUBLIC rppStatus_t rppSetStream(rppHandle_t handle, rppAcceleratorQueue_t streamID)
Set accelerator stream given a RPP handle.
SHARED_PUBLIC rppStatus_t rppGetStream(rppHandle_t handle, rppAcceleratorQueue_t *streamID)
Get accelerator stream given a RPP handle.
SHARED_PUBLIC rppStatus_t rppCreateWithStream(rppHandle_t *handle, rppAcceleratorQueue_t stream)
Creates RPP handle with accelerator stream for GPU single image processing - To be deprecated.
SHARED_PUBLIC rppStatus_t rppCreate(rppHandle_t *handle)
Creates RPP handle for HOST single image processing - To be deprecated.
SHARED_PUBLIC const char * rppGetErrorString(rppStatus_t error)
Returns error string.
SHARED_PUBLIC rppStatus_t rppGetBatchSize(rppHandle_t handle, size_t *batchSize)
Get batch size given a RPP Handle.
SHARED_PUBLIC rppStatus_t rppEnableProfiling(rppHandle_t handle, bool enable)
Enable Profiling.
ROCm Performance Primitives (RPP) version.
RPP common HOST/GPU typedef, enum and structure definitions.
RPP Image Operations - To be deprecated.
RPP Tensor Operations.