Skip to content

The COPR backend , for the **"ROCm-GFX8P"** Stack.

Notifications You must be signed in to change notification settings

CosmicFusion/ROCm-COPR

Repository files navigation

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 .

About

The COPR backend , for the **"ROCm-GFX8P"** Stack.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published