Use new naming scheme
Este cometimento está contido em:
+10
-10
@@ -24,34 +24,34 @@
|
||||
|
||||
#include <cmath>
|
||||
|
||||
#include "roc_shmem/roc_shmem.hpp"
|
||||
#include "rocshmem/rocshmem.hpp"
|
||||
#include "backend_bc.hpp"
|
||||
#include "util.hpp"
|
||||
|
||||
namespace rocshmem {
|
||||
|
||||
roc_shmem_team_t ROC_SHMEM_TEAM_WORLD;
|
||||
rocshmem_team_t ROCSHMEM_TEAM_WORLD;
|
||||
|
||||
__host__ __device__ Team* get_internal_team(roc_shmem_team_t team) {
|
||||
__host__ __device__ Team* get_internal_team(rocshmem_team_t team) {
|
||||
return reinterpret_cast<Team*>(team);
|
||||
}
|
||||
|
||||
GPUIBTeam* get_internal_gpu_ib_team(roc_shmem_team_t team) {
|
||||
GPUIBTeam* get_internal_gpu_ib_team(rocshmem_team_t team) {
|
||||
return reinterpret_cast<GPUIBTeam*>(team);
|
||||
}
|
||||
|
||||
ROTeam* get_internal_ro_team(roc_shmem_team_t team) {
|
||||
ROTeam* get_internal_ro_team(rocshmem_team_t team) {
|
||||
return reinterpret_cast<ROTeam*>(team);
|
||||
}
|
||||
|
||||
IPCTeam* get_internal_ipc_team(roc_shmem_team_t team) {
|
||||
IPCTeam* get_internal_ipc_team(rocshmem_team_t team) {
|
||||
return reinterpret_cast<IPCTeam*>(team);
|
||||
}
|
||||
|
||||
__host__ __device__ int team_translate_pe(roc_shmem_team_t src_team, int src_pe,
|
||||
roc_shmem_team_t dst_team) {
|
||||
if (src_team == ROC_SHMEM_TEAM_INVALID ||
|
||||
dst_team == ROC_SHMEM_TEAM_INVALID) {
|
||||
__host__ __device__ int team_translate_pe(rocshmem_team_t src_team, int src_pe,
|
||||
rocshmem_team_t dst_team) {
|
||||
if (src_team == ROCSHMEM_TEAM_INVALID ||
|
||||
dst_team == ROCSHMEM_TEAM_INVALID) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador