You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by tq...@apache.org on 2024/03/29 21:15:01 UTC

(tvm) branch main updated: [Fix] PAPI docs (#16820)

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

tqchen 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 5daa303ce7 [Fix] PAPI docs (#16820)
5daa303ce7 is described below

commit 5daa303ce7f96acd410172f29cf5da81b6ea67f2
Author: Masahiro Hiramori <mh...@gmail.com>
AuthorDate: Sat Mar 30 06:14:56 2024 +0900

    [Fix] PAPI docs (#16820)
    
    * the papi repo moved to github
    
    * fix missing closing curly bracket
---
 docker/install/ubuntu_install_papi.sh | 2 +-
 docs/how_to/profile/papi.rst          | 4 ++--
 src/runtime/contrib/papi/papi.cc      | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/docker/install/ubuntu_install_papi.sh b/docker/install/ubuntu_install_papi.sh
index 9581445185..2907aee180 100755
--- a/docker/install/ubuntu_install_papi.sh
+++ b/docker/install/ubuntu_install_papi.sh
@@ -27,7 +27,7 @@ apt-install-and-clear -y linux-tools-common linux-tools-generic kmod
 
 cd /
 # Pulling the latest version of this has broken the images before. Checkout the tagged version below for now.
-git clone --branch papi-6-0-0-1-t https://bitbucket.org/icl/papi.git
+git clone --branch papi-6-0-0-1-t https://github.com/icl-utk-edu/papi
 cd papi/src
 export PAPI_CUDA_ROOT=/usr/local/cuda
 export PAPI_ROCM_ROOT=/opt/rocm
diff --git a/docs/how_to/profile/papi.rst b/docs/how_to/profile/papi.rst
index 02643451aa..91599c9a7c 100644
--- a/docs/how_to/profile/papi.rst
+++ b/docs/how_to/profile/papi.rst
@@ -32,7 +32,7 @@ Installing PAPI
 
 PAPI can either be installed using your package manager (``apt-get install libpapi-dev``
 on Ubuntu), or from source here:
-https://bitbucket.org/icl/papi/src/master/.
+https://github.com/icl-utk-edu/papi.
 
 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``.
 
@@ -102,7 +102,7 @@ You can also change which metrics are collected:
     report = vm.profile(
         data,
         func_name="main",
-        collectors=[tvm.runtime.profiling.PAPIMetricCollector({dev: ["PAPI_FP_OPS"])],
+        collectors=[tvm.runtime.profiling.PAPIMetricCollector({dev: ["PAPI_FP_OPS"]})],
     )
 
 .. code::
diff --git a/src/runtime/contrib/papi/papi.cc b/src/runtime/contrib/papi/papi.cc
index 4fc29f92ea..3d84c9f8ef 100644
--- a/src/runtime/contrib/papi/papi.cc
+++ b/src/runtime/contrib/papi/papi.cc
@@ -91,7 +91,7 @@ int component_for_device(Device dev) {
  * PAPI (Performance Application Programming Interface) collects metrics on a
  * variety of platforms including cpu, cuda and rocm.
  *
- * PAPI is avaliable at https://bitbucket.org/icl/papi/src/master/.
+ * PAPI is avaliable at https://github.com/icl-utk-edu/papi.
  */
 struct PAPIMetricCollectorNode final : public MetricCollectorNode {
   /*! \brief Construct a metric collector that collects a specific set of metrics.