Hello; a few getting started questions. Post is a bit rambling; so I numbered some questions; but any general advice on how to structure a development environment is most welcome.
In other projects; I do my development work in Docker. I find it nice to have the dockerfile to “document” the environment; and then docker run ... pytorch-dev /bin/bash
and from there tend to interactively work in the container. 1.) Is that somewhat common for pytorch; or do most rely on the env management offered by Conda?
I started with the dockerfile given here - Building from source in docker: Memory use requirments? - #6 by Padarn_Wilson - which is pretty similar to the Dockerfile in the repo.
But running Coda in Docker seems to have some considerations
conda activate
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
```https://pythonspeed.com/articles/activate-conda-dockerfile/ has some pointers on using Conda; so perhaps either of the suggested options would be worth investigating.
printf '#include <stdio.h>\nint main() { printf("Hello World");}'|clang -x c -; ./a.out
bash: clang: command not found
bash: ./a.out: No such file or directory
2.) Are these errors happening because the Conda environment isn’t active; so the required executables are not being found?
The below command did run through without any errors; so I do think the setup is quite close:
CMAKE_PREFIX_PATH="$(dirname $(which conda))/../" python setup.py develop
Trying to run python tests; I get the below
Traceback (most recent call last):
File "test/run_test.py", line 19, in <module>
from torch.testing._internal.common_utils import (
File "/home/brent/repos/pytorch/torch/testing/_internal/common_utils.py", line 46, in <module>
import expecttest
ModuleNotFoundError: No module named 'expecttest'
3.) If I try to stick with docker; I guess I could consider dropping using conda; since I could do multiple builds in different docker images.
Again; any pointers will be much appreciated!
Thanks,Brent