Skip to content

Commit 864904e

Browse files
committed
oshmem: ucx: check status only if configured --with-oshmem-param-check
Current standard says that behaviour in the case of error is undefined Signed-off-by: Alex Mikheev <[email protected]>
1 parent 48a7a0b commit 864904e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

oshmem/mca/spml/ucx/spml_ucx.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,20 @@ mca_spml_ucx_get_mkey(int pe, void *va, void **rva)
135135

136136
static inline int ucx_status_to_oshmem(ucs_status_t status)
137137
{
138+
#if OSHMEM_PARAM_CHECK == 1
138139
return OPAL_LIKELY(UCS_OK == status) ? OSHMEM_SUCCESS : OSHMEM_ERROR;
140+
#else
141+
return OSHMEM_SUCCESS;
142+
#endif
139143
}
140144

141145
static inline int ucx_status_to_oshmem_nb(ucs_status_t status)
142146
{
147+
#if OSHMEM_PARAM_CHECK == 1
143148
return OPAL_LIKELY(status >= 0) ? OSHMEM_SUCCESS : OSHMEM_ERROR;
149+
#else
150+
return OSHMEM_SUCCESS;
151+
#endif
144152
}
145153

146154
END_C_DECLS

0 commit comments

Comments
 (0)