From d485735431ac64a2af02a7893cef8fee2e6d0f5aea65290403a729e8f7b0dc32 Mon Sep 17 00:00:00 2001 From: Nicolas Morey-Chaisemartin Date: Wed, 5 Oct 2022 07:13:29 +0000 Subject: [PATCH] Accepting request 1008115 from home:NMoreyChaisemartin:branches:science:HPC - Update openucx-s390x-support.patch to add missing ucs_ffs32 on s390x OBS-URL: https://build.opensuse.org/request/show/1008115 OBS-URL: https://build.opensuse.org/package/show/science:HPC/openucx?expand=0&rev=50 --- openucx-s390x-support.patch | 11 ++++++++--- openucx.changes | 5 +++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/openucx-s390x-support.patch b/openucx-s390x-support.patch index 539f7e7..fa22dc6 100644 --- a/openucx-s390x-support.patch +++ b/openucx-s390x-support.patch @@ -1,4 +1,4 @@ -commit 9d5c0d189d4cd5413089bd65fed1e87293e15763 +commit d85339a86c0902ca36f4306f8d971cf46ae87eaf Author: Nicolas Morey-Chaisemartin Date: Tue Sep 27 17:47:15 2022 +0200 @@ -217,10 +217,10 @@ index 8786f130290a..0d251fb91868 100644 #endif diff --git src/ucs/arch/s390x/bitops.h src/ucs/arch/s390x/bitops.h new file mode 100644 -index 000000000000..39ad125107e9 +index 000000000000..ce48ff1ff451 --- /dev/null +++ src/ucs/arch/s390x/bitops.h -@@ -0,0 +1,32 @@ +@@ -0,0 +1,37 @@ +/** +* Copyright (C) Mellanox Technologies Ltd. 2001-2015. ALL RIGHTS RESERVED. +* @@ -247,6 +247,11 @@ index 000000000000..39ad125107e9 + return 63 - __builtin_clz(n); +} + ++static UCS_F_ALWAYS_INLINE unsigned ucs_ffs32(uint32_t n) ++{ ++ return __ucs_ilog2_u32(n & -n); ++} ++ +static inline unsigned ucs_ffs64(uint64_t n) +{ + return __ucs_ilog2_u64(n & -n); diff --git a/openucx.changes b/openucx.changes index e1e6145..516584c 100644 --- a/openucx.changes +++ b/openucx.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Oct 4 16:39:30 UTC 2022 - Nicolas Morey-Chaisemartin + +- Update openucx-s390x-support.patch to add missing ucs_ffs32 on s390x + ------------------------------------------------------------------- Tue Sep 27 15:55:19 UTC 2022 - Nicolas Morey-Chaisemartin