Skip to content

Commit

Permalink
add rocm binary
Browse files Browse the repository at this point in the history
use the term cu_version

update pkg_helpers

add docker wheel option

update config yml

add force_cuda option
  • Loading branch information
micmelesse committed May 27, 2021
1 parent c8239c6 commit 23cf3fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .circleci/regenerate.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@


PYTHON_VERSIONS = ["3.6", "3.7", "3.8", "3.9"]
CU_VERSIONS_DICT = {"linux": ["cpu", "cu102", "cu111"],
CU_VERSIONS_DICT = {"linux": ["cpu", "cu102", "cu111","rocm4.1"],
"windows": ["cpu", "cu102", "cu111"],
"macos": ["cpu"]}

Expand Down Expand Up @@ -124,8 +124,10 @@ def generate_base_workflow(base_workflow_name, python_version, cu_version, filte
d['requires'] = ['download_third_parties_nix']
if btype == 'conda':
d['conda_docker_image'] = f'pytorch/conda-builder:{cu_version.replace("cu1","cuda1")}'
elif cu_version != 'cpu':
elif cu_version.startswith('cu'):
d['wheel_docker_image'] = f'pytorch/manylinux-{cu_version.replace("cu1","cuda1")}'
elif cu_version.startswith('rocm'):
d["wheel_docker_image"] = f"pytorch/manylinux-rocm:{cu_version[len('rocm'):]}"

if filter_branch:
d["filters"] = gen_filter_branch_tree(filter_branch)
Expand Down
4 changes: 4 additions & 0 deletions packaging/pkg_helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ setup_cuda() {
export FORCE_CUDA=1
export TORCH_CUDA_ARCH_LIST="3.5;5.0+PTX;6.0;7.0"
;;
rocm*)
export FORCE_CUDA=1
export USE_ROCM=1
;;
cpu)
;;
*)
Expand Down

0 comments on commit 23cf3fb

Please sign in to comment.