Skip to content

Commit 2ea5548

Browse files
authored
Merge pull request open-mpi#7017 from hppritcha/topic/patch_ofi_v4.0.x
mtl/ofi: replace OMPI_UNLIKELY with OPAL version
2 parents 9f4b7ba + 5f3dbdb commit 2ea5548

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)