ucx: fix int overflow: use ssize_t (#33784)
This commit is contained in:
parent
168bced888
commit
6b782e6d7e
2 changed files with 34 additions and 0 deletions
31
var/spack/repos/builtin/packages/ucx/commit-2523555.patch
Normal file
31
var/spack/repos/builtin/packages/ucx/commit-2523555.patch
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
From 38e5b912dd737b5673ea34f885fe6222276a6f9f Mon Sep 17 00:00:00 2001
|
||||||
|
From: Sergey Oblomov <sergeyo@nvidia.com>
|
||||||
|
Date: Fri, 14 Oct 2022 12:15:11 +0300
|
||||||
|
Subject: [PATCH] IB/MD: fixed build on SLES SP3
|
||||||
|
|
||||||
|
---
|
||||||
|
src/uct/ib/base/ib_md.c | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/uct/ib/base/ib_md.c b/src/uct/ib/base/ib_md.c
|
||||||
|
index 225d1de9234..1618f35c03d 100644
|
||||||
|
--- a/src/uct/ib/base/ib_md.c
|
||||||
|
+++ b/src/uct/ib/base/ib_md.c
|
||||||
|
@@ -2059,7 +2059,7 @@ uct_component_t uct_ib_component = {
|
||||||
|
|
||||||
|
void UCS_F_CTOR uct_ib_init()
|
||||||
|
{
|
||||||
|
- int i;
|
||||||
|
+ ssize_t i;
|
||||||
|
|
||||||
|
uct_component_register(&uct_ib_component);
|
||||||
|
|
||||||
|
@@ -2070,7 +2070,7 @@ void UCS_F_CTOR uct_ib_init()
|
||||||
|
|
||||||
|
void UCS_F_DTOR uct_ib_cleanup()
|
||||||
|
{
|
||||||
|
- int i;
|
||||||
|
+ ssize_t i;
|
||||||
|
|
||||||
|
for (i = ucs_static_array_size(uct_ib_tls) - 1; i >= 0; i--) {
|
||||||
|
uct_tl_unregister(uct_ib_tls[i]);
|
|
@ -132,6 +132,9 @@ class Ucx(AutotoolsPackage, CudaPackage):
|
||||||
|
|
||||||
configure_abs_path = "contrib/configure-release"
|
configure_abs_path = "contrib/configure-release"
|
||||||
|
|
||||||
|
# See https://github.com/openucx/ucx/pull/8629, wrong int type
|
||||||
|
patch("commit-2523555.patch", when="@1.13.1")
|
||||||
|
|
||||||
@when("@1.9-dev")
|
@when("@1.9-dev")
|
||||||
def autoreconf(self, spec, prefix):
|
def autoreconf(self, spec, prefix):
|
||||||
Executable("./autogen.sh")()
|
Executable("./autogen.sh")()
|
||||||
|
|
Loading…
Reference in a new issue