We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7aa0a1 commit 8848dadCopy full SHA for 8848dad
timm/utils/distributed.py
@@ -109,8 +109,13 @@ def init_distributed_device_so(
109
global_rank = 0
110
local_rank = 0
111
if dist_backend is None:
112
- # FIXME sane defaults for other device backends?
113
- dist_backend = 'nccl' if 'cuda' in device else 'gloo'
+ # FIXME: verify that ROCm transform nccl to rccl
+ dist_backends = {
114
+ "xpu": "ccl",
115
+ "hpu": "hccl",
116
+ "cuda": "nccl",
117
+ }
118
+ dist_backend = dist_backends.get(device, 'gloo')
119
dist_url = dist_url or 'env://'
120
121
# TBD, support horovod?
0 commit comments