Skip to content

Commit ca0df00

Browse files
committed
fix the renaming issue after merge
Conflicts: test/datatype/Makefile.am Conflicts: opal/mca/btl/smcuda/btl_smcuda.c
1 parent d4aee08 commit ca0df00

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

opal/mca/btl/smcuda/btl_smcuda.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,8 +1074,8 @@ static int mca_btl_smcuda_register_convertor (struct mca_btl_base_module_t* btl,
10741074
struct mca_btl_base_registration_handle_t *handle,
10751075
struct opal_convertor_t *convertor)
10761076
{
1077-
// printf("Hello, i register convertor, %p\n", (void*)convertor);
1078-
mca_mpool_common_cuda_reg_t *cuda_reg = (mca_mpool_common_cuda_reg_t *)((intptr_t) handle - offsetof (mca_mpool_common_cuda_reg_t, data));
1077+
printf("Hello, i register convertor, %p\n", (void*)convertor);
1078+
mca_rcache_common_cuda_reg_t *cuda_reg = (mca_rcache_common_cuda_reg_t *)((intptr_t) handle - offsetof (mca_rcache_common_cuda_reg_t, data));
10791079

10801080
int32_t local_device = 0;
10811081
if (convertor->flags & CONVERTOR_CUDA) {
@@ -1234,10 +1234,10 @@ int mca_btl_smcuda_get_cuda (struct mca_btl_base_module_t *btl,
12341234
lindex = mca_btl_smcuda_alloc_cuda_ddt_clone(ep);
12351235
if (remote_device == local_device || OPAL_DATATYPE_DIRECT_COPY_GPUMEM) {
12361236
/* now we are able to let sender pack directly to my memory */
1237-
mca_mpool_common_cuda_reg_t loc_reg;
1238-
mca_mpool_common_cuda_reg_t *loc_reg_ptr = &loc_reg;
1237+
mca_rcache_common_cuda_reg_t loc_reg;
1238+
mca_rcache_common_cuda_reg_t *loc_reg_ptr = &loc_reg;
12391239
cuda_ddt_put_hdr_t put_msg;
1240-
if (OPAL_SUCCESS != cuda_getmemhandle(local_address, size, (mca_mpool_base_registration_t *)&loc_reg, NULL)) {
1240+
if (OPAL_SUCCESS != cuda_getmemhandle(local_address, size, (mca_rcache_base_registration_t *)&loc_reg, NULL)) {
12411241
mca_btl_smcuda_cuda_ddt_start_pack(btl, ep, pack_convertor, unpack_convertor, remote_memory_address, (mca_btl_base_descriptor_t *)frag,
12421242
lindex, remote_device, local_device);
12431243
}

opal/mca/btl/smcuda/btl_smcuda_component.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,12 +1086,12 @@ static void btl_smcuda_datatype_put(mca_btl_base_module_t* btl,
10861086
endpoint = mca_btl_smcuda_component.sm_peers[frag->hdr->my_smp_rank];
10871087

10881088
opal_cuda_free_gpu_buffer(convertor->gpu_buffer_ptr, 0);
1089-
mca_mpool_common_cuda_reg_t *rget_reg_ptr = NULL;
1090-
mca_mpool_common_cuda_reg_t rget_reg;
1089+
mca_rcache_common_cuda_reg_t *rget_reg_ptr = NULL;
1090+
mca_rcache_common_cuda_reg_t rget_reg;
10911091
rget_reg_ptr= &rget_reg;
10921092
memset(&rget_reg, 0, sizeof(rget_reg));
10931093
memcpy(rget_reg.data.memHandle, recv_msg.mem_handle, sizeof(recv_msg.mem_handle));
1094-
cuda_openmemhandle(NULL, 0, (mca_mpool_base_registration_t *)&rget_reg, NULL);
1094+
cuda_openmemhandle(NULL, 0, (mca_rcache_base_registration_t *)&rget_reg, NULL);
10951095
size_t offset = (size_t) ((intptr_t)remote_address - (intptr_t)remote_base);
10961096
unsigned char *remote_memory_address = (unsigned char *)rget_reg_ptr->base.alloc_base + offset;
10971097
convertor->gpu_buffer_ptr = remote_memory_address;

opal/mca/common/cuda/common_cuda.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2002,7 +2002,7 @@ int mca_common_cuda_query_event(uint64_t *event)
20022002
}
20032003
}
20042004

2005-
int mca_common_cuda_openeventhandle(uint64_t **event, int n, mca_mpool_common_cuda_reg_data_t *handle)
2005+
int mca_common_cuda_openeventhandle(uint64_t **event, int n, mca_rcache_common_cuda_reg_data_t *handle)
20062006
{
20072007
// CUipcEventHandle evtHandle;
20082008
// CUresult result;

opal/mca/common/cuda/common_cuda.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ OPAL_DECLSPEC void mca_common_cuda_fini(void);
9999
OPAL_DECLSPEC int mca_common_cuda_create_event(uint64_t **event);
100100
OPAL_DECLSPEC int mca_common_cuda_record_event(uint64_t *event);
101101
OPAL_DECLSPEC int mca_common_cuda_query_event(uint64_t *event);
102-
OPAL_DECLSPEC int mca_common_cuda_openeventhandle(uint64_t **event, int n, mca_mpool_common_cuda_reg_data_t *handle);
102+
OPAL_DECLSPEC int mca_common_cuda_openeventhandle(uint64_t **event, int n, mca_rcache_common_cuda_reg_data_t *handle);
103103
OPAL_DECLSPEC int mca_common_cuda_memp2pcpy(void *dest, const void *src, size_t size);
104104
#if OPAL_CUDA_GDR_SUPPORT
105105
OPAL_DECLSPEC bool mca_common_cuda_previously_freed_memory(mca_rcache_base_registration_t *reg);

test/datatype/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#
1515

1616
if PROJECT_OMPI
17-
MPI_TESTS = checksum position position_noncontig ddt_test ddt_raw unpack_ooo ddt_pack ddt_benchmark external32
17+
MPI_TESTS = checksum position position_noncontig ddt_test ddt_raw unpack_ooo ddt_pack external32 ddt_benchmark
1818
MPI_CHECKS = to_self
1919
endif
2020
TESTS = opal_datatype_test $(MPI_TESTS)

0 commit comments

Comments
 (0)