Skip to content

Commit

Permalink
oshmem: Align OSHMEM API with spec v1.3 (update spml/yoda)
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-ivanov committed Mar 17, 2016
1 parent d5a0549 commit d359084
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
15 changes: 14 additions & 1 deletion oshmem/mca/spml/yoda/spml_yoda.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ mca_spml_yoda_module_t mca_spml_yoda = {
mca_spml_yoda_put,
mca_spml_yoda_put_nb,
mca_spml_yoda_get,
mca_spml_base_get_nb, /* todo: mca_spml_yoda_get_nb, */
mca_spml_yoda_get_nb,
mca_spml_yoda_recv,
mca_spml_yoda_send,
mca_spml_base_wait,
Expand Down Expand Up @@ -901,6 +901,8 @@ int mca_spml_yoda_put_nb(void* dst_addr,
{
UNREFERENCED_PARAMETER(handle);

/* TODO: real nonblocking operation is needed
*/
return mca_spml_yoda_put_internal(dst_addr, size, src_addr, dst, 1);
}

Expand Down Expand Up @@ -974,6 +976,17 @@ int mca_spml_yoda_enable(bool enable)
return OSHMEM_SUCCESS;
}

int mca_spml_yoda_get_nb(void* src_addr,
size_t size,
void* dst_addr,
int src,
void **handle)
{
/* TODO: real nonblocking operation is needed
*/
return mca_spml_yoda_get(src_addr, size, dst_addr, src);
}

/**
* shmem_get reads data from a remote address
* in the symmetric heap via RDMA READ.
Expand Down
5 changes: 5 additions & 0 deletions oshmem/mca/spml/yoda/spml_yoda.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ extern int mca_spml_yoda_get(void* dst_addr,
size_t size,
void* src_addr,
int src);
extern int mca_spml_yoda_get_nb(void* dst_addr,
size_t size,
void* src_addr,
int dst,
void **handle);
extern int mca_spml_yoda_put(void* dst_addr,
size_t size,
void* src_addr,
Expand Down

0 comments on commit d359084

Please sign in to comment.