I’m looking to get started in PyTorch on my machine. I’ve done some trivial work in TensorFlow, but their lack of support for anything other than NVidia GPUs is annoying. I have both an NVidia GPU and AMD GPU installed in my desktop, along with a CPU. I wanted to make sure I could get everything to work. To get an idea of performance, I decided to go through the standard performance tests here:
I tried running python3 install.py but that errored out with:
Error for /home/garrett/devel/benchmark/torchbenchmark/models/BERT_pytorch:
---------------------------------------------------------------------------
running develop
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied: '/usr/local/lib/python3.10/dist-packages/test-easy-install-369467.write-test'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/usr/local/lib/python3.10/dist-packages/
<snip>
Requiring root write access to run some perf tests is dumb. At the same time, running “–help” on the install script doesn’t provide a way to specify a different installation directory, despite the error text suggesting otherwise.
So. How can I safely run some basic performance test using every combination of my GPUs and CPU for performance comparisons?