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.
Videos
r/ROCm on Reddit: AMD ROCm Pytorch Getting Started Guide
08:56
Run ROCm + PyTorch on Windows 11 for LOCAL AI, stable diffusion, ...
ComfyUI on Windows 11 with ROCm (Official Nightly Release) | RX ...
Stable Diffusion on Windows 11 with ROCm - YouTube
15:54
How To Install AMD ROCm, PyTorch, Stable Diffusion & YOLO - 2024 ...
12:03
PyTorch/TensorFlow on AMD: Beginner's Guide to ROCm on Linux - YouTube
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
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™
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)
Reddit
reddit.com › r/amd › is rocm fine or should i go cuda to learn ai with python?
r/Amd on Reddit: Is ROCm fine or should I go CUDA to learn AI with Python?
February 5, 2023 -
I have an RX580 and planning on buying a mid level RDNA3 GPU or Nvidia equivalent.
Top answer 1 of 16
31
For learning you can just use google colab without even needing a gpu. See how it goes for your needs and uses and go from there.
2 of 16
30
ROCm isn’t really supported on consumer gpus but it does still work on them. At least in my experience with rdna 2 it takes a bit to get it to work, just for some things to not work that well. I think if you where to buy an officially supported gpu the experience would be much better. That’s not to say ROCm is bad I just don’t think it’s friendly or makes much sense for your average at home enthusiast or professional. If you want to just mess around with it very rarely ROCm is probably “fine” but if you actually plan on learning and regularly using Ml/dl an nvidia card with as much vram that you can comfortably afford is your best choice.
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
Repository https://github.com/cupy/cupy
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
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
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.
AMD ROCm
rocm.docs.amd.com › projects › rocm_smi_lib › en › latest › reference › python_api.html
Python API reference — ROCm SMI LIB 7.8.0 Documentation
This section describes the ROCm SMI Python module API.