Skip to content

Commit

Permalink
Fix the A10G CI due to permission issues (#2123)
Browse files Browse the repository at this point in the history
Summary:
After the version upgrade, the runner UID changed from 1000 to 1001, so we need to setup the directory permission correctly to fix it on A10G CI.

Pull Request resolved: #2123

Reviewed By: aaronenyeshi

Differential Revision: D52971828

Pulled By: xuzhao9

fbshipit-source-id: 6d63e64b38e2339696578dc3aacd220c9df84681
  • Loading branch information
xuzhao9 authored and facebook-github-bot committed Jan 23, 2024
1 parent 8f30da3 commit dbc3201
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/pr-a10g.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:
tail -f /dev/null
)
echo "Container name: ${container_name}"
docker exec -t -w "/" "${container_name}" bash -c "sudo chown -R runner /benchmark; sudo chgrp -R runner /benchmark"
docker exec -t -w "/benchmark" "${container_name}" bash /benchmark/scripts/torchbench_install.sh
docker exec -t -w "/benchmark" "${container_name}" bash /benchmark/scripts/torchbench_test.sh
- name: Teardown Linux
Expand Down
2 changes: 1 addition & 1 deletion torchbenchmark/models/BERT_pytorch/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


def setup_install():
subprocess.check_call([sys.executable, 'setup.py', 'develop'])
subprocess.check_call([sys.executable, '-m', "pip", 'install', '--user', '-e', '.'])

if __name__ == '__main__':
setup_install()

0 comments on commit dbc3201

Please sign in to comment.