Skip to content

Latest commit

 

History

History
79 lines (61 loc) · 2.56 KB

README.md

File metadata and controls

79 lines (61 loc) · 2.56 KB

ROCm for Fedora Linux

This repository hosts a collection of Fedora RPM SPEC Sheets for the AMD ROCm Platform. These SPEC Sheets implement a great portion of the stack, ranging from low-level interfaces, over compilers to high-level application libraries.

Installation

The Fedora Linux packages for ROCm are available on the My COPR Repo.

More instructions can be found there.

Recommendations for building from source

ROCm stack comprises around 50 packages including a fork of LLVM. Therefore, building all packages from source can take a long time .

To speed up compilation of application libraries like rocblas or rocfft export AMDGPU_TARGETS and set it to the architecture name of your GPU. To find out this name, install rocminfo,

sudo dnf install rocminfo

and call

rocminfo | grep gfx

for VEGA 56/64 the output is

  Name:                    gfx900
        Name:                    amdgcn-amd-amdhsa--gfx900:xnack-

Hence, you have to set AMDGPU_TARGETS to gfx900,

export AMDGPU_TARGETS="gfx900"

Some commonly used compiler flags are unsupported by clang (and thus hipcc) from rocm-llvm, including stack protection,

-fstack-protector-all
-fstack-protector-strong
-fstack-protector

We have patched in an ability for hipcc to allow to change it's C & CXX flags : this ability can be leveraged by these 2 env vars

for CXX

HIP_CXXFLAGS

for C

HIP_CFLAGS

Use the the same way you use regular C & CXX flags. , we also made it fallback to regular C & CXX flags in-case the env vars were missing .

See the official documentation for a full list.

For additional installation configuration, such as adding a user to the video group, we refer to AMD's installation guide.

Contributing

Your contribution is always welcome. Before making a pull request, please open an issue at the issue tracker to report the problem with build/error logs.

and add it to your commit. As we want to bring ROCm into COPR we would greatly appreciate if you test that the package builds in a clean chroot such as mock.

Thanks rocm-arch

for putting your README.md file out there so i can steal it .