@@ -254,6 +254,10 @@ typedef cusparseDnVecDescr_t gpusparseDnVecDescr_t;
254254#define GPUSPARSE_SPARSETODENSE_ALG_DEFAULT CUSPARSE_SPARSETODENSE_ALG_DEFAULT
255255#define GPUSPARSE_STATUS_SUCCESS CUSPARSE_STATUS_SUCCESS
256256
257+ #define GPU_STREAM_CAPTURE_STATUS_ACTIVE CU_STREAM_CAPTURE_STATUS_ACTIVE
258+ #define GPU_STREAM_CAPTURE_MODE_RELAXED CU_STREAM_CAPTURE_MODE_RELAXED
259+ #define GPU_STREAM_NON_BLOCKING CU_STREAM_NON_BLOCKING
260+
257261#define gpuCtxGetDevice cuCtxGetDevice
258262#define gpuCtxPopCurrent cuCtxPopCurrent
259263#define gpuCtxPushCurrent cuCtxPushCurrent
@@ -332,6 +336,8 @@ typedef hipsolverFillMode_t gpusolverFillMode_t;
332336typedef hipblasHandle_t gpublasHandle_t;
333337typedef hipblasStatus_t gpublasStatus_t;
334338typedef hipCtx_t gpuContext_t;
339+ typedef hipStreamCaptureMode gpustreamCaptureMode_t;
340+ typedef hipStreamCaptureStatus gpustreamCaptureStatus_t;
335341typedef hipDataType gpuDataType;
336342typedef hipDevice_t gpuDevice_t;
337343typedef hipDeviceptr_t gpuDevicePtr_t;
@@ -494,6 +500,10 @@ typedef hipsparseDnVecDescr_t gpusparseDnVecDescr_t;
494500#define GPUSPARSE_SPARSETODENSE_ALG_DEFAULT HIPSPARSE_SPARSETODENSE_ALG_DEFAULT
495501#define GPUSPARSE_STATUS_SUCCESS HIPSPARSE_STATUS_SUCCESS
496502
503+ #define GPU_STREAM_CAPTURE_STATUS_ACTIVE hipStreamCaptureStatusActive
504+ #define GPU_STREAM_CAPTURE_MODE_RELAXED hipStreamCaptureModeRelaxed
505+ #define GPU_STREAM_NON_BLOCKING hipStreamNonBlocking
506+
497507#define gpuGetLastError hipGetLastError
498508#define gpuGetErrorString hipGetErrorString
499509#define gpuMemcpyAsync hipMemcpyAsync
@@ -526,6 +536,10 @@ typedef hipsparseDnVecDescr_t gpusparseDnVecDescr_t;
526536#define gpuMemcpyDtoHAsync hipMemcpyDtoHAsync
527537#define gpuMemcpyHtoDAsync hipMemcpyHtoDAsync
528538#define gpuMemsetD8Async hipMemsetD8Async
539+ #define gpuThreadExchangeStreamCaptureMode hipThreadExchangeStreamCaptureMode
540+ #define gpuStreamCreate hipStreamCreateWithFlags
541+ #define gpuStreamDestroy hipStreamDestroy
542+ #define gpuStreamIsCapturing hipStreamIsCapturing
529543
530544#define GPU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MAJOR \
531545 hipDeviceAttributeComputeCapabilityMajor
0 commit comments