Set up sccache inside the DockerFile.#9697
Set up sccache inside the DockerFile.#9697Jorghi12 wants to merge 19 commits intopytorch:masterfrom Jorghi12:caffe2_sccache
Conversation
|
Is there a way to call |
|
I will start a Caffe2 docker image build based on the changes here. |
By default the swap memory limit is set to 2 x the memory limit. Testing build using unlimited swap for ROCm.
facebook-github-bot
left a comment
There was a problem hiding this comment.
@Jorghi12 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
|
Since this change is updating the DockerFile & the build script at once, the caffe2-docker trigger https://ci.pytorch.org/jenkins/job/caffe2-docker-trigger/148/ will be the source of truth. |
|
The Caffe2 Docker Trigger passes all but one: https://ci.pytorch.org/jenkins/job/caffe2-docker-trigger/149/ Due to: |
E: Held packages were changed and -y was used without --allow-change-held-packages.
Trying without memory swap to test an issue.
Keep hip thrust.
| for compiler in "${compilers[@]}"; do | ||
| ( | ||
| echo "#!/bin/sh" | ||
| echo "exec $SCCACHE $(which $compiler) \"\$@\"" |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
| } | ||
|
|
||
| # This will be removed after merging an upcoming PR. | ||
| install_hcrng() { |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
| fi | ||
|
|
||
| install_hip_thrust | ||
| install_hcrng |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
docker/caffe2/jenkins/build.sh
Outdated
|
|
||
| # Build image | ||
| docker build \ | ||
| docker build $(if [[ "$image" == *rocm* ]]; then echo "--memory-swap -1"; fi) \ |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
facebook-github-bot
left a comment
There was a problem hiding this comment.
@Jorghi12 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
|
@pytorchbot retest this please |
|
Can we merge this? |
|
This must be landed with an update to the Docker images. |
|
@Jorghi12 Is there a new status on this one? |
|
This diff is abandoned. |
Start setting up sccache inside of the DockerFile, instead of in the jenkins build script. Also created a fork of sccache that supports HCC, uploaded to AWS.
Allowing maximum swap space usage for ROCm builds to alleviate the LLVM out of memory issue we've been facing.