-
-
Notifications
You must be signed in to change notification settings - Fork 783
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from cupy/merge-v1.24
Merge v1.24
- Loading branch information
Showing
26 changed files
with
765 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[pep8] | ||
exclude=caffe_pb*,.eggs,*.egg,build | ||
diff=True | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// This file is a stub header file of cudnn for Read the Docs. | ||
|
||
#ifndef INCLUDE_GUARD_CUPY_NCCL_H | ||
#define INCLUDE_GUARD_CUPY_NCCL_H | ||
|
||
#ifndef CUPY_NO_CUDA | ||
|
||
#include <nccl.h> | ||
|
||
#else // #ifndef CUPY_NO_CUDA | ||
|
||
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 {} ncclDataType_t; | ||
|
||
const char* ncclGetErrorString(...); | ||
ncclResult_t ncclGetUniqueId(...); | ||
ncclResult_t ncclCommInitRank(...); | ||
void ncclCommDestroy(...); | ||
ncclResult_t ncclCommCuDevice(...); | ||
ncclResult_t ncclCommUserRank(...); | ||
ncclResult_t ncclAllReduce(...); | ||
ncclResult_t ncclReduce(...); | ||
ncclResult_t ncclBcast(...); | ||
|
||
} | ||
|
||
#endif // #ifndef CUPY_NO_CUDA | ||
|
||
#endif // #ifndef INCLUDE_GUARD_CUPY_NCCL_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
""" | ||
Wrapper for NCCL: Optimized primiteive for collective multi-GPU communication | ||
""" | ||
cpdef enum: | ||
NCCL_SUM = 0 | ||
NCCL_PROD = 1 | ||
NCCL_MAX = 2 | ||
NCCL_MIN = 3 | ||
|
||
NCCL_CHAR = 0 | ||
NCCL_INT = 1 | ||
NCCL_HALF = 2 | ||
NCCL_FLOAT = 3 | ||
NCCL_DOUBLE = 4 | ||
NCCL_INT64 = 5 | ||
NCCL_UINT64 = 6 |
Oops, something went wrong.