Skip to content

Commit 5f3dbdb

Browse files
committed
mtl/ofi: replace OMPI_UNLIKELY with OPAL version
one off patch for v4.0.x. for some reason commit on master didn't have this problem. Signed-off-by: Howard Pritchard <[email protected]>
1 parent 9f4b7ba commit 5f3dbdb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ompi/mca/mtl/ofi/mtl_ofi.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
* Copyright (c) 2013-2018 Intel, Inc. All rights reserved
33
* Copyright (c) 2017 Los Alamos National Security, LLC. All rights
44
* reserved.
5+
* Copyright (c) 2019 Triad National Security, LLC. All rights
6+
* reserved.
57
*
68
* $COPYRIGHT$
79
*
@@ -447,7 +449,7 @@ ompi_mtl_ofi_isend(struct mca_mtl_base_module_t *mtl,
447449
endpoint = ompi_mtl_ofi_get_endpoint(mtl, ompi_proc);
448450

449451
ompi_ret = ompi_mtl_datatype_pack(convertor, &start, &length, &free_after);
450-
if (OMPI_UNLIKELY(OMPI_SUCCESS != ompi_ret)) return ompi_ret;
452+
if (OPAL_UNLIKELY(OMPI_SUCCESS != ompi_ret)) return ompi_ret;
451453

452454
ofi_req->buffer = (free_after) ? start : NULL;
453455
ofi_req->length = length;

0 commit comments

Comments
 (0)