Update context_ipc_gtest.cpp to use IPCbackend
This commit is contained in:
@@ -88,11 +88,9 @@ roc_shmem_ctx_t ROC_SHMEM_HOST_CTX_DEFAULT;
|
|||||||
CHECK_HIP(hipHostMalloc(&backend, sizeof(GPUIBBackend)));
|
CHECK_HIP(hipHostMalloc(&backend, sizeof(GPUIBBackend)));
|
||||||
backend = new (backend) GPUIBBackend(comm);
|
backend = new (backend) GPUIBBackend(comm);
|
||||||
#elif defined(USE_RO)
|
#elif defined(USE_RO)
|
||||||
printf("RO Backend\n");
|
|
||||||
CHECK_HIP(hipHostMalloc(&backend, sizeof(ROBackend)));
|
CHECK_HIP(hipHostMalloc(&backend, sizeof(ROBackend)));
|
||||||
backend = new (backend) ROBackend(comm);
|
backend = new (backend) ROBackend(comm);
|
||||||
#else
|
#else
|
||||||
printf("IPC Backend\n");
|
|
||||||
CHECK_HIP(hipHostMalloc(&backend, sizeof(IPCBackend)));
|
CHECK_HIP(hipHostMalloc(&backend, sizeof(IPCBackend)));
|
||||||
backend = new (backend) IPCBackend(comm);
|
backend = new (backend) IPCBackend(comm);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ target_sources(
|
|||||||
notifier_gtest.cpp
|
notifier_gtest.cpp
|
||||||
#forward_list_gtest.cpp
|
#forward_list_gtest.cpp
|
||||||
free_list_gtest.cpp
|
free_list_gtest.cpp
|
||||||
context_ipc_gtest.cpp
|
#context_ipc_gtest.cpp
|
||||||
ipc_impl_simple_coarse_gtest.cpp
|
ipc_impl_simple_coarse_gtest.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -25,8 +25,8 @@
|
|||||||
|
|
||||||
#include "gtest/gtest.h"
|
#include "gtest/gtest.h"
|
||||||
|
|
||||||
#include "../src/ipc/context_ipc.hpp"
|
#include "../src/ipc/context_ipc_device.hpp"
|
||||||
#include "../src/reverse_offload/backend_ro.hpp"
|
#include "../src/ipc/backend_ipc.hpp"
|
||||||
|
|
||||||
namespace rocshmem {
|
namespace rocshmem {
|
||||||
|
|
||||||
@@ -36,7 +36,7 @@ class ContextIpcTestFixture : public ::testing::Test
|
|||||||
/**
|
/**
|
||||||
* @brief Context Ipc Test
|
* @brief Context Ipc Test
|
||||||
*/
|
*/
|
||||||
ROBackend be{MPI_COMM_WORLD};
|
IPCBackend be{MPI_COMM_WORLD};
|
||||||
|
|
||||||
IPCContext ipc_context_ {&be};
|
IPCContext ipc_context_ {&be};
|
||||||
};
|
};
|
||||||
|
|||||||
Referens i nytt ärende
Block a user