2022-11-21 06:03:27 -08:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2017-2022, NVIDIA CORPORATION. All rights reserved.
|
|
|
|
|
*/
|
|
|
|
|
|
2025-03-12 13:46:21 -07:00
|
|
|
#ifndef NET_H_
|
|
|
|
|
#define NET_H_
|
2022-11-21 06:03:27 -08:00
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
2024-06-11 01:28:01 -07:00
|
|
|
#include "common.h"
|
2022-11-21 06:03:27 -08:00
|
|
|
#include "err.h"
|
2025-03-12 13:46:21 -07:00
|
|
|
#include "net_device.h"
|
2022-11-21 06:03:27 -08:00
|
|
|
|
|
|
|
|
#define NCCL_NET_HANDLE_MAXSIZE 128
|
2024-12-18 08:26:06 -08:00
|
|
|
#define NCCL_MAX_NET_SIZE_BYTES (1*1024*1024*1024*1024L) //1TB
|
|
|
|
|
#define NCCL_NET_OPTIONAL_RECV_COMPLETION 0x1
|
2022-11-21 06:03:27 -08:00
|
|
|
|
|
|
|
|
#define NCCL_PTR_HOST 0x1
|
|
|
|
|
#define NCCL_PTR_CUDA 0x2
|
|
|
|
|
#define NCCL_PTR_DMABUF 0x4
|
|
|
|
|
|
|
|
|
|
// Maximum number of requests per comm object
|
2024-02-05 05:06:02 -08:00
|
|
|
#define NCCL_NET_MAX_REQUESTS 32
|
2022-11-21 06:03:27 -08:00
|
|
|
|
2025-03-12 13:46:21 -07:00
|
|
|
typedef ncclResult_t (*ncclProfilerCallback_t)(void** eHandle, int type, void* phandle, int64_t pluginId, void* extData);
|
|
|
|
|
|
|
|
|
|
#include "net_v10.h"
|
2024-12-18 08:26:06 -08:00
|
|
|
#include "net_v9.h"
|
2024-02-05 05:06:02 -08:00
|
|
|
#include "net_v8.h"
|
2023-09-26 05:47:28 -07:00
|
|
|
#include "net_v7.h"
|
2022-11-21 06:03:27 -08:00
|
|
|
#include "net_v6.h"
|
|
|
|
|
#include "net_v5.h"
|
|
|
|
|
#include "net_v4.h"
|
|
|
|
|
#include "net_v3.h"
|
|
|
|
|
#include "net_v2.h"
|
|
|
|
|
|
2025-03-12 13:46:21 -07:00
|
|
|
typedef ncclNet_v10_t ncclNet_t;
|
|
|
|
|
typedef ncclNetProperties_v10_t ncclNetProperties_t;
|
|
|
|
|
typedef ncclNetVDeviceProps_v10_t ncclNetVDeviceProps_t;
|
|
|
|
|
typedef ncclNetCommConfig_v10_t ncclNetCommConfig_t;
|
|
|
|
|
|
2022-11-21 06:03:27 -08:00
|
|
|
#endif // end include guard
|