Skip to content

Clarification for hermetic vs local CUDA installations #27528

@Flamefire

Description

@Flamefire

I'm reading https://openxla.org/xla/hermetic_cuda#pointing_to_cudacudnnnccl_redistributions_on_local_file_system and am not sure hot to interpret this:

My goal is to use CUDA etc. distributions already available on the cluster, i.e. installed locally.

Do I need to set either HERMETIC_CUDA_VERSION etc., LOCAL_CUDA_PATH etc. or both? I.e. does setting the former lead to downloading CUDA even with the latter set?
Similar for HERMETIC_CUDA_COMPUTE_CAPABILITIES: When does this need to be set exactly?

Additionally there are multiple mentions of:

If .bazelrc doesn't have corresponding entries and the environment variables
are not passed to bazel command, you can set them globally in your shell:

Do I need to set LOCAL_CUDA_PATH etc. in the environment, pass them to bazel via --repo_env or both?

Context: I'm building TensorFlow for a HPC cluster from source

Metadata

Metadata

Labels

questionFurther information is requestedstat:awaiting openxla-engAwaiting response from openxla-eng

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions