justxi / rocm

Ebuilds to install ROCM on Gentoo Linux
38 stars 23 forks source link

sci-libs bump to 3.5.0 and prefixfy part of dev-libs, sci-libs, and sys-devel/hip #158

Closed littlewu2508 closed 4 years ago

littlewu2508 commented 4 years ago

The key changes are :

  1. Common prefixfication like CMAKE_INSTALL_PREFIX from /usr -> ${EPREFIX}/usr, and CXX=hipcc rather than give full path to it
  2. HIP_PLATFORM revert back to 'hcc' because some project like pytorch use this variable to determine compilation flags. As issue 2104 in HIP suggeested we'd better remain HIP_PLATFORM to be 'hcc' for rocm-3.5
  3. Bump to rocBLAS-3.5.0 with tensile support. Tensile will call '--genco' flag when using hipcc, but hip-clang based hipcc seems not recognizing this, so the '--genco' flag is removed in Tensile source. One of the commit include using external tensile rather than creating a virtual environment by cmake (commit 434feb0), but soon I found changing this change unnecessary and revert it back in commit 29f88bc.

The primary goal for these commits are deploying rocm based deep learning platforms on gentoo prefix. With these efforts and some extra configurations about sys-devel/llvm-roc on profile.bashrc in gentoo main respository, one can build rocm-pytorch v1.6.0-rc7.

justxi commented 4 years ago

Thanks. I check your changes, to keep my installation working.

justxi commented 4 years ago

I am looking forward to test "Tensile" and "rocblas" on my system. Hopefully it works with your version.