Skip to content

Commit

Permalink
Use llvm 8.0 from the numba packages
Browse files Browse the repository at this point in the history
  • Loading branch information
abergeron committed Jun 13, 2019
1 parent 335dbf9 commit f43cc4a
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
3 changes: 2 additions & 1 deletion conda/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ RUN curl -o ~/miniconda.sh -O https://repo.continuum.io/miniconda/Miniconda3-lat
/opt/conda/bin/conda install conda-build conda-verify && \
/opt/conda/bin/conda clean -ya

RUN /opt/conda/bin/conda install --download-only cmake make llvmdev=7.0.0 zlib
RUN /opt/conda/bin/conda install --download-only cmake make zlib
RUN /opt/conda/bin/conda install --download-only -c numba llvmdev=8.0.0

ENV PATH /opt/conda/bin:$PATH
ENV LD_LIBRARY_PATH /usr/local/nvidia/lib:/usr/local/nvidia/lib64
Expand Down
2 changes: 1 addition & 1 deletion conda/build_cpu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ touch /tmp/.conda/pkgs/urls.txt
touch /tmp/.conda/environments.txt


conda build --output-folder=conda/pkg conda/tvm-libs
conda build --output-folder=conda/pkg -c numba conda/tvm-libs
conda build --output-folder=conda/pkg -m conda/conda_build_config.yaml conda/tvm
2 changes: 1 addition & 1 deletion conda/build_cuda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ touch /tmp/.conda/pkgs/urls.txt
touch /tmp/.conda/environments.txt


conda build --output-folder=conda/pkg --variants "{cuda: True, cuda_version: ${CUDA_VERSION%.*}}" conda/tvm-libs
conda build --output-folder=conda/pkg --variants "{cuda: True, cuda_version: ${CUDA_VERSION%.*}}" -c numba conda/tvm-libs
6 changes: 2 additions & 4 deletions conda/tvm-libs/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,14 @@ set -e
if [ "$target_platform" == "osx-64" ]; then
# macOS 64 bits
METAL_OPT="" # Conda can only target 10.9 for now
TOOLCHAIN_OPT=""
TOOLCHAIN_OPT="-DCMAKE_OSX_SYSROOT=\"${CONDA_BUILD_SYSROOT}\""
else
METAL_OPT=""
if [ "$target_platform" == "linux-64" ]; then
# Linux 64 bits
TOOLCHAIN_OPT="-DCMAKE_TOOLCHAIN_FILE=${RECIPE_DIR}/../cross-linux.cmake"
else
# Windows (or 32 bits, which we don't support)
TOOLCHAIN_OPT=""
fi
# We don't support other platforms (linux-32 or windows)
fi

if [ "$cuda" == "True" ]; then
Expand Down
2 changes: 1 addition & 1 deletion conda/tvm-libs/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ requirements:
- cmake
- make
host:
- llvmdev ==7.0.0
- llvmdev ==8.0.0
- zlib # [linux]
run:
- {{ pin_compatible('cudatoolkit', lower_bound=cuda_version, max_pin='x.x') }} # [cuda]
Expand Down
3 changes: 2 additions & 1 deletion docker/Dockerfile.conda_cuda100
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ RUN curl -o ~/miniconda.sh -O https://repo.continuum.io/miniconda/Miniconda3-lat
/opt/conda/bin/conda install conda-build conda-verify && \
/opt/conda/bin/conda clean -ya

RUN /opt/conda/bin/conda install --download-only cmake make llvmdev=7.0.0 zlib
RUN /opt/conda/bin/conda install --download-only cmake make zlib
RUN /opt/conda/bin/conda install --download-only -c numba llvmdev=8.0.0

ENV PATH /opt/conda/bin:$PATH
ENV LD_LIBRARY_PATH /usr/local/nvidia/lib:/usr/local/nvidia/lib64
Expand Down
3 changes: 2 additions & 1 deletion docker/Dockerfile.conda_cuda90
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ RUN curl -o ~/miniconda.sh -O https://repo.continuum.io/miniconda/Miniconda3-lat
/opt/conda/bin/conda install conda-build conda-verify && \
/opt/conda/bin/conda clean -ya

RUN /opt/conda/bin/conda install --download-only cmake make llvmdev=7.0.0 zlib
RUN /opt/conda/bin/conda install --download-only cmake make zlib
RUN /opt/conda/bin/conda install --download-only -c numba llvmdev=8.0.0

ENV PATH /opt/conda/bin:$PATH
ENV LD_LIBRARY_PATH /usr/local/nvidia/lib:/usr/local/nvidia/lib64
Expand Down

0 comments on commit f43cc4a

Please sign in to comment.