You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by ar...@apache.org on 2022/06/10 18:04:00 UTC

[tvm] branch main updated: [CI] fix ci_gpu dockerfile (#11644)

This is an automated email from the ASF dual-hosted git repository.

areusch pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new dccc1c7d89 [CI] fix ci_gpu dockerfile (#11644)
dccc1c7d89 is described below

commit dccc1c7d89ecb2281ff1d20f95a9d1b563bbc86e
Author: Florin Blanaru <fl...@gmail.com>
AuthorDate: Fri Jun 10 19:03:54 2022 +0100

    [CI] fix ci_gpu dockerfile (#11644)
---
 docker/install/ubuntu_install_papi.sh | 8 ++++++--
 docs/how_to/profile/papi.rst          | 1 +
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/docker/install/ubuntu_install_papi.sh b/docker/install/ubuntu_install_papi.sh
index 713312ee58..bd8908240d 100755
--- a/docker/install/ubuntu_install_papi.sh
+++ b/docker/install/ubuntu_install_papi.sh
@@ -23,11 +23,15 @@ set -o pipefail
 apt-get update --fix-missing
 
 # deps
-apt-get install -y linux-tools-common linux-tools-generic
+apt-get install -y linux-tools-common linux-tools-generic kmod
 
 cd /
 git clone https://bitbucket.org/icl/papi.git
-cd papi/src
+# Pulling the latest version of this has broken the images before. Checkout the tagged version below for now.
+cd papi
+git checkout papi-6-0-0-1-t
+cd src
 export PAPI_CUDA_ROOT=/usr/local/cuda
+export PAPI_ROCM_ROOT=/opt/rocm
 ./configure --with-components="$1"
 make -j $(nproc) && make install
diff --git a/docs/how_to/profile/papi.rst b/docs/how_to/profile/papi.rst
index b7c23b2c0c..78d512c988 100644
--- a/docs/how_to/profile/papi.rst
+++ b/docs/how_to/profile/papi.rst
@@ -34,6 +34,7 @@ PAPI can either be installed using your package manager (``apt-get install libpa
 on Ubuntu), or from source here:
 https://bitbucket.org/icl/papi/src/master/.
 
+Pulling the latest version of PAPI from source has caused build issues before. Therefore, it is recommended to checkout tagged version ``papi-6-0-0-1-t``.
 
 Building TVM With PAPI
 ----------------------