Skip to content

Commit dbcbbf5

Browse files
fix rtd env version and add comment on docker readme
1 parent 79b06f4 commit dbcbbf5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

docker/README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,14 @@ Run the docker container by the following command:
1616
```bash
1717
sudo docker run -it --network host --gpus all tensorcircuit
1818

19-
# if one also wants mount local source code, also add args `-v "$(pwd)":/app`
19+
# if one also wants to mount local source code, also add args `-v "$(pwd)":/app`
20+
21+
# using tensorcircuit/tensorcircuit to run the prebuild docker image from dockerhub
2022

2123
# for old dockerfile with no runtime env setting
2224
# sudo docker run -it --network host -e LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-11.0/targets/x86_64-linux/lib -e PYTHONPATH=/app -v "$(pwd)":/app --gpus all tensorcircuit
2325
```
2426

2527
`export TF_CPP_MIN_LOG_LEVEL=3` maybe necessary since jax suprisingly frequently complain about ptxas version problem. And `export CUDA_VISIBLE_DEVICES=-1` if you want to test only on CPU.
28+
29+
The built docker has no tensorcircuit installed but left with a tensorcircuit source code dir. So one can `python setup.py develop` to install tensorcircuit locally (in which one can also mount the tensorcircuit codebase on host) or `pip install tensorcircuit` within the running docker.

requirements/requirements-rtd.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ ipykernel
1313
furo==2022.4.7
1414
sphinx-copybutton
1515
nbsphinx
16-
myst-parser
16+
myst-parser
17+
urllib3==1.26.15

0 commit comments

Comments
 (0)