-
Notifications
You must be signed in to change notification settings - Fork 741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build MXJob examples in CI #1927
Merged
google-oss-prow
merged 1 commit into
kubeflow:master
from
tenzen-y:push-mxnet-image-to-registry
Oct 5, 2023
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
FROM mxnet/python:gpu | ||
FROM mxnet/python:1.9.1_gpu_cu112_py3 | ||
|
||
RUN apt-get update && \ | ||
RUN apt-get update -y && \ | ||
apt-get install -y git && \ | ||
git clone https://github.com/apache/incubator-mxnet.git -b v1.6.x | ||
git clone https://github.com/apache/mxnet.git -b v1.9.x && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ENTRYPOINT ["python", "/incubator-mxnet/example/image-classification/train_mnist.py"] | ||
ENTRYPOINT ["python3", "/mxnet/mxnet/example/image-classification/train_mnist.py"] |
This file was deleted.
Oops, something went wrong.
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,61 +1,7 @@ | ||
FROM nvidia/cuda:10.0-cudnn7-devel-ubuntu16.04 | ||
|
||
# Download usefull tools and mxnet, tvm | ||
WORKDIR /home/scripts | ||
RUN apt-get update && apt-get install -y git vim cmake wget sed && \ | ||
git clone --recursive https://github.com/dmlc/tvm && \ | ||
git clone --recursive https://github.com/apache/incubator-mxnet mxnet | ||
|
||
# Download necessary dependence | ||
RUN apt-get update && \ | ||
apt-get install -y python3 python3-dev python3-setuptools gcc libtinfo-dev zlib1g-dev && \ | ||
apt-get install -y python3-pip && \ | ||
apt-get install -y build-essential | ||
|
||
# mxnet dependence | ||
RUN apt-get install -y libopenblas-dev liblapack-dev && \ | ||
apt-get install -y libopencv-dev | ||
|
||
# tvm dependence | ||
RUN pip3 install --user numpy decorator && \ | ||
pip3 install --user tornado psutil xgboost | ||
|
||
# get llvm 4.0.0 for tvm | ||
RUN wget http://releases.llvm.org/4.0.0/clang+llvm-4.0.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz && \ | ||
tar -xf clang+llvm-4.0.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz && \ | ||
mv clang+llvm-4.0.0-x86_64-linux-gnu-ubuntu-16.04 llvm && \ | ||
rm clang+llvm-4.0.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz | ||
|
||
# Compile mxnet | ||
RUN cd mxnet && \ | ||
make clean && \ | ||
make -j $(nproc) USE_OPENCV=1 USE_BLAS=openblas USE_DIST_KVSTORE=1 USE_CUDA=1 USE_CUDA_PATH=/usr/local/cuda USE_CUDNN=1 | ||
|
||
# Install mxnet | ||
RUN cd mxnet/python && \ | ||
pip3 install -e . | ||
|
||
# Compile tvm | ||
RUN cd tvm && \ | ||
mkdir build && \ | ||
cp cmake/config.cmake build && \ | ||
cd build && \ | ||
sed -i 's/set(USE_CUDA OFF)/set(USE_CUDA ON)/g' config.cmake && \ | ||
sed -i 's/set(USE_CUDNN OFF)/set(USE_CUDNN ON)/g' config.cmake && \ | ||
sed -i 's/set(USE_CUBLAS OFF)/set(USE_CUBLAS ON)/g' config.cmake && \ | ||
sed -i 's/set(USE_LLVM OFF)/set(USE_LLVM ..\/..\/llvm\/bin\/llvm-config)/g' config.cmake && \ | ||
cmake .. && \ | ||
make -j $(nproc) | ||
|
||
# Install tvm | ||
RUN cd tvm && \ | ||
cd python; python3 setup.py install --user; cd .. && \ | ||
cd topi/python; python3 setup.py install --user; cd ../.. && \ | ||
cd nnvm/python; python3 setup.py install --user; cd ../.. | ||
FROM nvcr.io/nvidia/mxnet:23.09-py3 | ||
|
||
# COPY custom code to container | ||
COPY start-job.py . | ||
COPY auto-tuning.py . | ||
COPY start-job.py / | ||
COPY auto-tuning.py / | ||
|
||
# Change working path | ||
WORKDIR /home/log | ||
ENTRYPOINT ["python3", "/start-job.py"] |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is duplicated with mxjob_dis_v1.yaml