cupy_nccl.h 1.9 KB
Newer Older
root's avatar
root committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
// This file is a stub header file of nccl for Read the Docs.

#ifndef INCLUDE_GUARD_STUB_CUPY_NCCL_H
#define INCLUDE_GUARD_STUB_CUPY_NCCL_H

#define NCCL_MAJOR 0
#define NCCL_MINOR 0
#define NCCL_PATCH 0

extern "C" {

typedef struct ncclComm* ncclComm_t;

enum {
    NCCL_UNIQUE_ID_BYTES = 128
};
typedef struct {
    char internal[NCCL_UNIQUE_ID_BYTES];
} ncclUniqueId;

typedef enum {
    ncclSuccess
} ncclResult_t;

typedef enum {} ncclRedOp_t;

typedef enum {
    ncclChar       = 0,
    ncclInt        = 1,
    ncclHalf       = 2,
    ncclFloat      = 3,
    ncclDouble     = 4,
    ncclInt64      = 5,
    ncclUint64     = 6,
    nccl_NUM_TYPES = 7 } ncclDataType_t;

const char* ncclGetErrorString(...) {
    return "";
}

ncclResult_t  ncclCommGetAsyncError(...) {
    return ncclSuccess;
}

ncclResult_t ncclGetUniqueId(...) {
    return ncclSuccess;
}

ncclResult_t ncclCommInitRank(...) {
    return ncclSuccess;
}

ncclResult_t ncclCommInitAll(...) {
    return ncclSuccess;
}

ncclResult_t ncclGroupStart(...) {
    return ncclSuccess;
}

ncclResult_t ncclGroupEnd(...) {
    return ncclSuccess;
}

void ncclCommDestroy(...) {
}

void ncclCommAbort(...) {
}

ncclResult_t ncclCommCuDevice(...) {
    return ncclSuccess;
}

ncclResult_t ncclCommUserRank(...) {
    return ncclSuccess;
}

ncclResult_t ncclCommCount(...) {
    return ncclSuccess;
}

ncclResult_t ncclAllReduce(...) {
    return ncclSuccess;
}

ncclResult_t ncclReduce(...) {
    return ncclSuccess;
}

ncclResult_t ncclBroadcast(...) {
    return ncclSuccess;
}

ncclResult_t ncclBcast(...) {
    return ncclSuccess;
}

ncclResult_t ncclReduceScatter(...) {
    return ncclSuccess;
}

ncclResult_t ncclAllGather(...) {
    return ncclSuccess;
}

ncclResult_t ncclSend(...) {
    return ncclSuccess;
}

ncclResult_t ncclRecv(...) {
    return ncclSuccess;
}

typedef struct CUstream_st *cudaStream_t;

}  // extern "C"

#endif  // INCLUDE_GUARD_STUB_CUPY_NCCL_H