Skip to content
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

Added ccache to CI and fixed PyTorch caching #161

Merged
merged 2 commits into from
Jul 18, 2019
Merged

Conversation

mathfac
Copy link
Contributor

@mathfac mathfac commented Jul 17, 2019

  • fixed PyTorch caching
  • added ccache to CI
  • broke habitat api step on installation and testing to save extra 5 min on saving cache in parallel
    The testing time drops from first run to second run from 17.5 minutes to 9 minutes (2x times) for full testing.

How Has This Been Tested

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have completed my CLA (see CONTRIBUTING)
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Jul 17, 2019
paths:
- ~/miniconda
- run:
name: ccache stats

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
name: ccache stats
name: CCache Stats

@@ -107,6 +107,19 @@ jobs:
- restore_cache:
keys:
- habitat-sim-{{ checksum "./hsim_sha" }}
- restore_cache:
keys:
- ccache-{{ arch }}-{{ .Branch }}-{{ epoch }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this not work as {{ epoch }} is the current time and the cache-key will forever be different? Since this is the API, probably ccache-{{ arch }}-{{ checksum "./hsim_sha" }} makes sense as the key.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, it should just be ccache-{{ arch }} as the install of the simulator is already cached.

paths:
- ./habitat-sim
- save_cache:
key: ccache-{{ arch }}-{{ .Branch }}-{{ epoch }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment about the key.

@mathfac mathfac force-pushed the ci_fix_caching branch 2 times, most recently from 8df0996 to 8a2dd4c Compare July 17, 2019 22:15
@mathfac mathfac changed the title Fixed PyTorch caching and added ccache to CI Added ccache to CI and fixed PyTorch caching Jul 17, 2019
@mathfac mathfac merged commit 7eb3da1 into master Jul 18, 2019
@mathfac mathfac deleted the ci_fix_caching branch July 18, 2019 00:32
dhruvbatra pushed a commit that referenced this pull request May 10, 2020
* viewer: access pathfinder only if it's actually loaded.

* assets: don't crash on relative house.json paths.
dannymcy pushed a commit to dannymcy/habitat-lab that referenced this pull request Jul 8, 2024
* fixed PyTorch caching
* added ccache to CI
* broke habitat api step on installation and testing to save extra 5 min on saving cache in parallel
* testing time drops from first run to second run from 17.5 minutes to 9 minutes (2x times) for full testing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants