Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xuhuisheng/rocm-build
build scripts for ROCm
https://github.com/xuhuisheng/rocm-build
Last synced: 3 days ago
JSON representation
build scripts for ROCm
- Host: GitHub
- URL: https://github.com/xuhuisheng/rocm-build
- Owner: xuhuisheng
- License: apache-2.0
- Created: 2020-09-28T02:20:19.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-11T03:02:14.000Z (about 1 year ago)
- Last Synced: 2025-01-09T07:05:33.782Z (10 days ago)
- Language: C++
- Homepage:
- Size: 1.49 MB
- Stars: 182
- Watchers: 19
- Forks: 35
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- awesome-starred - xuhuisheng/rocm-build - build scripts for ROCm (others)
README
# rocm-build 5.4
[中文版](README_zh_CN.md)
### Thanks
Thanks [rigtorp](https://github.com/rigtorp) providing intial build steps , which contains build steps for HIP on ROCm-3.6.
Thanks [jlgreathouse](https://github.com/jlgreathouse) providing , which contains build steps for ROCm-2.0.
### Start
My environment is Ubuntu-20.04.5.
Please download sources using repo ,
and change the path of source in `env.sh`.Execute `source env.sh` to setup environment variables.
Execute `bash install-dependency.sh` to install dependencies
Then execute bash scripts by order number.
Good luck.
---
### Download sources using repo.
```
sudo apt install -y repomkdir -p ~/ROCm/
cd ~/ROCm/
repo init -u https://github.com/RadeonOpenCompute/ROCm.git -b roc-5.4.x
repo sync
```Notice: there is no repo package on ubuntu-20.04, because of slow support for python3.
Download and install repo manually on ubuntu-20.04.
```
mkdir -p ~/bin/
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
export PATH=~/bin:$PATH
```### cmake version
**Note**: rocBLAS need cmake-3.18.6 from ROCm-5.3. The version of default cmake from ubuntu-20.04 is cmake-3.16.3.
We have to download and unpack it to `/home/work/local`,
and execute `source env.sh` to add custom cmake to PATH environment variables.
If you want to use other location, please modify `env.sh`.### Additional documentations:
* [gfx803](gfx803) - AMD drop gfx803 offical support on ROCm-4.0, since gfx803 is my only GPU, I need find a way to let it work longer.
* [navi10](navi10) - Experiment scripts for building navi10 GPU.
* [navi14](navi14) - Experiment scripts for building navi14 GPU.
* [check](check) - Codes for check whether ROCm can run successfully.
* [ubuntu2204](ubuntu2204) - Patches for ubuntu-22.04.