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:
committed by
GitHub
orang tua
4aaa1a27f5
melakukan
76e8750d88
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user