Skip to content

Commit ba5f721

Browse files
author
shachar hasson
committed
UCT/CUDA: Restore IMEX channels path macro
1 parent 669899f commit ba5f721

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/uct/cuda/cuda_ipc/cuda_ipc_iface.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
#include <pthread.h>
2828
#include <unistd.h>
2929

30+
#define UCT_CUDA_IPC_IMEX_CHANNELS_PATH \
31+
"/dev/nvidia-caps-imex-channels"
32+
3033
typedef enum {
3134
UCT_CUDA_IPC_DEVICE_ADDR_FLAG_MNNVL = UCS_BIT(0),
3235
UCT_CUDA_IPC_DEVICE_ADDR_FLAG_FABRIC = UCS_BIT(1)
@@ -100,7 +103,7 @@ uct_cuda_ipc_iface_check_imex_channel_cb(const struct dirent *entry, void *arg)
100103
}
101104

102105
ucs_snprintf_safe(path, sizeof(path), "%s/%s",
103-
"/dev/nvidia-caps-imex-channels", entry->d_name);
106+
UCT_CUDA_IPC_IMEX_CHANNELS_PATH, entry->d_name);
104107
if (access(path, R_OK | W_OK) == 0) {
105108
*found = 1;
106109
}
@@ -123,7 +126,7 @@ static int uct_cuda_ipc_iface_fabric_supported(void)
123126
return 0;
124127
}
125128

126-
if (ucs_sys_readdir("/dev/nvidia-caps-imex-channels",
129+
if (ucs_sys_readdir(UCT_CUDA_IPC_IMEX_CHANNELS_PATH,
127130
uct_cuda_ipc_iface_check_imex_channel_cb,
128131
&fabric_supported) != UCS_OK) {
129132
return 0;

0 commit comments

Comments
 (0)