Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
c6b1707
Add fields for CP firmware and SDMA engine ucode
dayatsin-amd Dec 7, 2022
2c92e79
Add display for IOMMU Support
dayatsin-amd Jan 20, 2023
34cc693
Fix parsing of rocminfo output for ISAs with no features defined
searlmc1 Mar 27, 2023
eb1283f
Add query for mwaitx support
dayatsin-amd Feb 21, 2023
2d34dc3
Add query to check DMABuf support
dayatsin-amd Nov 25, 2022
c8db38e
Removing __linux__ definition in CMake
searlmc1 May 30, 2023
3f97bbd
Support extended scope fine-grained memory
dayatsin-amd Jul 20, 2023
23c483c
Adding coherent host access query
dayatsin-amd Aug 14, 2023
3670ff2
Add support for HSA_OVERRIDE_GFX_VERSION env var
dayatsin-amd Aug 24, 2023
f1f463d
Add recommended granule query
dayatsin-amd Aug 25, 2023
b249107
Print amdgpu version
gregrodgers Oct 3, 2023
c9905a8
Correct the permission of rocminfo and rocm_agent_enumerator
raramakr Dec 18, 2023
429baf0
Fix invalid escape sequence in rocm_agent_enumerator, which are depre…
ShwetakAMD Dec 18, 2023
7b59f24
Add query for HSA Ext interface version
dayatsin-amd Oct 17, 2023
17de0f9
Set -m64 flag only on x86-64 hosts
dayatsin-amd Nov 23, 2023
e171664
Use raw strings for regular expression
ShwetakAMD Jan 4, 2024
7e159e6
Add query for memory properties
dayatsin-amd Nov 27, 2023
9a91005
Add support for external CI builds using Azure Pipelines
jayhawk-commits Apr 24, 2024
7580368
Change token name to match IT-created token
jayhawk-commits Apr 25, 2024
049ab55
Add WSL support for rocminfo
jiadozhu Apr 30, 2024
5e4f64e
SWDEV-442738 - Static package generation for rocminfo
raramakr Apr 1, 2024
1f47522
SWDEV-451078 - Update rocminfo package dependency list
raramakr May 1, 2024
29dfe7d
Support multiple External CI pipelines of same component.
jayhawk-commits May 21, 2024
d1efacb
Do not print to console for which command
jiadozhu May 22, 2024
84928a3
Create config.yml
abhimeda Dec 14, 2023
123fdf8
Delete .github directory
abhimeda Dec 14, 2023
912464b
Create config.yml
abhimeda Dec 14, 2023
0e90773
Add files via upload
abhimeda Dec 14, 2023
4bcedb5
added rocm v6, MI300, default component
abhimeda Dec 18, 2023
08f844a
Create CODEOWNERS file
shwetagkhatri Jan 4, 2024
e68143c
Add ReadtheDocs configuration
samjwu May 6, 2024
f3810ff
Add Sphinx configuration files
samjwu May 6, 2024
5137d0c
Add documentation content
samjwu May 6, 2024
4a793ca
Add dependabot config
samjwu May 6, 2024
c18246e
Add doc team to CODEOWNERS
samjwu May 6, 2024
51dc160
Create build.rst
Rmalavally May 15, 2024
50581db
Create use-rocm-agent-enumerator.rst
Rmalavally May 15, 2024
c9a24a7
Update build.rst
Rmalavally May 15, 2024
e8ff8f0
Update index.rst
Rmalavally May 15, 2024
094bf53
Update _toc.yml.in
Rmalavally May 15, 2024
a9b085c
Update _toc.yml.in
Rmalavally May 15, 2024
63df16b
Update _toc.yml.in
Rmalavally May 15, 2024
db8839d
Update build.rst
Rmalavally May 15, 2024
4204bf8
Update use-rocm-agent-enumerator.rst
Rmalavally May 15, 2024
276f94f
Update index.rst
Rmalavally May 15, 2024
65f9fe5
Update index.rst
Rmalavally May 15, 2024
db01ade
Update _toc.yml.in
Rmalavally May 15, 2024
0ced4ce
Update use-rocm-agent-enumerator.rst
Rmalavally May 15, 2024
8e7e7e7
Update use-rocm-agent-enumerator.rst
Rmalavally May 15, 2024
266fe8a
Update use-rocm-agent-enumerator.rst
Rmalavally May 15, 2024
22d8001
Update build.rst
Rmalavally May 15, 2024
c060f41
Update index.rst
Rmalavally May 16, 2024
fa9015d
Update use-rocm-agent-enumerator.rst
Rmalavally May 16, 2024
2da5c0b
Bump rocm-docs-core from 1.1.1 to 1.1.3 in /docs/sphinx
dependabot[bot] May 23, 2024
c8056cc
Update build.rst
Rmalavally May 23, 2024
2d04e1f
Update index.rst
Rmalavally May 23, 2024
dd3ae45
Update use-rocm-agent-enumerator.rst
Rmalavally May 23, 2024
ddbc387
Update use-rocm-agent-enumerator.rst
Rmalavally May 23, 2024
d077ba5
Update build.rst
Rmalavally May 23, 2024
9f30cda
Update build.rst
Rmalavally May 23, 2024
ac08c20
Added a description
Rmalavally May 23, 2024
9712407
Update index.rst
Rmalavally May 23, 2024
04f65ff
Bump rocm-docs-core from 1.1.3 to 1.2.0 in /docs/sphinx
dependabot[bot] May 28, 2024
bc36dae
Create use-rocminfo.rst
Rmalavally May 28, 2024
b4a7201
Update use-rocm-agent-enumerator.rst
Rmalavally May 28, 2024
fd7eff1
Update use-rocm-agent-enumerator.rst
Rmalavally May 28, 2024
983603c
Update _toc.yml.in
Rmalavally May 28, 2024
b3e9a9d
Update index.rst
Rmalavally May 28, 2024
042930b
Update index.rst
Rmalavally May 28, 2024
2bd32b0
External CI: change supported branches
jayhawk-commits Jun 5, 2024
311429f
Bump rocm-docs-core from 1.2.0 to 1.2.1 in /docs/sphinx
dependabot[bot] Jun 3, 2024
7de51c8
Bump rocm-docs-core from 1.2.1 to 1.4.0 in /docs/sphinx
dependabot[bot] Jun 7, 2024
0600911
Bump rocm-docs-core from 1.4.0 to 1.5.0 in /docs/sphinx
dependabot[bot] Jul 5, 2024
aa8a838
Prevent the modification of interpreter directives
raramakr Aug 5, 2024
d00aee6
Check /sys/module/amdgpu for ROCk instead of lsmod
littlewu2508 Aug 18, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .azuredevops/rocm-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
resources:
repositories:
- repository: pipelines_repo
type: github
endpoint: ROCm
name: ROCm/ROCm
pipelines:
- pipeline: rocr-runtime_pipeline
source: \ROCR-Runtime
trigger:
branches:
include:
- master

variables:
- group: common
- template: /.azuredevops/variables-global.yml@pipelines_repo

trigger:
batch: true
branches:
include:
- amd-staging
- amd-master
paths:
exclude:
- .github
- License.txt
- README.md

pr:
autoCancel: true
branches:
include:
- amd-staging
- amd-master
paths:
exclude:
- .github
- License.txt
- README.md
drafts: false

jobs:
- template: ${{ variables.CI_COMPONENT_PATH }}/rocminfo.yml@pipelines_repo
6 changes: 6 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
* @dayatsin-amd @shwetagkhatri
# Documentation files
docs/* @ROCm/rocm-documentation @dayatsin-amd @shwetagkhatri
*.md @ROCm/rocm-documentation @dayatsin-amd @shwetagkhatri
*.rst @ROCm/rocm-documentation @dayatsin-amd @shwetagkhatri
.readthedocs.yaml @ROCm/rocm-documentation @dayatsin-amd @shwetagkhatri
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: true
179 changes: 179 additions & 0 deletions .github/ISSUE_TEMPLATE/issue_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
name: Issue Report
description: File a report for ROCm related issues on Linux and Windows. For issues pertaining to documentation or non-bug related, please open a blank issue located below.
title: "[Issue]: "

body:
- type: markdown
attributes:
value: |
Thank you for taking the time to fill out this report!

You can acquire your OS, CPU, GPU (for filling out this report) with the following commands:

Linux:
echo "OS:" && cat /etc/os-release | grep -E "^(NAME=|VERSION=)";
echo "CPU: " && cat /proc/cpuinfo | grep "model name" | sort --unique;
echo "GPU:" && /opt/rocm/bin/rocminfo | grep -E "^\s*(Name|Marketing Name)";

Windows:
(Get-WmiObject Win32_OperatingSystem).Version
(Get-WmiObject win32_Processor).Name
(Get-WmiObject win32_VideoController).Name
- type: textarea
attributes:
label: Problem Description
description: Describe the issue you encountered.
validations:
required: true
- type: input
attributes:
label: Operating System
description: What is the name and version number of the OS?
placeholder: "e.g. Ubuntu 22.04.3 LTS (Jammy Jellyfish)"
validations:
required: true
- type: input
attributes:
label: CPU
description: What CPU did you encounter the issue on?
placeholder: "e.g. AMD Ryzen 9 5900HX with Radeon Graphics"
validations:
required: true
- type: dropdown
attributes:
label: GPU
description: What GPU(s) did you encounter the issue on (you can select multiple GPUs from the list)
multiple: true
options:
- AMD Instinct MI300
- AMD Instinct MI300A
- AMD Instinct MI300X
- AMD Instinct MI250X
- AMD Instinct MI250
- AMD Instinct MI210
- AMD Instinct MI100
- AMD Instinct MI50
- AMD Instinct MI25
- AMD Radeon Pro V620
- AMD Radeon Pro VII
- AMD Radeon RX 7900 XTX
- AMD Radeon VII
- AMD Radeon Pro W7900
- AMD Radeon Pro W7800
- AMD Radeon Pro W6800
- AMD Radeon Pro W6600
- AMD Radeon Pro W5500
- AMD Radeon RX 7900 XT
- AMD Radeon RX 7600
- AMD Radeon RX 6950 XT
- AMD Radeon RX 6900 XT
- AMD Radeon RX 6800 XT
- AMD Radeon RX 6800
- AMD Radeon RX 6750
- AMD Radeon RX 6700 XT
- AMD Radeon RX 6700
- AMD Radeon RX 6650 XT
- AMD Radeon RX 6600 XT
- AMD Radeon RX 6600
- Other
validations:
required: true
- type: input
attributes:
label: Other
description: If you selected Other, please specify
- type: dropdown
attributes:
label: ROCm Version
description: What version(s) of ROCm did you encounter the issue on?
multiple: true
options:
- ROCm 6.0.0
- ROCm 5.7.1
- ROCm 5.7.0
- ROCm 5.6.0
- ROCm 5.5.1
- ROCm 5.5.0
validations:
required: true
- type: dropdown
attributes:
label: ROCm Component
description: (Optional) If this issue relates to a specific ROCm component, it can be mentioned here.
options:
- Other
- AMDMIGraphX
- amdsmi
- aomp
- aomp-extras
- clang-ocl
- clr
- composable_kernel
- flang
- half
- HIP
- hipBLAS
- HIPCC
- hipCUB
- HIP-Examples
- hipFFT
- hipfort
- HIPIFY
- hipSOLVER
- hipSPARSE
- hipTensor
- llvm-project
- MIOpen
- MIVisionX
- rccl
- rdc
- rocALUTION
- rocBLAS
- ROCdbgapi
- rocFFT
- ROCgdb
- ROCK-Kernel-Driver
- ROCm
- rocm_bandwidth_test
- rocm_smi_lib
- rocm-cmake
- ROCm-CompilerSupport
- rocm-core
- ROCm-Device-Libs
- rocminfo
- rocMLIR
- ROCmValidationSuite
- rocPRIM
- rocprofiler
- rocr_debug_agent
- rocRAND
- ROCR-Runtime
- rocSOLVER
- rocSPARSE
- rocThrust
- roctracer
- ROCT-Thunk-Interface
- rocWMMA
- rpp
- Tensile
default: 39
- type: textarea
attributes:
label: Steps to Reproduce
description: (Optional) Detailed steps to reproduce the issue.
validations:
required: false

- type: textarea
attributes:
label: (Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
description: The output of rocminfo --support could help to better address the problem.
validations:
required: false

- type: textarea
attributes:
label: Additional Information
description: (Optional) Any additional information that is relevant, e.g. relevant environment variables, dockerfiles, log files, dmesg output (on Linux), etc.
validations:
required: false
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "pip" # See documentation for possible values
directory: "/docs/sphinx" # Location of package manifests
open-pull-requests-limit: 10
schedule:
interval: "daily"
labels:
- "documentation"
- "dependencies"
reviewers:
- "samjwu"
18 changes: 18 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

version: 2

sphinx:
configuration: docs/conf.py

formats: [htmlzip, pdf, epub]

python:
install:
- requirements: docs/sphinx/requirements.txt

build:
os: ubuntu-22.04
tools:
python: "3.10"
44 changes: 34 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ if(WIN32)
return()
endif()

# Generate static package, when BUILD_SHARED_LIBS is set to OFF.
# Default to ON
option(BUILD_SHARED_LIBS "Build using shared libraries" ON)
## Set default module path if not already set
if(NOT DEFINED CMAKE_MODULE_PATH)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules/")
Expand Down Expand Up @@ -123,7 +126,6 @@ if(${BUILD_TYPE} STREQUAL "Debug")
add_definitions(-DDEBUG)
endif()

add_definitions(-D__linux__)
add_definitions(-DLITTLEENDIAN_CPU=1)

#
Expand All @@ -138,13 +140,12 @@ set(ROCMINFO_CXX_FLAGS ${ROCMINFO_CXX_FLAGS} -fmerge-all-constants)
set(ROCMINFO_CXX_FLAGS ${ROCMINFO_CXX_FLAGS} -fms-extensions)
set(ROCMINFO_CXX_FLAGS ${ROCMINFO_CXX_FLAGS} -Werror)
set(ROCMINFO_CXX_FLAGS ${ROCMINFO_CXX_FLAGS} -Wall)
set(ROCMINFO_CXX_FLAGS ${ROCMINFO_CXX_FLAGS} -m64)

#
# Extend the compiler flags for 64-bit builds
#
if((${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "x86_64") OR (${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "AMD64"))
set(ROCMINFO_CXX_FLAGS ${ROCMINFO_CXX_FLAGS} -msse -msse2)
set(ROCMINFO_CXX_FLAGS ${ROCMINFO_CXX_FLAGS} -m64 -msse -msse2)
endif()

#
Expand Down Expand Up @@ -174,18 +175,21 @@ target_compile_options(${ROCMINFO_EXE} PRIVATE ${ROCMINFO_CXX_FLAGS})
# Install directives
###########################
install (
FILES ${CMAKE_CURRENT_BINARY_DIR}/${ROCMINFO_EXE}
PERMISSIONS OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
TARGETS ${ROCMINFO_EXE}
DESTINATION ${CMAKE_INSTALL_BINDIR} )
install (
FILES ${CMAKE_CURRENT_BINARY_DIR}/rocm_agent_enumerator
PERMISSIONS OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/rocm_agent_enumerator
DESTINATION ${CMAKE_INSTALL_BINDIR} )

###########################
# Packaging directives
###########################
set(CPACK_PACKAGE_NAME "${PROJECT_NAME}")
if(BUILD_SHARED_LIBS)
set(CPACK_PACKAGE_NAME "${PROJECT_NAME}")
else()
set(CPACK_RPM_PACKAGE_NAME "${PROJECT_NAME}-static-devel")
set(CPACK_DEBIAN_PACKAGE_NAME "${PROJECT_NAME}-static-dev")
endif()
set(CPACK_PACKAGE_VENDOR "Advanced Micro Devices, Inc.")
set(CPACK_PACKAGE_VERSION_MAJOR "${PKG_VERSION_MAJOR}")
set(CPACK_PACKAGE_VERSION_MINOR "${PKG_VERSION_MINOR}")
Expand All @@ -206,7 +210,7 @@ if(DEFINED ENV{ROCM_LIBPATCH_VERSION})
endif()

#Debian package specific variables
set(CPACK_DEBIAN_PACKAGE_DEPENDS "hsa-rocr, kmod, pciutils")
set(CPACK_DEBIAN_PACKAGE_DEPENDS "hsa-rocr, kmod, pciutils, python3, libc6, libgcc-s1, libstdc++6")
set(CPACK_DEBIAN_PACKAGE_HOMEPAGE ${CPACK_DEBIAN_PACKAGE_HOMEPAGE} CACHE STRING "https://github.com/RadeonOpenCompute/ROCm")
if (DEFINED ENV{CPACK_DEBIAN_PACKAGE_RELEASE})
set(CPACK_DEBIAN_PACKAGE_RELEASE $ENV{CPACK_DEBIAN_PACKAGE_RELEASE})
Expand All @@ -218,7 +222,20 @@ if ( ROCM_DEP_ROCMCORE )
endif()

#RPM package specific variables
set(CPACK_RPM_PACKAGE_REQUIRES "hsa-rocr kmod pciutils")
execute_process(COMMAND rpm --eval %{?dist}
RESULT_VARIABLE PROC_RESULT
OUTPUT_VARIABLE EVAL_RESULT
OUTPUT_STRIP_TRAILING_WHITESPACE)
message("RESULT_VARIABLE ${PROC_RESULT} OUTPUT_VARIABLE: ${EVAL_RESULT}")

if(PROC_RESULT EQUAL "0" AND "${EVAL_RESULT}" STREQUAL ".el7")
# In Centos using parentheses is causing cpack errors.
# Set the dependencies specifically for centos
set(CPACK_RPM_PACKAGE_REQUIRES "hsa-rocr, kmod, pciutils, python3, glibc, libgcc, libstdc++")
else()
set(CPACK_RPM_PACKAGE_REQUIRES "hsa-rocr, kmod, pciutils, python3, glibc, (libgcc or libgcc_s1), (libstdc++ or libstdc++6)")
endif() # End EVAL_RESULT

if(DEFINED CPACK_PACKAGING_INSTALL_PREFIX)
set ( CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "${CPACK_PACKAGING_INSTALL_PREFIX} ${CPACK_PACKAGING_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}" )
endif()
Expand All @@ -230,6 +247,9 @@ endif()
if ( ROCM_DEP_ROCMCORE )
string ( APPEND CPACK_RPM_PACKAGE_REQUIRES " rocm-core" )
endif()
# Cpack converts !/usr/bin/env python3 to /usr/libexec/platform-python in RHEL8.
# prevent the BRP(buildroot policy) script from checking and modifying interpreter directives
set(CPACK_RPM_SPEC_MORE_DEFINE "%undefine __brp_mangle_shebangs")

#Set rpm distro
if(CPACK_RPM_PACKAGE_RELEASE)
Expand All @@ -243,4 +263,8 @@ set(CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSIO
set(CPACK_DEBIAN_FILE_NAME "DEB-DEFAULT")
set(CPACK_RPM_FILE_NAME "RPM-DEFAULT")

if(NOT BUILD_SHARED_LIBS)
string(REPLACE "hsa-rocr" "hsa-rocr-static-dev" CPACK_DEBIAN_PACKAGE_DEPENDS ${CPACK_DEBIAN_PACKAGE_DEPENDS})
string(REPLACE "hsa-rocr" "hsa-rocr-static-devel" CPACK_RPM_PACKAGE_REQUIRES ${CPACK_RPM_PACKAGE_REQUIRES})
endif()
include ( CPack )
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_build/
Loading