-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add more rocm development and tracing tools
- amdsmi - rocdbgapi - rocgdb - nvtop fixes #106 Signed-off-by: Mika Laitio <[email protected]>
- Loading branch information
Showing
11 changed files
with
109 additions
and
7 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
BINFO_APP_NAME=rocdbgapi | ||
BINFO_APP_SRC_SUBDIR_BASENAME= | ||
BINFO_APP_SRC_TOPDIR_BASENAME=${BINFO_APP_NAME} | ||
BINFO_APP_SRC_DIR="${SDK_SRC_ROOT_DIR}/${BINFO_APP_SRC_TOPDIR_BASENAME}" | ||
BINFO_APP_UPSTREAM_REPO_URL=https://github.com/ROCm/ROCdbgapi.git | ||
#use default git tag | ||
#BINFO_APP_UPSTREAM_REPO_VERSION_TAG=amd-staging | ||
|
||
BINFO_APP_CMAKE_CFG="-DCMAKE_INSTALL_PREFIX=${INSTALL_DIR_PREFIX_SDK_ROOT}" | ||
BINFO_APP_CMAKE_CFG="${BINFO_APP_CMAKE_CFG} -DCMAKE_PREFIX_PATH=${INSTALL_DIR_PREFIX_SDK_ROOT}/lib64/cmake;${INSTALL_DIR_PREFIX_SDK_ROOT}/lib/cmake" | ||
BINFO_APP_CMAKE_CFG="${BINFO_APP_CMAKE_CFG} ${BINFO_APP_SRC_DIR}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
BINFO_APP_NAME=rocgdb | ||
BINFO_APP_SRC_SUBDIR_BASENAME= | ||
BINFO_APP_SRC_TOPDIR_BASENAME=${BINFO_APP_NAME} | ||
BINFO_APP_SRC_DIR="${SDK_SRC_ROOT_DIR}/${BINFO_APP_SRC_TOPDIR_BASENAME}" | ||
BINFO_APP_UPSTREAM_REPO_URL=https://github.com/ROCm/ROCgdb.git | ||
#use default git tag | ||
#BINFO_APP_UPSTREAM_REPO_VERSION_TAG=amd-staging | ||
|
||
BINFO_APP_CONFIG_CMD_ARRAY=( | ||
"cd ${BINFO_APP_BUILD_DIR}" | ||
"export PKG_CONFIG_PATH=${INSTALL_DIR_PREFIX_SDK_ROOT}/share/pkgconfig:${INSTALL_DIR_PREFIX_SDK_ROOT}/lib64/pkgconfig:${INSTALL_DIR_PREFIX_SDK_ROOT}/lib/pkgconfig" | ||
"${BINFO_APP_SRC_DIR}/configure --prefix=${INSTALL_DIR_PREFIX_SDK_ROOT} --program-prefix=roc --with-rocm-dbgapi=${INSTALL_DIR_PREFIX_SDK_ROOT} --enable-64-bit-bfd --enable-targets="x86_64-linux-gnu,amdgcn-amd-amdhsa" --disable-ld --disable-gas --disable-gdbserver --disable-sim --enable-tui --disable-gdbtk --disable-gprofng --disable-shared --with-expat --with-system-zlib --without-guile --with-babeltrace --with-lzma --with-python=python3" | ||
) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
BINFO_APP_NAME=amdsmi | ||
BINFO_APP_SRC_SUBDIR_BASENAME= | ||
BINFO_APP_SRC_TOPDIR_BASENAME=${BINFO_APP_NAME} | ||
BINFO_APP_SRC_DIR="${SDK_SRC_ROOT_DIR}/${BINFO_APP_SRC_TOPDIR_BASENAME}" | ||
BINFO_APP_UPSTREAM_REPO_URL=https://github.com/ROCm/amdsmi.git | ||
#use default git tag | ||
#BINFO_APP_UPSTREAM_REPO_VERSION_TAG=amd-staging | ||
|
||
BINFO_APP_CMAKE_CFG="-DCMAKE_INSTALL_PREFIX=${INSTALL_DIR_PREFIX_SDK_ROOT}" | ||
BINFO_APP_CMAKE_CFG="${BINFO_APP_CMAKE_CFG} ${BINFO_APP_SRC_DIR}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
BINFO_APP_NAME=nvtop | ||
BINFO_APP_SRC_SUBDIR_BASENAME= | ||
BINFO_APP_SRC_TOPDIR_BASENAME=${BINFO_APP_NAME} | ||
BINFO_APP_SRC_DIR="${SDK_SRC_ROOT_DIR}/${BINFO_APP_SRC_TOPDIR_BASENAME}" | ||
BINFO_APP_UPSTREAM_REPO_URL=https://github.com/Syllo/nvtop.git | ||
#use default git tag | ||
BINFO_APP_UPSTREAM_REPO_VERSION_TAG=0316ce19581c3d8543cf6aa312d1569c56ca754f | ||
|
||
BINFO_APP_CMAKE_CFG="-DCMAKE_INSTALL_PREFIX=${INSTALL_DIR_PREFIX_SDK_ROOT}" | ||
BINFO_APP_CMAKE_CFG="${BINFO_APP_CMAKE_CFG} -DAMDGPU_SUPPORT=ON" | ||
BINFO_APP_CMAKE_CFG="${BINFO_APP_CMAKE_CFG} -DINTEL_SUPPORT=ON" | ||
BINFO_APP_CMAKE_CFG="${BINFO_APP_CMAKE_CFG} -DNVIDIA_SUPPORT=ON " | ||
BINFO_APP_CMAKE_CFG="${BINFO_APP_CMAKE_CFG} ${BINFO_APP_SRC_DIR}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
patches/rocm-6.1.2/amdsmi/0001-fedora40-buildbreak-fix-for-assignment-to-readonly-o.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From 2fe70f877629bc944bf41c5deb89350989c2a5df Mon Sep 17 00:00:00 2001 | ||
From: Mika Laitio <[email protected]> | ||
Date: Sat, 13 Jul 2024 20:06:14 -0400 | ||
Subject: [PATCH] fedora40 buildbreak fix for assignment to readonly object | ||
|
||
Signed-off-by: Mika Laitio <[email protected]> | ||
--- | ||
rocm_smi/include/rocm_smi/rocm_smi_utils.h | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/rocm_smi/include/rocm_smi/rocm_smi_utils.h b/rocm_smi/include/rocm_smi/rocm_smi_utils.h | ||
index 67d9d8b..e492978 100755 | ||
--- a/rocm_smi/include/rocm_smi/rocm_smi_utils.h | ||
+++ b/rocm_smi/include/rocm_smi/rocm_smi_utils.h | ||
@@ -218,7 +218,7 @@ class ScopeGuard { | ||
__forceinline ~ScopeGuard() { | ||
if (!dismiss_) release_(); | ||
} | ||
- __forceinline ScopeGuard& operator=(const ScopeGuard& rhs) { | ||
+ __forceinline ScopeGuard& operator=(ScopeGuard& rhs) { | ||
dismiss_ = rhs.dismiss_; | ||
release_ = rhs.release_; | ||
rhs.dismiss_ = true; | ||
-- | ||
2.45.2 | ||
|
25 changes: 25 additions & 0 deletions
25
patches/rocm-6.1.2/rocdbgapi/0001-add-usr-share-to-pci.ids-search-path.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From 306c5447546f7fefa3bf4e0503704c7650e60053 Mon Sep 17 00:00:00 2001 | ||
From: Mika Laitio <[email protected]> | ||
Date: Fri, 12 Jul 2024 23:28:19 -0700 | ||
Subject: [PATCH] add /usr/share to pci.ids search path | ||
|
||
Signed-off-by: Mika Laitio <[email protected]> | ||
--- | ||
CMakeLists.txt | 1 + | ||
1 file changed, 1 insertion(+) | ||
|
||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index cadb9c4..a2ce2c4 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -116,6 +116,7 @@ find_file( | ||
NAMES | ||
pci.ids | ||
PATHS | ||
+ /usr/share | ||
/usr/share/misc | ||
/usr/share/hwdata | ||
NO_DEFAULT_PATH | ||
-- | ||
2.41.1 | ||
|