Fix/RO Backend Hang Issue (#53)
* Update HIP version check for compatibility with versions >= 5.5 * Update memory allocator for context BlockHandle - Replaced `HIPAllocator` with `HIPDefaultFinegrainedAllocator` for context `BlockHandle`. * Update run commands for `rocshmem_g` and `rocshmem_p` functional tests
This commit is contained in:
committed by
GitHub
parent
bcbc42e78f
commit
c16b0d6952
@@ -37,7 +37,8 @@
|
||||
#include "memory_allocator.hpp"
|
||||
|
||||
// `hipDeviceMallocUncached` was introduced at ROCm 5.5
|
||||
#if HIP_VERSION_MAJOR >= 5 && HIP_VERSION_MINOR >= 5
|
||||
#if (HIP_VERSION_MAJOR > 5) || \
|
||||
(HIP_VERSION_MAJOR == 5 && HIP_VERSION_MINOR >= 5)
|
||||
#define HIP_SUPPORTS_MALLOC_UNCACHED
|
||||
#endif
|
||||
namespace rocshmem {
|
||||
|
||||
@@ -83,7 +83,7 @@ class DefaultBlockHandleProxy {
|
||||
ProxyT proxy_{};
|
||||
};
|
||||
|
||||
using DefaultBlockHandleProxyT = DefaultBlockHandleProxy<HIPAllocator>;
|
||||
using DefaultBlockHandleProxyT = DefaultBlockHandleProxy<HIPDefaultFinegrainedAllocator>;
|
||||
|
||||
template <typename ALLOCATOR>
|
||||
class BlockHandleProxy {
|
||||
@@ -130,7 +130,7 @@ class BlockHandleProxy {
|
||||
size_t num_blocks_{};
|
||||
};
|
||||
|
||||
using BlockHandleProxyT = BlockHandleProxy<HIPAllocator>;
|
||||
using BlockHandleProxyT = BlockHandleProxy<HIPDefaultFinegrainedAllocator>;
|
||||
|
||||
} // namespace rocshmem
|
||||
|
||||
|
||||
Reference in New Issue
Block a user