-
Notifications
You must be signed in to change notification settings - Fork 534
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add trick from apex to cross-compile over multiple cuda architectures…
… with docker build (#141) add instructions for heterogeneous GPUs setup in README.md Signed-off-by: cfujitsang <cfujitsang@nvidia.com>
- Loading branch information
Showing
3 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
FROM nvcr.io/nvidia/pytorch:19.11-py3 | ||
FROM pytorch/pytorch:1.2-cuda10.0-cudnn7-devel | ||
|
||
WORKDIR /kaolin | ||
COPY . . | ||
|
||
ENV KAOLIN_HOME "/kaolin" | ||
ENV TORCH_CUDA_ARCH_LIST="5.2 6.0 6.1 7.0 7.5+PTX" | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y vim | ||
|
||
RUN pip install -r requirements.txt && \ | ||
python setup.py install | ||
python setup.py develop |
This file contains 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 file contains 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