Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bmtrain/block_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,13 +273,15 @@ def storage_type_cuda(storage_type):
torch.FloatStorage: torch.cuda.FloatStorage,
torch.DoubleStorage: torch.cuda.DoubleStorage,
torch.HalfStorage: torch.cuda.HalfStorage,
torch.BFloat16Storage: torch.cuda.BFloat16Storage,
torch.CharStorage: torch.cuda.CharStorage,
torch.ByteStorage: torch.cuda.ByteStorage,
torch.ShortStorage: torch.cuda.ShortStorage,
torch.IntStorage: torch.cuda.IntStorage,
torch.cuda.FloatStorage: torch.cuda.FloatStorage,
torch.cuda.DoubleStorage: torch.cuda.DoubleStorage,
torch.cuda.HalfStorage: torch.cuda.HalfStorage,
torch.cuda.BFloat16Storage: torch.cuda.BFloat16Storage,
torch.cuda.CharStorage: torch.cuda.CharStorage,
torch.cuda.ByteStorage: torch.cuda.ByteStorage,
torch.cuda.ShortStorage: torch.cuda.ShortStorage,
Expand Down
1 change: 1 addition & 0 deletions bmtrain/nccl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def dtype2nccl(dtype : torch.dtype) -> int:
torch.int64 : ncclInt64,
torch.float16 : ncclFloat16,
torch.half : ncclHalf,
torch.bfloat16 : ncclBFloat16,
torch.float32 : ncclFloat32,
torch.float : ncclFloat,
torch.float64 : ncclFloat64,
Expand Down
1 change: 1 addition & 0 deletions bmtrain/nccl/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
ncclFloat = 7
ncclFloat64 = 8
ncclDouble = 8
ncclBFloat16 = 9

### ncclRedOp_t

Expand Down