You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix CI Script for Ubuntu 24.04 and Improve CUDA Handling (#51)
Summary:
This PR updates the `.ci/setup.sh` script to improve compatibility and reliability for CI on Ubuntu 24.04.
## Key Changes
1. **Set Default Clang Version**
* After installing `clang-19` and `clangd-19`, `update-alternatives` is now used to explicitly set them as the system-wide default `clang` and `clangd` commands. This ensures that subsequent scripts and build tools can directly call `clang`, resolving the `clang: command not found` issue.
2. **Optimized CUDA Detection and Installation**
* The script now robustly checks for `nvcc` in the `PATH` or standard installation locations in a way that prevents the script from exiting prematurely due to `set -e`.
* Added support for the `INSTALL_CUDA` environment variable to conditionally control the installation of the CUDA toolkit.
3. **Improved Debugging and Robustness**
* Removed unnecessary debug outputs while retaining essential error messages and installation information.
* Ensured that all critical dependencies can be correctly invoked after installation.
## Impact
* The CI environment is more stable on Ubuntu 24.04, with the toolchain and dependencies configured automatically.
* Users no longer need to manually configure the default clang version, reducing environment setup errors.
* CUDA detection is more robust, supporting various installation scenarios.
Pull Request resolved: #51
Reviewed By: sfzhu93
Differential Revision: D79598464
Pulled By: FindHao
fbshipit-source-id: aee9865460c0580b42c5381ac2f61d950b1f67fb
0 commit comments