forked from pool/openucx
24 lines
832 B
Diff
24 lines
832 B
Diff
commit 9655ec674b1d6278a80705eeb1e5bf0a36d7a211
|
|
Author: Nicolas Morey <nmorey@suse.com>
|
|
Date: Fri Nov 7 17:51:31 2025 +0100
|
|
|
|
UCT/SELF: Fix config type for num_devices
|
|
|
|
size_t may be larger than an int. This causes issue on big endian systems
|
|
|
|
Signed-off-by: Nicolas Morey <nmorey@suse.com>
|
|
|
|
diff --git src/uct/sm/self/self.c src/uct/sm/self/self.c
|
|
index 6e7815c21dfa..1986e9cde290 100644
|
|
--- src/uct/sm/self/self.c
|
|
+++ src/uct/sm/self/self.c
|
|
@@ -57,7 +57,7 @@ static ucs_config_field_t uct_self_md_config_table[] = {
|
|
UCS_CONFIG_TYPE_TABLE(uct_md_config_table)},
|
|
|
|
{"NUM_DEVICES", "1", "Number of \"self\" devices to create",
|
|
- ucs_offsetof(uct_self_md_config_t, num_devices), UCS_CONFIG_TYPE_INT},
|
|
+ ucs_offsetof(uct_self_md_config_t, num_devices), UCS_CONFIG_TYPE_ULONG},
|
|
|
|
{NULL}
|
|
};
|