Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit f3516d1

Browse files
committed
Merge pull request #522 from tkordenbrock/allow-atomics-upto-max_fetch_atomic_size
osc-portals4: allow atomic ops on datatypes that are max_fetch_atomic_size bytes in length
2 parents 252cb1e + 7cb8fce commit f3516d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ompi/mca/osc/portals4/osc_portals4_comm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ ompi_osc_portals4_compare_and_swap(void *origin_addr,
970970
ret = ompi_datatype_type_size(dt, &length);
971971
if (OMPI_SUCCESS != ret) return ret;
972972

973-
assert(length < module->fetch_atomic_max);
973+
assert(length <= module->fetch_atomic_max);
974974

975975
result_md_offset = (ptl_size_t) result_addr;
976976
origin_md_offset = (ptl_size_t) origin_addr;
@@ -1033,7 +1033,7 @@ ompi_osc_portals4_fetch_and_op(void *origin_addr,
10331033
ret = ompi_datatype_type_size(dt, &length);
10341034
if (OMPI_SUCCESS != ret) return ret;
10351035

1036-
assert(length < module->fetch_atomic_max);
1036+
assert(length <= module->fetch_atomic_max);
10371037

10381038
(void)opal_atomic_add_64(&module->opcount, 1);
10391039

0 commit comments

Comments
 (0)