Skip to content

Commit

Permalink
Checking that the NCCL 2 license file is found, see GitHub issue 19679.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 202613754
  • Loading branch information
tensorflower-gardener committed Jun 29, 2018
1 parent 6874e1e commit f70dfea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,9 @@ def set_tf_nccl_install_path(environ_cp):

nccl_lib_path = os.path.join(nccl_install_path, nccl_lib_path)
nccl_hdr_path = os.path.join(nccl_install_path, 'include/nccl.h')
if os.path.exists(nccl_lib_path) and os.path.exists(nccl_hdr_path):
nccl_license_path = os.path.join(nccl_install_path, 'NCCL-SLA.txt')
if os.path.exists(nccl_lib_path) and os.path.exists(
nccl_hdr_path) and os.path.exists(nccl_license_path):
# Set NCCL_INSTALL_PATH
environ_cp['NCCL_INSTALL_PATH'] = nccl_install_path
write_action_env_to_bazelrc('NCCL_INSTALL_PATH', nccl_install_path)
Expand Down

0 comments on commit f70dfea

Please sign in to comment.