Skip to content

Commit

Permalink
try on cpu4 runners with 4x parallelism
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed Nov 1, 2024
1 parent 879c894 commit 32dd533
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/actions/workflow-build/build-workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ def generate_dispatch_job_runner(matrix_job, job_type):

job_info = get_job_type_info(job_type)
if not job_info['gpu']:
return f"{runner_os}-{cpu}-cpu8"
return f"{runner_os}-{cpu}-cpu4"

gpu = get_gpu(matrix_job['gpu'])
suffix = "-testing" if gpu['testing'] else ""
Expand Down
11 changes: 8 additions & 3 deletions .github/actions/workflow-run-job-linux/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ runs:
RUNNER: "${{inputs.runner}}"
# Dereferencing the command from an env var instead of a GHA input avoids issues with escaping
# semicolons and other special characters (e.g. `-arch "60;70;80"`).
COMMAND: "${{inputs.command}} -v"
COMMAND: "${{inputs.command}}"
DIST_TOKEN: "${{inputs.dist-token}}"
AWS_ACCESS_KEY_ID: "${{env.AWS_ACCESS_KEY_ID}}"
AWS_SESSION_TOKEN: "${{env.AWS_SESSION_TOKEN}}"
Expand Down Expand Up @@ -173,7 +173,7 @@ runs:
chmod 0664 "$RUNNER_TEMP/.config/sccache/config"
extra_launch_args+=(
--env "PARALLEL_LEVEL=$((CPUS * 2))"
--env "PARALLEL_LEVEL=$((CPUS * 4))"
--env "SCCACHE_NO_CACHE=true"
--env "SCCACHE_S3_KEY_PREFIX=cccl-sccache-dist-test"
--volume "$(host_path "$RUNNER_TEMP")/.config:/root/.config:ro"
Expand Down Expand Up @@ -221,10 +221,15 @@ runs:
touch "$result_dir/success"
echo "repo: ${{github.workspace}}/${{github.event.repository.name}}"
echo "pwd: $(pwd)"
echo "dirs:"
find . -mindepth 1 -maxdepth 1 -type d
# Finds a matching file in the repo directory and copies it to the results directory.
find_and_copy() {
filename="$1"
filepath="$(find ${{github.event.repository.name}} -name "${filename}" -print -quit)"
filepath="$(find "${{github.workspace}}/${{github.event.repository.name}}" -name "${filename}" -print -quit)"
if [[ -z "$filepath" ]]; then
echo "${filename} does not exist in repo directory."
return 1
Expand Down

0 comments on commit 32dd533

Please sign in to comment.