Files
rocm-systems/ext-net/example/nccl/net_device.h
T

34 строки
1.3 KiB
C
Исходник Обычный вид История

2023-09-26 05:47:28 -07:00
/*************************************************************************
* Copyright (c) 2023-2023, NVIDIA CORPORATION. All rights reserved.
*
* See LICENSE.txt for license information
************************************************************************/
#ifndef NET_DEVICE_H_
#define NET_DEVICE_H_
#define NCCL_NET_DEVICE_INVALID_VERSION 0x0
#define NCCL_NET_MTU_SIZE 4096
// Arbitrary version number - A given NCCL build will only be compatible with a single device networking plugin
// version. NCCL will check the supplied version number from net->getProperties() and compare to its internal version.
2025-09-02 13:21:14 -07:00
#define NCCL_NET_DEVICE_UNPACK_VERSION 0x7
2023-09-26 05:47:28 -07:00
typedef enum {NCCL_NET_DEVICE_HOST=0, NCCL_NET_DEVICE_UNPACK=1} ncclNetDeviceType;
typedef struct {
ncclNetDeviceType netDeviceType; // Network offload type
int netDeviceVersion; // Version number for network offload
void* handle;
size_t size;
int needsProxyProgress;
} ncclNetDeviceHandle_v7_t;
2024-02-05 05:06:02 -08:00
typedef ncclNetDeviceHandle_v7_t ncclNetDeviceHandle_v8_t;
2024-12-18 08:26:06 -08:00
typedef ncclNetDeviceHandle_v8_t ncclNetDeviceHandle_v9_t;
2025-03-12 13:46:21 -07:00
typedef ncclNetDeviceHandle_v9_t ncclNetDeviceHandle_v10_t;
2025-09-02 13:21:14 -07:00
typedef ncclNetDeviceHandle_v10_t ncclNetDeviceHandle_v11_t;
typedef ncclNetDeviceHandle_v11_t ncclNetDeviceHandle_t;
2023-09-26 05:47:28 -07:00
#endif