cresset-template / cresset

Template repository to build PyTorch projects from source on any version of PyTorch/CUDA/cuDNN.
MIT License
715 stars 41 forks source link

Fix compilation issues in PyTorch build. #134

Closed veritas9872 closed 1 year ago

veritas9872 commented 1 year ago

Closes #132 Closes #133

Stop including /opt/conda/lib in the dynamic link search path. However, ldconfig is still called after all apt, pip, and conda packages are installed.

Update the ccache settings to use the recommendations provided in the contributing guide. https://github.com/pytorch/pytorch/blob/main/CONTRIBUTING.md#use-ccache

Also reinstate the nvcc header fixing code, at least for the PyTorch-related compilation stages.