From 1a4f1f72513a2a6b0bdb237b61fbc300a627535d Mon Sep 17 00:00:00 2001 From: Alexia Ingerson Date: Thu, 3 Oct 2024 20:47:29 -0700 Subject: [PATCH] prov/psm3: fix logical atomic function calls psm3 advertises support for logical ops (lor, land, lxor) with all datatypes but the functions are only defined for integer types. When the atomic op is called with a non-integer type, it drops down to the default case and returns an error (FI_ENOTSUPP) Signed-off-by: Alexia Ingerson --- prov/psm3/src/psmx3_atomic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/prov/psm3/src/psmx3_atomic.c b/prov/psm3/src/psmx3_atomic.c index d04ca5c95d7..b05416c5e07 100644 --- a/prov/psm3/src/psmx3_atomic.c +++ b/prov/psm3/src/psmx3_atomic.c @@ -401,12 +401,12 @@ static int psmx3_atomic_do_write(void *dest, void *src, break; case FI_LOR: - SWITCH_INT_TYPE(datatype,PSMX3_ATOMIC_WRITE, + SWITCH_ALL_TYPE(datatype,PSMX3_ATOMIC_WRITE, dest,src,count,PSMX3_LOR); break; case FI_LAND: - SWITCH_INT_TYPE(datatype,PSMX3_ATOMIC_WRITE, + SWITCH_ALL_TYPE(datatype,PSMX3_ATOMIC_WRITE, dest,src,count,PSMX3_LAND); break; @@ -421,7 +421,7 @@ static int psmx3_atomic_do_write(void *dest, void *src, break; case FI_LXOR: - SWITCH_INT_TYPE(datatype,PSMX3_ATOMIC_WRITE, + SWITCH_ALL_TYPE(datatype,PSMX3_ATOMIC_WRITE, dest,src,count,PSMX3_LXOR); break;