Signed-off-by: Muhammad Awad <MuhammadAbdelghaffar.Awad@amd.com>


[ROCm/rocshmem commit: b811b2b683]
Este commit está contenido en:
Muhammad Awad
2024-09-05 18:39:02 -05:00
padre 25c4ce2751
commit 2a87c646f5
+4 -8
Ver fichero
@@ -67,13 +67,11 @@ enum class BackendType { RO_BACKEND, GPU_IB_BACKEND };
*/
#ifdef USE_GPU_IB
#define DISPATCH_RET(Func) \
auto ret_val{0}; \
ret_val = static_cast<GPUIBContext *>(this)->Func; \
auto ret_val = static_cast<GPUIBContext *>(this)->Func; \
return ret_val;
#else
#define DISPATCH_RET(Func) \
auto ret_val{0}; \
ret_val = static_cast<ROContext *>(this)->Func; \
auto ret_val = static_cast<ROContext *>(this)->Func; \
return ret_val;
#endif
/**
@@ -113,13 +111,11 @@ enum class BackendType { RO_BACKEND, GPU_IB_BACKEND };
#ifdef USE_GPU_IB
#define HOST_DISPATCH_RET(Func) \
auto ret_val{0}; \
ret_val = static_cast<GPUIBHostContext *>(this)->Func; \
auto ret_val = static_cast<GPUIBHostContext *>(this)->Func; \
return ret_val;
#else
#define HOST_DISPATCH_RET(Func) \
auto ret_val{0}; \
ret_val = static_cast<ROHostContext *>(this)->Func; \
auto ret_val = static_cast<ROHostContext *>(this)->Func; \
return ret_val;
#endif