Skip to content

Commit

Permalink
Configure PATH and LD_LIBRARY_PATH to include cuda (#5761)
Browse files Browse the repository at this point in the history
* configure path and LD_LIBRARY_PATH to include cuda.

* also consider 32 bit system.

* add the path on gke container
  • Loading branch information
vanbasten23 authored and bhavya01 committed Apr 22, 2024
1 parent 1318547 commit d657e6b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions infra/ansible/config/env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ release_env:
cuda:
TF_CUDA_COMPUTE_CAPABILITIES: 7.0,7.5,8.0
XLA_CUDA: 1
PATH: /usr/local/cuda-{{ cuda_version }}/bin:/usr/local/nvidia/bin${PATH:+:${PATH}}
LD_LIBRARY_PATH: /usr/local/cuda-{{ cuda_version }}/lib64:/usr/local/cuda-{{ cuda_version }}/lib:/usr/local/nvidia/lib64:/usr/local/nvidia/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}:/usr/local/lib

# Variables that will be passed to shell environment only for building PyTorch and XLA libs.
build_env:
Expand Down Expand Up @@ -44,6 +46,8 @@ build_env:
cuda:
TF_CUDA_COMPUTE_CAPABILITIES: 7.0,7.5,8.0
XLA_CUDA: 1
PATH: /usr/local/cuda-{{ cuda_version }}/bin:/usr/local/nvidia/bin${PATH:+:${PATH}}
LD_LIBRARY_PATH: /usr/local/cuda-{{ cuda_version }}/lib64:/usr/local/cuda-{{ cuda_version }}/lib:/usr/local/nvidia/lib64:/usr/local/nvidia/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}:/usr/local/lib

tpu:
ACCELERATOR: tpu
Expand Down

0 comments on commit d657e6b

Please sign in to comment.