Skip to content

Commit

Permalink
Merge pull request #170 from sony/feature/20190702-fix-test-on-ppc64le
Browse files Browse the repository at this point in the history
Fix test on ppc64le
  • Loading branch information
YasunariZHashimoto authored Jul 8, 2019
2 parents b35103f + 511cc8c commit e6ad8e2
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 13 deletions.
4 changes: 2 additions & 2 deletions docker/development/Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# for nnabla>=1.0.17

ARG BASE
FROM ${BASE}

Expand Down Expand Up @@ -148,6 +146,7 @@ ARG PYTHON_VERSION_MAJOR
ARG PYTHON_VERSION_MINOR
ENV PYVERNAME=${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}

# Limitation: numpy>=1.17 does not support python2.7
ADD python/requirements.txt /tmp/deps/

RUN umask 0 \
Expand All @@ -158,6 +157,7 @@ RUN umask 0 \
&& . /opt/miniconda3/bin/activate \
&& conda create -n nnabla-build python=${PYVERNAME} \
&& conda activate nnabla-build \
&& pip install numpy\<1.17 \
&& pip install --only-binary -U -r /tmp/deps/requirements.txt \
&& conda clean -y --all \
&& cd / \
Expand Down
4 changes: 2 additions & 2 deletions docker/development/Dockerfile.build-multi-gpu
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# for nnabla>=1.0.17

ARG BASE
FROM ${BASE}

Expand Down Expand Up @@ -78,6 +76,7 @@ ARG PYTHON_VERSION_MAJOR
ARG PYTHON_VERSION_MINOR
ENV PYVERNAME=${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}

# Limitation: numpy>=1.17 does not support python2.7
ADD python/requirements.txt /tmp/deps/

RUN umask 0 \
Expand All @@ -88,6 +87,7 @@ RUN umask 0 \
&& . /opt/miniconda3/bin/activate \
&& conda create -n nnabla-build python=${PYVERNAME} \
&& conda activate nnabla-build \
&& pip install numpy\<1.17 \
&& pip install --only-binary -U -r /tmp/deps/requirements.txt \
&& conda clean -y --all \
&& cd / \
Expand Down
6 changes: 3 additions & 3 deletions docker/development/Dockerfile.build-multi-gpu-ppc64le
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# for nnabla>=1.0.17

ARG BASE
FROM ${BASE}

Expand Down Expand Up @@ -82,6 +80,8 @@ RUN mkdir /tmp/deps \
ARG PYTHON_VERSION_MAJOR
ARG PYTHON_VERSION_MINOR
ENV PYVERNAME=${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}

# Limitation: numpy>=1.17 does not support python2.7
ADD python/requirements.txt /tmp/deps/

RUN umask 0 \
Expand All @@ -94,7 +94,7 @@ RUN umask 0 \
&& conda activate nnabla-build \
&& conda update --all -y \
&& pip install -U pip wheel mako pyyaml \
&& pip install -U numpy \
&& pip install -U numpy\<1.17 \
&& pip install -U -r /tmp/deps/requirements.txt \
&& conda clean -y --all \
&& cd / \
Expand Down
5 changes: 2 additions & 3 deletions docker/development/Dockerfile.build-ppc64le
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# for nnabla>=1.0.17

ARG BASE
FROM ${BASE}

Expand Down Expand Up @@ -118,6 +116,7 @@ ARG PYTHON_VERSION_MAJOR
ARG PYTHON_VERSION_MINOR
ENV PYVERNAME=${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}

# Limitation: numpy>=1.17 does not support python2.7
ADD python/requirements.txt /tmp/deps/

RUN umask 0 \
Expand All @@ -132,7 +131,7 @@ RUN umask 0 \
&& conda update --all -y \
&& pip install -U pip wheel mako pyyaml \
&& pip install -U cython \
&& pip install -U numpy \
&& pip install -U numpy\<1.17 \
&& pip install -U -r /tmp/deps/requirements.txt \
&& conda clean -y --all \
&& cd / \
Expand Down
4 changes: 2 additions & 2 deletions python/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ PyYAML
Cython
boto3
h5py
numpy>=1.16
onnx==1.4.1
numpy>=1.16,<1.17
onnx
protobuf
requests
tqdm
Expand Down
2 changes: 1 addition & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
assert(__email__ is not None)

setup_requires = [
'numpy>=1.16',
'numpy>=1.16,<1.17',
'Cython', # Requires python-dev.
]

Expand Down

0 comments on commit e6ad8e2

Please sign in to comment.