This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This dockerfile is meant to be personalized, and serves as a template and demonstration. | |
# Modify it directly, but it is recommended to copy this dockerfile into a new build context (directory), | |
# modify to taste and modify docker-compose.yml.template to build and run it. | |
# It is recommended to control docker containers through 'docker-compose' https://docs.docker.com/compose/ | |
# Docker compose depends on a .yml file to control container sets | |
# rocm-setup.sh can generate a useful docker-compose .yml file | |
# `docker-compose run --rm <rocm-terminal>` | |
# If it is desired to run the container manually through the docker command-line, the following is an example |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Excluding c10d on ROCm | |
Excluding cpp_extensions on ROCm | |
Excluding distributed on ROCm | |
Excluding multiprocessing on ROCm | |
Excluding nccl on ROCm | |
Excluding thd_distributed on ROCm | |
Selected tests: autograd, cuda, cuda_primary_ctx, dataloader, distributions, expecttest, indexing, jit, nn, numba_integration, optim, sparse, torch, type_info, utils | |
Running test_autograd ... | |
test___getitem__ (__main__.TestAutograd) ... ok | |
test___getitem___adv_index (__main__.TestAutograd) ... ok |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Building wheel torch-1.0.0a0+664d8cd | |
running install | |
setup.py::run() | |
running build_deps | |
+ SYNC_COMMAND=cp | |
++ command -v rsync | |
+ '[' -x '' ']' | |
+ CMAKE_COMMAND=cmake | |
++ command -v cmake3 | |
+ [[ -x '' ]] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PYTORCH_TEST_WITH_ROCM=1 python test/run_test.py --verbose | |
Excluding c10d on ROCm | |
Excluding cpp_extensions on ROCm | |
Excluding distributed on ROCm | |
Excluding distributions on ROCm | |
Excluding multiprocessing on ROCm | |
Excluding nccl on ROCm | |
Excluding thd_distributed on ROCm | |
Excluding utils on ROCm | |
Selected tests: autograd, cuda, cuda_primary_ctx, dataloader, expecttest, indexing, jit, nn, numba_integration, optim, sparse, torch, type_info |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PYTORCH_TEST_WITH_ROCM=1 python test/run_test.py --verbose | |
Excluding c10d on ROCm | |
Excluding cpp_extensions on ROCm | |
Excluding distributed on ROCm | |
Excluding distributions on ROCm | |
Excluding multiprocessing on ROCm | |
Excluding nccl on ROCm | |
Excluding thd_distributed on ROCm | |
Excluding utils on ROCm | |
Selected tests: autograd, cuda, cuda_primary_ctx, dataloader, expecttest, indexing, jit, nn, numba_integration, optim, sparse, torch, type_info |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@Ryzen1800X:~/pytorch/test# python run_test.py | |
Running test_autograd ... | |
............................................................................................s..................................### HCC STATUS_CHECK Error: HSA_STATUS_ERROR_INVALID_ISA (0x100f) at file:mcwamp_hsa.cpp line:1156 | |
Traceback (most recent call last): | |
File "run_test.py", line 391, in <module> | |
main() | |
File "run_test.py", line 383, in main | |
raise RuntimeError(message) | |
RuntimeError: test_autograd failed! Received signal: SIGIOT | |
root@Ryzen1800X:~/pytorch/test# python test_torch.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drun -v ~/:/root/briansp -v /tmp/ramdisk:/root/input --ipc=host bsp2020/pytorch /bin/bash | |
# Setup environment variables (put them in .bashrc) | |
alias jupyter='jupyter notebook --allow-root --ip=0.0.0.0' | |
export KMTHINLTO="1" LANG="C.UTF-8" LC_ALL="C.UTF-8" | |
# Update rocm_agent_enumerator | |
cp ~/briansp/Downloads/rocm_agent_enumerator.txt /opt/rocm/bin/rocm_agent_enumerator | |
# Remove hip-thrust and install from git | |
apt purge hip-thrust |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# USE_ROCM=1 MAX_JOBS=16 python3 setup.py install --user | |
Building wheel torch-1.0.0a0+8516a28 | |
running install | |
setup.py::run() | |
running build_deps | |
setup.py::build_deps::run() | |
+ SYNC_COMMAND=cp | |
++ command -v rsync | |
+ '[' -x /usr/bin/rsync ']' | |
+ SYNC_COMMAND='rsync -lptgoD' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# dpkg -i ~/briansp/Downloads/rocsparse-0.1.3.1-Linux.deb | |
Selecting previously unselected package rocsparse. | |
(Reading database ... 44441 files and directories currently installed.) | |
Preparing to unpack .../rocsparse-0.1.3.1-Linux.deb ... | |
Unpacking rocsparse (0.1.3.1) ... | |
Setting up rocsparse (0.1.3.1) ... | |
Processing triggers for libc-bin (2.23-0ubuntu9) ... | |
root@Ryzen1800X:/root/pytorch# USE_ROCM=1 MAX_JOBS=8 python3 setup.py install --user | |
Building wheel torch-1.0.0a0+2203cd8 | |
running install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# dpkg -i ~/briansp/Downloads/Pytorch_Docker/installers/* | |
(Reading database ... 44441 files and directories currently installed.) | |
Preparing to unpack .../hcsparse-master-d7aadff-Linux.deb ... | |
Unpacking hcsparse (0.1.1) over (0.1.1) ... | |
Preparing to unpack .../rocrand-1.8.1-Linux.deb ... | |
Unpacking rocrand (1.8.1) over (1.8.1) ... | |
Setting up hcsparse (0.1.1) ... | |
Setting up rocrand (1.8.1) ... | |
Processing triggers for libc-bin (2.23-0ubuntu9) ... | |
root@Ryzen1800X:/root/pytorch# USE_ROCM=1 MAX_JOBS=8 python3 setup.py install --user |