
    Αi                     "    S SK Jr  S rS rS rg)    )corec                     U S:  a  [        U S-  5      nU S-  n O[        U S-  5      nU S-  n [        U S-  5      n[        U S-  5      nU SU SU 3$ )Ni'  i  d   .)int)verNCCL_MAJOR_VERSIONNCCL_MINOR_VERSIONNCCL_PATCH_VERSIONs       c/var/www/html/banglarbhumi/venv/lib/python3.13/site-packages/paddle/distributed/utils/nccl_utils.pyget_nccl_version_strr      sq    
e| .Ek -DjSCZS3Y !#5"6a8J7KLL    c                  h    [         R                  " 5       n [        U 5      nSnX:  d   SU S35       eg )Ni
  zrThe version of NCCL is required to be at least v2.8.4 while training with pipeline/MoE parallelism, but we found vz. The previous version of NCCL has some bugs in p2p communication, and you can see more detailed description about this issue from ReleaseNotes of NCCL v2.8.4 (https://docs.nvidia.com/deeplearning/nccl/release-notes/rel_2-8-4.html#rel_2-8-4).)r   nccl_versionr   )r   nccl_version_strnccl_version_baselines      r   check_nccl_version_for_p2pr   !   sL    $$&L+L9 0 	33C2D E^	^0r   c                  8    [         R                  " 5       n SnX:  $ )NiR  )r   r   )r   r   s     r   check_nccl_version_for_bf16r   .   s    $$&L!00r   N)paddle.baser   r   r   r    r   r   <module>r      s     M
1r   