Comment on why NCCL can't be ordered in tf1.
PiperOrigin-RevId: 355484203 Change-Id: I23606db9759b72355f58147cdf7ad61d3076641d
This commit is contained in:
parent
a5e16cb4d1
commit
6ff048e951
@ -286,6 +286,8 @@ class CollectiveReplicaLauncher(object):
|
|||||||
return CollectiveReplicaLauncher._prefer_unique_instance_key
|
return CollectiveReplicaLauncher._prefer_unique_instance_key
|
||||||
|
|
||||||
def _use_ordering_token(self):
|
def _use_ordering_token(self):
|
||||||
|
# We rely on auto control dep to insert control edges between NCCL calls,
|
||||||
|
# but for tf1 graph mode auto control dep is not used.
|
||||||
if not ops.executing_eagerly_outside_functions():
|
if not ops.executing_eagerly_outside_functions():
|
||||||
return False
|
return False
|
||||||
return CollectiveReplicaLauncher._prefer_ordering_token
|
return CollectiveReplicaLauncher._prefer_ordering_token
|
||||||
|
Loading…
Reference in New Issue
Block a user