Skip to content

Commit 1a484a0

Browse files
committed
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 <[email protected]>
1 parent 81810a7 commit 1a484a0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ Mikhail Brinskii <[email protected]>
7373
7474
Nathan Hjelm <[email protected]>
7575
Netanel Yosephian <[email protected]>
76+
Nicolas Morey <[email protected]>
7677
Ofir Farjon <[email protected]>
7778
Olly Perks <[email protected]>
7879
Ovidiu Mara <[email protected]>

src/uct/sm/self/self.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static ucs_config_field_t uct_self_md_config_table[] = {
5757
UCS_CONFIG_TYPE_TABLE(uct_md_config_table)},
5858

5959
{"NUM_DEVICES", "1", "Number of \"self\" devices to create",
60-
ucs_offsetof(uct_self_md_config_t, num_devices), UCS_CONFIG_TYPE_INT},
60+
ucs_offsetof(uct_self_md_config_t, num_devices), UCS_CONFIG_TYPE_ULONG},
6161

6262
{NULL}
6363
};

0 commit comments

Comments
 (0)