Reduce the overhead of nccl symmetric memory (#12524)
Co-authored-by: Nicolas Castet <ncastet@nvidia.com>
This commit is contained in:
@@ -677,10 +677,16 @@ class Engine(EngineBase):
|
||||
def _set_envs_and_config(server_args: ServerArgs):
|
||||
# Set global environments
|
||||
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3"
|
||||
if "NCCL_CUMEM_ENABLE" not in os.environ:
|
||||
if "NCCL_CUMEM_ENABLE" not in os.environ or server_args.enable_symm_mem:
|
||||
os.environ["NCCL_CUMEM_ENABLE"] = str(int(server_args.enable_symm_mem))
|
||||
if not server_args.enable_symm_mem:
|
||||
os.environ["NCCL_NVLS_ENABLE"] = str(int(server_args.enable_nccl_nvls))
|
||||
if (
|
||||
"NCCL_NVLS_ENABLE" not in os.environ
|
||||
or server_args.enable_nccl_nvls
|
||||
or server_args.enable_symm_mem
|
||||
):
|
||||
os.environ["NCCL_NVLS_ENABLE"] = str(
|
||||
int(server_args.enable_nccl_nvls or server_args.enable_symm_mem)
|
||||
)
|
||||
os.environ["CUDA_DEVICE_MAX_CONNECTIONS"] = "8"
|
||||
os.environ["CUDA_MODULE_LOADING"] = "AUTO"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user