Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Changes for 10min timeout error
Browse files Browse the repository at this point in the history
Removed IBM_POWERAI_LICENSE_ACCEPT variable
Use $(nproc) make option
  • Loading branch information
knm3000 committed Nov 13, 2019
1 parent 0e5e64e commit 7f109a4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
4 changes: 0 additions & 4 deletions conda-recipes/mxnet-feedstock/ci_support/build_steps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ conda-build:
CONDARC

conda config --prepend channels https://public.dhe.ibm.com/ibmdl/export/pub/software/server/ibm-ai/conda/
export IBM_POWERAI_LICENSE_ACCEPT=yes

conda install --yes --quiet conda-forge-ci-setup=2 conda-build -c conda-forge

Expand All @@ -39,11 +38,8 @@ setup_conda_rc "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}"
# make the build number clobber
make_build_number "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}"

while :;do echo -n .;sleep 1;done & # Generate the output to prevent the timeout error
trap "kill $!" EXIT # Die with parent if we die prematurely
conda build "${RECIPE_ROOT}" -m "${CI_SUPPORT}/${CONFIG}.yaml" \
--clobber-file "${CI_SUPPORT}/clobber_${CONFIG}.yaml"
kill $! && trap " " EXIT # Kill the while loop and unset the trap

if [[ "${UPLOAD_PACKAGES}" != "False" ]]; then
upload_package "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}"
Expand Down
2 changes: 1 addition & 1 deletion conda-recipes/mxnet-feedstock/recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

set -vex

make -j 4 USE_OPENCV=1 USE_BLAS=openblas USE_CUDA=1 USE_CUDNN=1 USE_PROFILER=1 CUDA_LIBRARY_PATH="${PREFIX}/lib/stubs"
make -j $(nproc) USE_OPENCV=1 USE_BLAS=openblas USE_CUDA=1 USE_CUDNN=1 USE_PROFILER=1 CUDA_LIBRARY_PATH="${PREFIX}/lib/stubs"

cd python
${PYTHON} setup.py install
5 changes: 0 additions & 5 deletions conda-recipes/mxnet-feedstock/recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ source:
- 0002-move-requirements-to-meta-yaml.patch
url: https://github.com/apache/incubator-mxnet/releases/download/{{ version }}/apache-mxnet-src-{{ version }}-incubating.tar.gz

build:
script_env:
- IBM_POWERAI_LICENSE_ACCEPT

requirements:
build:
- {{ compiler('c') }}
Expand All @@ -39,7 +35,6 @@ requirements:
- numpy >=1.16.0,<=2.0.0
- requests >=2.20.0,<3
- python
# ibm-ai channel https://public.dhe.ibm.com/ibmdl/export/pub/software/server/ibm-ai/conda:
- libopencv
- cudatoolkit
- cudnn
Expand Down

0 comments on commit 7f109a4

Please sign in to comment.