5
5
.PHONY : help create-host-workspace build build-gpu run run-gpu notebook notebook-gpu
6
6
7
7
DOCKER_FILE =Dockerfile
8
- BASE_IMG =ubuntu:18.04
9
- BASE_CUDA_IMG =nvidia/cuda:11.5.0-cudnn8-runtime-ubuntu18.04
8
+ BASE_IMG =ubuntu:24.04
10
9
DOCKER_CMD =docker
11
- DOCKER_GPU_CMD =nvidia-docker
12
10
HOST_WORK_DIR =${HOME}/pyro_docker
13
- UID =$( shell id -u)
14
- GID =$( shell id -g)
11
+ UID =999
12
+ GID =999
15
13
OSTYPE =$(shell uname)
16
14
USER =pyromancer
17
15
DOCKER_WORK_DIR =/home/${USER}/workspace/shared
18
16
pyro_git_url =https://github.com/pyro-ppl/pyro.git
19
17
20
18
# Optional args
21
- python_version? =3.6
19
+ python_version? =3.12
22
20
pytorch_branch? =release
23
21
pyro_branch? =release
24
22
cmd? =bash
@@ -45,12 +43,11 @@ help:
45
43
46
44
build : # #
47
45
# # Build a docker image for running Pyro on a CPU.
48
- # # Requires nvidia-docker (https://github.com/NVIDIA/nvidia-docker).
49
46
# # Args:
50
- # # python_version: version of python to use. default - python 3.6
47
+ # # python_version: version of python to use. default - python 3.12
51
48
# # pytorch_branch: whether to build PyTorch from conda or from source
52
49
# # (git branch specified by pytorch_branch)
53
- # # default - latest pytorch version on conda
50
+ # # default - latest pytorch version on the torch python package index
54
51
# # pyro_branch: whether to use the released Pyro wheel or a git branch.
55
52
# # default - latest pyro-ppl wheel on pypi
56
53
# #
@@ -66,21 +63,20 @@ build: ##
66
63
67
64
build-gpu : # #
68
65
# # Build a docker image for running Pyro on a GPU.
69
- # # Requires nvidia-docker (https://github.com/NVIDIA/nvidia-docker).
70
66
# # Args:
71
- # # python_version: version of python to use. default - python 3.6
67
+ # # python_version: version of python to use. default - python 3.12
72
68
# # pytorch_branch: whether to build PyTorch from conda or from source
73
69
# # (git branch specified by pytorch_branch)
74
- # # default - latest pytorch version on conda
70
+ # # default - latest pytorch version on the torch python package index
75
71
# # pyro_branch: whether to use the released Pyro wheel or a git branch.
76
72
# # default - latest pyro-ppl wheel on pypi
77
73
# #
78
- ${DOCKER_GPU_CMD } build -t ${IMG_NAME} \
79
- --build-arg base_img=${BASE_CUDA_IMG } \
74
+ ${DOCKER_CMD } build -t ${IMG_NAME} \
75
+ --build-arg base_img=${BASE_IMG } \
80
76
--build-arg uid=${UID} \
81
77
--build-arg gid=${GID} \
82
78
--build-arg ostype=${OSTYPE} \
83
- --build-arg cuda=1 \
79
+ --build-arg pytorch_whl=cu118 \
84
80
--build-arg python_version=${python_version} \
85
81
--build-arg pytorch_branch=${pytorch_branch} \
86
82
--build-arg pyro_git_url=${pyro_git_url} \
0 commit comments