Merge pull request #25 from mawad-amd/fix-bad-auto

Fix bad auto

[ROCm/rocshmem commit: 375d145913]
This commit is contained in:
Brandon Potter
2024-09-09 16:30:17 -05:00
committed by GitHub
+4 -8
View File
@@ -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