Skip to content

Commit da4da6d

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 da4da6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)