Unverified Commit b2155f70 by Tianqi Chen Committed by GitHub

[CI] Update GPU docker to cuda10 (#4228)

* [CI] Update the ci-gpu to use cuda10

* [CI] Enforce tensorcore gpu for unittest
parent a6221a1f
...@@ -235,7 +235,7 @@ stage('Build') { ...@@ -235,7 +235,7 @@ stage('Build') {
stage('Unit Test') { stage('Unit Test') {
parallel 'python3: GPU': { parallel 'python3: GPU': {
node('GPU') { node('TensorCore') {
ws('workspace/tvm/ut-python-gpu') { ws('workspace/tvm/ut-python-gpu') {
init_git() init_git()
unpack_lib('gpu', tvm_multilib) unpack_lib('gpu', tvm_multilib)
......
...@@ -24,10 +24,11 @@ if(USE_NNPACK) ...@@ -24,10 +24,11 @@ if(USE_NNPACK)
list(APPEND RUNTIME_SRCS ${NNPACK_CONTRIB_SRC}) list(APPEND RUNTIME_SRCS ${NNPACK_CONTRIB_SRC})
include_directories(${NNPACK_PATH}/include) include_directories(${NNPACK_PATH}/include)
include_directories(${PTHREAD_POOL_PATH}/include) include_directories(${PTHREAD_POOL_PATH}/include)
find_library(NNPACK_CONTRIB_LIB nnpack ${NNPACK_PATH}/lib) find_library(NNPACK_CONTRIB_LIB nnpack ${NNPACK_PATH}/lib)
find_library(NNPACK_PTHREAD_CONTRIB_LIB pthreadpool ${NNPACK_PATH}/lib) find_library(NNPACK_PTHREAD_CONTRIB_LIB pthreadpool ${NNPACK_PATH}/lib)
find_library(NNPACK_CPUINFO_CONTRIB_LIB cpuinfo ${NNPACK_PATH}/lib) find_library(NNPACK_CPUINFO_CONTRIB_LIB cpuinfo ${NNPACK_PATH}/lib)
find_library(NNPACK_CLOG_CONTRIB_LIB clog ${NNPACK_PATH}/lib) find_library(NNPACK_CLOG_CONTRIB_LIB clog ${NNPACK_PATH}/lib)
list(APPEND TVM_RUNTIME_LINKER_LIBS ${NNPACK_CONTRIB_LIB}) list(APPEND TVM_RUNTIME_LINKER_LIBS ${NNPACK_CONTRIB_LIB})
list(APPEND TVM_RUNTIME_LINKER_LIBS ${NNPACK_PTHREAD_CONTRIB_LIB}) list(APPEND TVM_RUNTIME_LINKER_LIBS ${NNPACK_PTHREAD_CONTRIB_LIB})
list(APPEND TVM_RUNTIME_LINKER_LIBS ${NNPACK_CPUINFO_CONTRIB_LIB}) list(APPEND TVM_RUNTIME_LINKER_LIBS ${NNPACK_CPUINFO_CONTRIB_LIB})
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
# CI docker GPU env # CI docker GPU env
# tag: v0.54 # tag: v0.54
FROM nvidia/cuda:8.0-cudnn7-devel FROM nvidia/cuda:10.0-cudnn7-devel-ubuntu16.04
# Base scripts # Base scripts
RUN apt-get update --fix-missing RUN apt-get update --fix-missing
...@@ -108,8 +108,8 @@ ENV PATH=/usr/local/nvidia/bin:${PATH} ...@@ -108,8 +108,8 @@ ENV PATH=/usr/local/nvidia/bin:${PATH}
ENV PATH=/usr/local/cuda/bin:${PATH} ENV PATH=/usr/local/cuda/bin:${PATH}
ENV CPLUS_INCLUDE_PATH=/usr/local/cuda/include:${CPLUS_INCLUDE_PATH} ENV CPLUS_INCLUDE_PATH=/usr/local/cuda/include:${CPLUS_INCLUDE_PATH}
ENV C_INCLUDE_PATH=/usr/local/cuda/include:${C_INCLUDE_PATH} ENV C_INCLUDE_PATH=/usr/local/cuda/include:${C_INCLUDE_PATH}
ENV LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/nvidia/lib64:${LIBRARY_PATH} ENV LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/compact:${LIBRARY_PATH}
ENV LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/nvidia/lib64:${LD_LIBRARY_PATH} ENV LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/compact:${LD_LIBRARY_PATH}
ENV LD_LIBRARY_PATH=/opt/rocm/lib:${LD_LIBRARY_PATH} ENV LD_LIBRARY_PATH=/opt/rocm/lib:${LD_LIBRARY_PATH}
ENV PATH=/node_modules/.bin:${PATH} ENV PATH=/node_modules/.bin:${PATH}
......
...@@ -31,5 +31,5 @@ git clone https://github.com/Maratyszcza/pthreadpool NNPACK/pthreadpool ...@@ -31,5 +31,5 @@ git clone https://github.com/Maratyszcza/pthreadpool NNPACK/pthreadpool
mkdir -p NNPACK/build mkdir -p NNPACK/build
cd NNPACK/build cd NNPACK/build
cmake -DCMAKE_INSTALL_PREFIX:PATH=. -DNNPACK_INFERENCE_ONLY=OFF -DNNPACK_CONVOLUTION_ONLY=OFF -DNNPACK_BUILD_TESTS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DPTHREADPOOL_SOURCE_DIR=pthreadpool .. && make -j4 && make install cmake -DCMAKE_INSTALL_PREFIX:PATH=. -DNNPACK_INFERENCE_ONLY=OFF -DNNPACK_CONVOLUTION_ONLY=OFF -DNNPACK_BUILD_TESTS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DPTHREADPOOL_SOURCE_DIR=pthreadpool .. && make -j2 && make install
cd - cd -
...@@ -51,8 +51,8 @@ def test_cuda_vectorize_add(): ...@@ -51,8 +51,8 @@ def test_cuda_vectorize_add():
tvm.testing.assert_allclose(c.asnumpy(), a.asnumpy() + 1) tvm.testing.assert_allclose(c.asnumpy(), a.asnumpy() + 1)
check_cuda("float32", 64, 2) check_cuda("float32", 64, 2)
check_cuda("float16", 64, 2)
check_cuda("int8", 64, 4) check_cuda("int8", 64, 4)
# check_cuda("float16", 64, 2)
def test_cuda_multiply_add(): def test_cuda_multiply_add():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment