forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin' into ragulpr/requirements-txt-i…
…n-dev-setup * origin: (898 commits) Move dynamo.optimizations.distributed to backends (pytorch#93408) Remove cuda 11.6 from nightly (pytorch#93979) Refactor dynamo register_backend/BACKENDS (pytorch#93389) Remove cuda 11.6 from CI replace with 11.7 (pytorch#93406) [Dynamo] Rename `GuardBuilder.guarded_code` -> `check_fn_manager` (pytorch#93934) Revert "Remove CUDA 11.6 from nightly builds (pytorch#93404)" Revert "[inductor] fix crash issue when input is a view tensor (pytorch#90150)" Basic Validation for FSDP `state_dict` transformations of modules with persistent buffers (pytorch#93396) Merge Inductor perf smoke test with other inductor CI tests (pytorch#93395) [inductor] Don't import torchvision (pytorch#93027) [FSDP][3/N] Refactor `summon_full_params` unit tests (pytorch#92298) [FSDP][2/N] `_summon_full_params` -> `_unshard_params` (pytorch#92297) Remove CUDA 11.6 from nightly builds (pytorch#93404) Mark buffers that reuse other buffers (pytorch#93329) Refactor to allow reuse of SchedulerNode.allocate (pytorch#93328) retire sparse_mask_helper (pytorch#91714) update fbgemm third party (pytorch#93907) [inductor] fix crash issue when input is a view tensor (pytorch#90150) [Inductor] add config for weight prepacking (pytorch#93811) Check for none for NNModuleVariable.__module__ (pytorch#93326) ...
- Loading branch information
Showing
2,226 changed files
with
88,658 additions
and
55,562 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
#!/bin/bash | ||
# Required environment variables: | ||
# $BUILD_ENVIRONMENT (should be set by your Docker image) | ||
|
||
if [[ "$BUILD_ENVIRONMENT" != *win-* ]]; then | ||
# Save the absolute path in case later we chdir (as occurs in the gpu perf test) | ||
script_dir="$( cd "$(dirname "${BASH_SOURCE[0]}")" || exit ; pwd -P )" | ||
|
||
if which sccache > /dev/null; then | ||
# Save sccache logs to file | ||
sccache --stop-server > /dev/null 2>&1 || true | ||
rm -f ~/sccache_error.log || true | ||
|
||
function sccache_epilogue() { | ||
echo "::group::Sccache Compilation Log" | ||
echo '=================== sccache compilation log ===================' | ||
python "$script_dir/print_sccache_log.py" ~/sccache_error.log 2>/dev/null || true | ||
echo '=========== If your build fails, please take a look at the log above for possible reasons ===========' | ||
sccache --show-stats | ||
sccache --stop-server || true | ||
echo "::endgroup::" | ||
} | ||
|
||
# Register the function here so that the error log can be printed even when | ||
# sccache fails to start, i.e. timeout error | ||
trap_add sccache_epilogue EXIT | ||
|
||
if [[ -n "${SKIP_SCCACHE_INITIALIZATION:-}" ]]; then | ||
# sccache --start-server seems to hang forever on self hosted runners for GHA | ||
# so let's just go ahead and skip the --start-server altogether since it seems | ||
# as though sccache still gets used even when the sscache server isn't started | ||
# explicitly | ||
echo "Skipping sccache server initialization, setting environment variables" | ||
export SCCACHE_IDLE_TIMEOUT=1200 | ||
export SCCACHE_ERROR_LOG=~/sccache_error.log | ||
export RUST_LOG=sccache::server=error | ||
elif [[ "${BUILD_ENVIRONMENT}" == *rocm* ]]; then | ||
SCCACHE_ERROR_LOG=~/sccache_error.log SCCACHE_IDLE_TIMEOUT=0 sccache --start-server | ||
else | ||
# increasing SCCACHE_IDLE_TIMEOUT so that extension_backend_test.cpp can build after this PR: | ||
# https://github.com/pytorch/pytorch/pull/16645 | ||
SCCACHE_ERROR_LOG=~/sccache_error.log SCCACHE_IDLE_TIMEOUT=1200 RUST_LOG=sccache::server=error sccache --start-server | ||
fi | ||
|
||
# Report sccache stats for easier debugging | ||
sccache --zero-stats | ||
fi | ||
|
||
if which ccache > /dev/null; then | ||
# Report ccache stats for easier debugging | ||
ccache --zero-stats | ||
ccache --show-stats | ||
function ccache_epilogue() { | ||
ccache --show-stats | ||
} | ||
trap_add ccache_epilogue EXIT | ||
fi | ||
fi |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.