Signed-off-by: Muhammad Awad <MuhammadAbdelghaffar.Awad@amd.com>
This commit is contained in:
Muhammad Awad committed 2024-09-05 18:39:02 -05:00
1 förälder efa075ffc6
incheckning b811b2b683
1 file changed
+4 -8
+4 -8
Visa fil
@@ -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