Add backend type query method, use it to disable 32bit amo testers on gda (#307)

* Add backend type query method, use it to disable 32bit amo testers on
gda

* The infrateam testers work

[ROCm/rocshmem commit: 8c175315f2]
This commit is contained in:
Aurelien Bouteiller
2025-11-05 10:24:07 -05:00
committed by GitHub
orang tua 4aaa1a27f5
melakukan 76e8750d88
6 mengubah file dengan 83 tambahan dan 52 penghapusan
+2
Melihat File
@@ -276,6 +276,8 @@ class Backend {
*/
TeamTracker team_tracker{};
BackendType get_backend_type() { return type; }
protected:
/**
* @brief Required to support static inheritance for device calls.
+1 -1
Melihat File
@@ -46,7 +46,7 @@ namespace rocshmem {
* @note Derived classes which use Backend as a base class must add
* themselves to this enum class to support static polymorphism.
*/
enum class BackendType { GDA_BACKEND, RO_BACKEND, IPC_BACKEND };
//enum class BackendType { GDA_BACKEND, RO_BACKEND, IPC_BACKEND };
/**
* @brief Helper macro for some dispatch calls
+2
Melihat File
@@ -81,6 +81,8 @@ rocshmem_ctx_t ROCSHMEM_HOST_CTX_DEFAULT;
* Begin Host Code
**/
BackendType get_backend_type() { return backend->get_backend_type(); }
#if defined(USE_GDA) && defined(USE_RO) && defined(USE_IPC)
static BackendType select_backend_type() {
BackendType type;