-
Notifications
You must be signed in to change notification settings - Fork 550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support nvcc
in sccache-dist
#2247
base: main
Are you sure you want to change the base?
Commits on Nov 8, 2024
-
* Refactor
start_compile_task()
into an async function* Spawn the tokio compilation task in `check_compiler()` instead of in `start_compile_task()` * Map the tokio compilation task into a stream, and return that stream as the response body These changes reduce the amount of memory leaked when building the default linux target with glibc. Refactoring `start_compile_task()` to be an async function is a necessary change to support re-entrancy for sccache-dist nvcc support.
Configuration menu - View commit details
-
Copy full SHA for 22a55c4 - Browse repository at this point
Copy the full SHA 22a55c4View commit details -
Ensure
use_preprocessor_cache_mode
considers the current value of t……he `SCCACHE_DIRECT` envvar.
Configuration menu - View commit details
-
Copy full SHA for 10ba495 - Browse repository at this point
Copy the full SHA 10ba495View commit details -
Refactor
CompileCommand
into a trait* Refactor `CompileCommand` into a trait with an execute function that accepts an `SccacheService<T>` ref and a `CommandCreatorSync` ref * Rename `CompileCommand` struct to `SingleCompileCommand` * Update all `generate_compile_command()` implementations to return a boxed `CompileCommand` trait This allows compilers to return custom implementations of the `CompileCommand` trait that execute more complex logic than simply launching a subprocess.
Configuration menu - View commit details
-
Copy full SHA for 1aa9d88 - Browse repository at this point
Copy the full SHA 1aa9d88View commit details -
Add an
extra_dist_files
field to theParsedArguments
struct, so c……ompilers can add additional files to be included for each distributed compilation
Configuration menu - View commit details
-
Copy full SHA for 8d9f910 - Browse repository at this point
Copy the full SHA 8d9f910View commit details -
Add an
UnhashedFlag
argument type for flags which should not affect…… the computed hash
Configuration menu - View commit details
-
Copy full SHA for de276b1 - Browse repository at this point
Copy the full SHA de276b1View commit details -
Update
Nvcc
compiler to support distributed compilation* Adds top-level `Cicc` and `Ptxas` compiler types * Updates `Nvcc` compiler implementation to decompose nvcc calls into its constituent subcompiler invocations via the `nvcc --dryrun` flag * Bumps the `sccache-dist` request timeout from 5 to 10 minutes, because nvcc compilations can take a while * Updates the CUDA tests, separates into tests for nvcc and clang since now their behavior is different * Fixes lint
Configuration menu - View commit details
-
Copy full SHA for b27a186 - Browse repository at this point
Copy the full SHA b27a186View commit details -
Detect both nvcc and host compiler version so we can safely revert to…
… caching outer nvcc invocations
Configuration menu - View commit details
-
Copy full SHA for f14f10d - Browse repository at this point
Copy the full SHA f14f10dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 83f1332 - Browse repository at this point
Copy the full SHA 83f1332View commit details -
Configuration menu - View commit details
-
Copy full SHA for 07bacc1 - Browse repository at this point
Copy the full SHA 07bacc1View commit details -
Test nvcc and clang-cuda in workflows/ci.yml
* Test nvcc and clang-cuda in workflows/ci.yml * Fix clang-cuda tests * Ensure /tmp/sccache_*.txt files are included in failed job artifacts on Windows
Configuration menu - View commit details
-
Copy full SHA for 91e7b4f - Browse repository at this point
Copy the full SHA 91e7b4fView commit details -
Attempt to fix intermittent config_from_env() test failures by ensuri…
…ng envvars are reset before unwrapping/asserting
Configuration menu - View commit details
-
Copy full SHA for a5704b2 - Browse repository at this point
Copy the full SHA a5704b2View commit details -
ensure SCCACHE_NO_CACHE calls aren't tracked as an uncacheable compil…
…ations in the stats
Configuration menu - View commit details
-
Copy full SHA for 4e1646b - Browse repository at this point
Copy the full SHA 4e1646bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 99ad742 - Browse repository at this point
Copy the full SHA 99ad742View commit details