Skip to content

Commit 73019d9

Browse files
committed
oshmem: Align OSHMEM API with spec v1.3 (update spml/yoda)
Signed-off-by: Igor Ivanov <[email protected]>
1 parent 0145cbc commit 73019d9

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

oshmem/mca/spml/yoda/spml_yoda.c

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ mca_spml_yoda_module_t mca_spml_yoda = {
5757
mca_spml_yoda_put,
5858
mca_spml_yoda_put_nb,
5959
mca_spml_yoda_get,
60-
mca_spml_base_get_nb, /* todo: mca_spml_yoda_get_nb, */
60+
mca_spml_yoda_get_nb,
6161
mca_spml_yoda_recv,
6262
mca_spml_yoda_send,
6363
mca_spml_base_wait,
@@ -907,6 +907,8 @@ int mca_spml_yoda_put_nb(void* dst_addr,
907907
{
908908
UNREFERENCED_PARAMETER(handle);
909909

910+
/* TODO: real nonblocking operation is needed
911+
*/
910912
return mca_spml_yoda_put_internal(dst_addr, size, src_addr, dst, 1);
911913
}
912914

@@ -980,6 +982,17 @@ int mca_spml_yoda_enable(bool enable)
980982
return OSHMEM_SUCCESS;
981983
}
982984

985+
int mca_spml_yoda_get_nb(void* src_addr,
986+
size_t size,
987+
void* dst_addr,
988+
int src,
989+
void **handle)
990+
{
991+
/* TODO: real nonblocking operation is needed
992+
*/
993+
return mca_spml_yoda_get(src_addr, size, dst_addr, src);
994+
}
995+
983996
/**
984997
* shmem_get reads data from a remote address
985998
* in the symmetric heap via RDMA READ.

oshmem/mca/spml/yoda/spml_yoda.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ extern int mca_spml_yoda_get(void* dst_addr,
104104
size_t size,
105105
void* src_addr,
106106
int src);
107+
extern int mca_spml_yoda_get_nb(void* dst_addr,
108+
size_t size,
109+
void* src_addr,
110+
int dst,
111+
void **handle);
107112
extern int mca_spml_yoda_put(void* dst_addr,
108113
size_t size,
109114
void* src_addr,

0 commit comments

Comments
 (0)