{"id":18711268,"url":"https://github.com/rocm/rocm-llvm-python","last_synced_at":"2026-02-13T18:31:15.202Z","repository":{"id":228914733,"uuid":"709356753","full_name":"ROCm/rocm-llvm-python","owner":"ROCm","description":"Low-level Cython and Python bindings to the (ROCm) LLVM and AMD COMGR C API. Also ships the official LLVM Clang bindings.","archived":false,"fork":false,"pushed_at":"2025-11-10T18:39:33.000Z","size":1562,"stargazers_count":6,"open_issues_count":3,"forks_count":1,"subscribers_count":5,"default_branch":"release/rocm-rel-7.1.0","last_synced_at":"2025-11-27T19:55:12.832Z","etag":null,"topics":["ai","clang","compiler","gpu","hip","hpc","jit","llvm","ml","radeon-instinct-mi-series","x86"],"latest_commit_sha":null,"homepage":"","language":"Cython","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ROCm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-10-24T14:53:22.000Z","updated_at":"2025-11-25T21:23:03.000Z","dependencies_parsed_at":"2024-04-23T12:36:46.008Z","dependency_job_id":null,"html_url":"https://github.com/ROCm/rocm-llvm-python","commit_stats":null,"previous_names":["rocm/rocm-llvm-python","rocmsoftwareplatform/rocm-llvm-python"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ROCm/rocm-llvm-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ROCm%2Frocm-llvm-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ROCm%2Frocm-llvm-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ROCm%2Frocm-llvm-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ROCm%2Frocm-llvm-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ROCm","download_url":"https://codeload.github.com/ROCm/rocm-llvm-python/tar.gz/refs/heads/release/rocm-rel-7.1.0","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ROCm%2Frocm-llvm-python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29414278,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","clang","compiler","gpu","hip","hpc","jit","llvm","ml","radeon-instinct-mi-series","x86"],"created_at":"2024-11-07T12:38:20.980Z","updated_at":"2026-02-13T18:31:15.196Z","avatar_url":"https://github.com/ROCm.png","language":"Cython","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- MIT License\n  --\n  -- Copyright (c) 2023-2025 Advanced Micro Devices, Inc.\n  --\n  -- Permission is hereby granted, free of charge, to any person obtaining a copy\n  -- of this software and associated documentation files (the \"Software\"), to deal\n  -- in the Software without restriction, including without limitation the rights\n  -- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n  -- copies of the Software, and to permit persons to whom the Software is\n  -- furnished to do so, subject to the following conditions:\n  --\n  -- The above copyright notice and this permission notice shall be included in all\n  -- copies or substantial portions of the Software.\n  --\n  -- THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n  -- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n  -- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n  -- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n  -- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n  -- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n  -- SOFTWARE.\n  --\u003e\n# ROCm LLVM Python Source Repository\n\nThis repository provides low-level Python and Cython Bindings for ROCm LLVM\nand ROCm AMD COMGR.\n\n## Requirements\n\n* Currently, only Linux is supported (prebuilt packages and code).\n  * Prebuilt packages distributed via PyPI (or Test PyPI) are only provided for\n    Linux systems that agree with the `manylinux_2_17_x86_64` tag.\n* Requires that a compatible ROCm\u0026trade; HIP SDK is installed on your system.\n  * Source code is provided only for particular ROCm versions.\n    * See the git branches tagged with `release/rocm-rel-X.Y[.Z]`\n  * Prebuilt packages are built only for particular ROCm versions.\n\n\u003e [!NOTE]\n\u003e You may find that packages for one ROCm\u0026trade; release might be compatible\n\u003e with the ROCm\u0026trade; HIP SDK of another release as the ROCm LLVM Python\n\u003e functions load HIP C functions in a lazy manner.\n\n## Install Prebuilt Package(s)\n\n\u003e [!NOTE]\n\u003e Prebuilt packages for some ROCm releases are published to Test PyPI first.\n\u003e Check the `simple` lists to see if your operating system and Python version\n\u003e is supported: [rocm-llvm-python](https://test.pypi.org/simple/rocm-llvm-python/).\n\n---\n\n\u003e [!WARNING]\n\u003e Currently, we have not uploaded any ROCm LLVM Python to PyPI yet. So far\n\u003e we have only uploaded packages to TestPyPI, mainly intended for internal\n\u003e testing purposes. If you find similar named packages on PyPI they may been\n\u003e provided by others, possibly with malicious intent.\n\n---\n\n\u003e [!IMPORTANT]\n\u003e Ensure that `pip` has at least version `24.0`, please upgrade it otherwise.\n\n### Via TestPyPI\n\nFirst identify the first two or three digits of the version number of your\nROCm\u0026trade; installation. Then install the ROCm LLVM Python package(s) as\nfollows:\n\n\u003c!-- markdownlint-disable MD013--\u003e\n\n```shell\npython3 -m pip install -i https://test.pypi.org/simple rocm-llvm-python~=$rocm_version\n```\n\n\u003c!-- markdownlint-enable MD013--\u003e\n\n### Via Wheel in Local Filesystem\n\nIf you have ROCm LLVM Python package wheels somewhere in your filesystem, you can\nalso run:\n\n```shell\npython3 -m pip install \u003cpath/to/rocm_llvm_python\u003e.whl\n```\n\n\u003e [!NOTE]\n\u003e See the ROCm LLVM Python user guide for more details:\n\u003e \u003chttps://rocm.docs.amd.com/projects/rocm-llvm-python/en/latest/index.html\u003e\n\n## Build From Source\n\n\u003e [!NOTE]\n\u003e The `main` branch is used for tracking updates to the docs, examples and CI scripts.\n\u003e The source code can be found on the release branches `release/rocm-rel-X.Y[.Z]`.\n\n1. Install ROCM\n2. Install `pip`, virtual environment and development headers for Python 3:\n\n   ```bash\n   # Ubuntu:\n   sudo apt install python3-pip python3-venv python3-dev\n   ```\n\n3. Check out the feature branch `release/rocm-rel-X.Y[.Z]` for your particular\n   ROCm\u0026trade; installation:\n4. Finally run:\n\n   ```bash\n   ./build.sh --post-clean\n   ```\n\n\u003e [!NOTE]\n\u003e See the ROCm LLVM Python developer guide for more details:\n\u003e \u003chttps://rocm.docs.amd.com/projects/rocm-llvm-python/en/latest/index.html\u003e\n\n### Build Options\n\n\u003c!-- markdownlint-disable MD013--\u003e\n\n```text\nUsage: ./build.sh [OPTIONS]\n\nOptions:\n  --rocm-path            Path to a ROCm installation, defaults to variable 'ROCM_PATH' if set or '/opt/rocm'.\n  --libs                 Libraries to build as comma separated list without whitespaces, defaults to variable 'ROCM_LLVM_PYTHON_LIBS' if set or '*'.\n                         Add a prefix '^' to NOT build the comma-separated list of libraries that follows but all other libraries.\n  --no-build             Do not build package 'rocm-llvm-python'.\n  --no-docs              Do not build the docs of package 'rocm-llvm-python'.\n  --no-build-librocmllvm Do not build the librocmllvm shared object.\n  --no-api-docs          Temporarily move the 'rocm-llvm-python/docs/python_api' subfolder so that sphinx does not see it.\n  --no-clean-docs        Do not generate docs from scratch, i.e. don't run sphinx with -E switch.\n  --run-tests            Run the tests.\n  --no-archive           Do not put previously created packages into the archive folder.\n  -j,--num-jobs          Number of build jobs to use. Defaults to 1.\n  --pre-clean            Remove the virtual Python environment subfolder '_venv' --- if it exists --- before all other tasks.\n  --post-clean           Remove the virtual Python environment subfolder '_venv' --- if it exists --- after all other tasks.\n  -n, --no-venv          Do not create and use a virtual Python environment.\n  -h, --help             Show this help message.\n```\n\n\u003c!-- markdownlint-enable MD013--\u003e\n\n\u003e [!NOTE]\n\u003e See the ROCm LLVM Python developer guide for more details:\n\u003e \u003chttps://rocm.docs.amd.com/projects/rocm-llvm-python/en/latest/index.html\u003e\n\n## Documentation\n\n\u003e [!NOTE]\n\u003e Documentation pages have not been published yet.\n\nFor examples, guides and API reference, please take a\nlook at the official ROCm LLVM Python documentation pages:\n\n\u003chttps://rocm.docs.amd.com/projects/rocm-llvm-python/en/latest/index.html\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frocm%2Frocm-llvm-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frocm%2Frocm-llvm-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frocm%2Frocm-llvm-python/lists"}