🌐
AMD ROCm
rocm.docs.amd.com › projects › rocm_smi_lib › en › latest › how-to › use-python.html
Using ROCm SMI with Python — ROCm SMI LIB 7.8.0 Documentation
Provided ASIC support, users can now set a maximum or minimum sclk or mclk value through our Python CLI tool (rocm-smi –setextremum max sclk 1500).
🌐
PyTorch
pytorch.org › blog › pytorch-for-amd-rocm-platform-now-available-as-python-package
PyTorch for AMD ROCm™ Platform now available as Python package – PyTorch
March 24, 2021 - With the PyTorch 1.8 release, we are delighted to announce a new installation option for users of PyTorch on the ROCm™ open software platform. An installable Python package is now hosted on pytorch.org, along with instructions for local installation in the same simple, selectable format as PyTorch packages for CPU-only configurations and other GPU platforms.
🌐
GitHub
github.com › ROCm › hip-python
GitHub - ROCm/hip-python: HIP Python Low-level Bindings · GitHub
This repository provides low-level Python and Cython Bindings for HIP and an interoperability layer for CUDA® Python programs (Python and Cython). Currently, only Linux is supported (prebuilt packages and code). Prebuilt packages distributed via PyPI (or Test PyPI) are only provided for Linux systems that agree with the manylinux_2_17_x86_64 tag. Requires that a compatible ROCm™ HIP SDK is installed on your system.
Starred by 39 users
Forked by 8 users
Languages   Cython
🌐
GitHub
github.com › ROCm › pyrsmi
GitHub - ROCm/pyrsmi: python package of rocm-smi-lib · GitHub
pyrsmi is a Python package providing system management functionality for AMD GPUs. Version 1.0+ uses the new AMD SMI Library (amdsmi), replacing the deprecated rocm-smi-lib.
Starred by 25 users
Forked by 10 users
Languages   Python
🌐
Medium
medium.com › @guinmoon › building-rocm-7-1-and-pytorch-on-windows-for-unsupported-gpus-my-hands-on-guide-0758d2d2b334
Building ROCm 7.1 and PyTorch on Windows for Unsupported GPUs: My Hands-On Guide | by Artem Savkin | Medium
November 21, 2025 - In this article, I’ll share my experience building the yet-to-be-released (at the time of writing) ROCm 7 for my own GPUs, even if they’re not in the list of officially supported architectures. Then, I’ll show how to build PyTorch with the assembled ROCm 7 and run ComfyUI.
🌐
ONNX Runtime
onnxruntime.ai › docs › execution-providers › ROCm-ExecutionProvider.html
ROCm Execution Provider - AMD
For simple workloads and/or prototyping AMD creates a Docker Images based on Ubuntu using the latest ROCm release and Supported ROCm-Pytorch builds found at ROCM Dockerhub. The intent is to get users up and running with their custom workload in python and provides an environment of prebuild ROCm, Onnxruntime and MIGraphX packages required to get started without the need to build Onnxruntime.
🌐
AMD
amd.com › https://www.amd.com/en.html › products › rocm
AMD ROCm™ Software
1 month ago - ROCm is also enabling application development on some of the world’s top supercomputers. ... Supports multiple programming language choices for HPC workloads, giving developers a range of tools to help solve the problem at hand—including OpenMP®, HIP, OpenCL™, and Python™
Find elsewhere
🌐
AMD ROCm
rocm.docs.amd.com › projects › hip-python › en › latest › user_guide › 1_usage.html
Basic Usage and Examples — HIP Python
Listing 14 Compiling a Cython module that uses HIP Python’s Cython API.# 1import os, sys 2 3mymodule = "mymodule" 4 5from setuptools import Extension, setup 6from Cython.Build import cythonize 7 8ROCM_PATH=os.environ.get("ROCM_PATH", "/opt/rocm") 9HIP_PLATFORM = os.environ.get("HIP_PLATFORM", "amd") 10 11if HIP_PLATFORM not in ("amd", "hcc"): 12 raise RuntimeError("Currently only HIP_PLATFORM=amd is supported") 13 14def create_extension(name, sources): 15 global ROCM_PATH 16 global HIP_PLATFORM 17 rocm_inc = os.path.join(ROCM_PATH,"include") 18 rocm_lib_dir = os.path.join(ROCM_PATH,"lib") 19
🌐
AMD ROCm
rocm.docs.amd.com › projects › rocm_smi_lib › en › latest › tutorials › python_tutorials.html
ROCm SMI Python API tutorial — ROCm SMI LIB 7.8.0 Documentation
import sys sys.path.append("/opt/rocm/libexec/rocm_smi/") try: import rocm_smi except ImportError: raise ImportError("Could not import /opt/rocm/libexec/rocm_smi/rocm_smi.py") class prof_utils: def __init__(self, mode) -> None: rocm_smi.initializeRsmi() def getPower(self, device): return rocm_smi.getPower(device) def listDevices(self): return rocm_smi.listDevices() def getMemInfo(self, device): (memUsed, memTotal) = rocm_smi.getMemInfo(device, "vram") return round(float(memUsed)/float(memTotal) * 100, 2)
🌐
AMD ROCm
rocm.docs.amd.com › projects › rocm_smi_lib › en › docs-6.3.0 › how-to › use-python.html
Using ROCm SMI with Python — ROCm SMI LIB 7.4.0 Documentation
Provided ASIC support, users can now set a maximum or minimum sclk or mclk value through our Python CLI tool (rocm-smi –setextremum max sclk 1500).
🌐
GitHub
github.com › ROCm › TheRock
GitHub - ROCm/TheRock: The HIP Environment and ROCm Kit - A lightweight open source build system for HIP and ROCm · GitHub
You can install the rocm Python package for any architecture inside a venv and run offload-arch from there:
Starred by 1.1K users
Forked by 273 users
Languages   Python 85.2% | CMake 10.3% | Shell 2.2% | PowerShell 1.0% | HTML 0.7% | Dockerfile 0.5%
🌐
PyPI
pypi.org › project › cupy-rocm-5-0
cupy-rocm-5-0 · PyPI
CuPy is a NumPy/SciPy-compatible array library for GPU-accelerated computing with Python. This is a CuPy wheel (precompiled binary) package for AMD ROCm 5.0.
      » pip install cupy-rocm-5-0
    
Published   Aug 22, 2024
Version   13.3.0
Homepage   https://cupy.dev/
🌐
PyPI
pypi.org › project › tensorflow-rocm
tensorflow-rocm · PyPI
pip install tensorflow-rocm Copy PIP instructions · Latest release · Released: Jan 10, 2024 · TensorFlow is an open source machine learning framework for everyone. These details have been verified by PyPI · JasonF-amd rsanthanam-amd sunway513 · These details have not been verified by PyPI · Homepage · Download · License: Apache Software License (Apache 2.0) Author: Google Inc. Tags tensorflow , tensor , machine , learning · Requires: Python >=3.9 ·
      » pip install tensorflow-rocm
    
Published   Jan 10, 2024
Version   2.14.0.600
🌐
AMD ROCm
rocm.docs.amd.com › projects › install-on-linux › en › latest › install › 3rd-party › pytorch-install.html
PyTorch on ROCm installation — ROCm installation (Linux)
cd .ci/docker ./build.sh pytorch-linux-<os-version>-rocm<rocm-version>-py<python-version> -t rocm/pytorch:build_from_dockerfile
🌐
GitHub
github.com › ROCm › rocm-docs-core
GitHub - ROCm/rocm-docs-core: ROCm Documentation Python package for ReadTheDocs build standardization · GitHub
ROCm Documentation Python package for ReadTheDocs build standardization - ROCm/rocm-docs-core
Starred by 16 users
Forked by 22 users
Languages   Python 43.6% | CSS 42.8% | Jinja 6.3% | HTML 3.5% | JavaScript 1.8% | Just 1.0%
🌐
AMD ROCm
rocm.docs.amd.com › projects › rocm_smi_lib › en › docs-6.2.0 › how-to › use-python.html
Using Python in ROCm SMI — ROCm SMI LIB 7.3.0 Documentation
--setextremum <min/max> <sclk or mclk> <value in MHz to set to> Provided ASIC support, users can now set a maximum or minimum sclk or mclk value through our Python CLI tool (rocm-smi --setextremum max sclk 1500).
🌐
AMD ROCm
rocm.docs.amd.com › projects › hip-python › en › latest
HIP Python - ROCm Documentation - AMD
June 23, 2023 - HIP Python provides low-level Cython and Python® bindings for the HIP runtime, HIPRTC, multiple math libraries and the communication library RCCL, and further a CUDA® Python Interoperability layer that aims to simplify the porting of CUDA Python Python and Cython programs. ... This documentation has been generated based on ROCm™ version 5.7.1.