From bfea9634a57a6c1d7942c43ddf2460958455ce33 Mon Sep 17 00:00:00 2001 From: Ajay Date: Mon, 19 Sep 2022 20:27:07 +0000 Subject: [PATCH] SWDEV-357334 - hipEventRecord_spt() to take optional stream arg Change-Id: I19540c577e2c3635a00379f814350ada41020af2 [ROCm/clr commit: 2801e4fe639a6ab8199acec5d05f4cf52d9a6e1c] --- .../hipamd/include/hip/amd_detail/amd_hip_runtime_pt_api.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/clr/hipamd/include/hip/amd_detail/amd_hip_runtime_pt_api.h b/projects/clr/hipamd/include/hip/amd_detail/amd_hip_runtime_pt_api.h index 544cd3c8a7..beb12ba2f6 100644 --- a/projects/clr/hipamd/include/hip/amd_detail/amd_hip_runtime_pt_api.h +++ b/projects/clr/hipamd/include/hip/amd_detail/amd_hip_runtime_pt_api.h @@ -157,8 +157,11 @@ hipError_t hipStreamGetFlags_spt(hipStream_t stream, unsigned int* flags); hipError_t hipStreamAddCallback_spt(hipStream_t stream, hipStreamCallback_t callback, void* userData, unsigned int flags); - +#ifdef __cplusplus +hipError_t hipEventRecord_spt(hipEvent_t event, hipStream_t stream = NULL); +#else hipError_t hipEventRecord_spt(hipEvent_t event, hipStream_t stream); +#endif hipError_t hipLaunchCooperativeKernel_spt(const void* f, dim3 gridDim, dim3 blockDim,