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
Bu işleme şunda yer alıyor:
Avinash Kethineedi
2025-03-24 22:54:07 -05:00
işlemeyi yapan: GitHub
ebeveyn bcbc42e78f
işleme c16b0d6952
3 değiştirilmiş dosya ile 12 ekleme ve 15 silme
+8 -12
Dosyayı Görüntüle
@@ -181,19 +181,15 @@ TestRMA() {
ExecTest "teamctxget" 2 4 128 1024
ExecTest "teamctxget" 2 16 256 1024
ExecTest "g" 2 1 1 1048576
ExecTest "g" 2 1 1024 512
ExecTest "g" 2 8 1 1048576
ExecTest "g" 2 16 128 8
ExecTest "g" 2 32 256 512
ExecTest "g" 2 64 1024 8
ExecTest "g" 2 1 1 128
ExecTest "g" 2 1 1024 2
ExecTest "g" 2 8 1 32
ExecTest "g" 2 16 128 4
ExecTest "p" 2 1 1 1048576
ExecTest "p" 2 1 1024 512
ExecTest "p" 2 8 1 1048576
ExecTest "p" 2 16 128 8
ExecTest "p" 2 32 256 512
ExecTest "p" 2 64 1024 8
ExecTest "p" 2 1 1 128
ExecTest "p" 2 1 1024 2
ExecTest "p" 2 8 1 32
ExecTest "p" 2 16 128 4
################################ Non-Blocking ################################
+2 -1
Dosyayı Görüntüle
@@ -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 {
+2 -2
Dosyayı Görüntüle
@@ -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