Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to ROCm 5.4.2 and TBB 2021.8.0 #8273

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 22 additions & 32 deletions rocm.spec
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
### RPM external rocm 5.0.2
### RPM external rocm 5.4.2
## NOCOMPILER
Source: none
Provides: libamd_comgr.so.2()(64bit)
Provides: libhsa-runtime64.so.1()(64bit)
Provides: librocm-core.so.1()(64bit)
Provides: librocm_smi64.so.5()(64bit)

# This rpm packages only symlinks to an installation that is already on CVMFS.
# Configure pkgtools to keep the static libraries, to avoid actually trying to
# delete them from CVMFS.
%define keep_archives true

%prep

%build
Expand All @@ -17,59 +22,44 @@ if ! [ -d $OSDIR ]; then
fi
BASEDIR=${OSDIR}/amd/%{n}-%{realversion}

# symlink individual files from ${BASEDIR}/bin/
# Symlink individual files from ${BASEDIR}/bin/
mkdir %{i}/bin
test -d ${BASEDIR}/bin
test -e ${BASEDIR}/bin/hipcc
ln -s ${BASEDIR}/bin/* %{i}/bin/
# remove the OpenCL extra files
rm -f %{i}/bin/clang-ocl
# remove the OpenMP extra files
rm -f %{i}/bin/{aompcc,gputable.txt,mygpu,mymcpu}
# remove the MIGraphX tools
rm -f %{i}/bin/migraphx-driver
# Remove the OpenCL extra files
rm -f %{i}/bin/{clang-ocl,clinfo}
# Remove the OpenMP extra files
rm -f %{i}/bin/{aompcc,mygpu,mymcpu}
# Remove the Fortran files
rm -f %{i}/bin/hipfc
# Remove the MI tools
rm -f %{i}/bin/{MIOpenDriver,migraphx-driver,runvx}
# Remove the datacenter tools and validation suite binaries
rm -f %{i}/bin/{rdcd,rdci,rvs}
# Remove some of the prebuilt samples
rm -f %{i}/bin/{sgemmv,simple_dlrm,simple_gemm}

# ROCm/HIP core tools
DIRECTORIES="amdgcn hip hipcub hsa hsa-amd-aqlprofile include lib lib64 llvm rocthrust share"
DIRECTORIES="amdgcn hip hsa hsa-amd-aqlprofile include lib libexec llvm share"

# rocm-smi
DIRECTORIES+=" oam rocm_smi"

# hipBLAS / rocBLAS
DIRECTORIES+=" hipblas rocblas"

# hipSOLVER / rocSOLVER
DIRECTORIES+=" hipsolver rocsolver"

# hipSPARSE / rocSPARSE
DIRECTORIES+=" hipsparse rocsparse"

# hipFFT / rocFFT
DIRECTORIES+=" hipfft rocfft"

# hipRAND / rocRAND
DIRECTORIES+=" hiprand rocrand"

# ROCm Parallel Primitives (rocPRIM)
DIRECTORIES+=" rocprim"

# ROCm Tracer Callback/Activity Library (rocTRACER) and profiler library (ROC-profiler)
DIRECTORIES+=" rocprofiler roctracer"

# Asynchronous Task and Memory Interface (ATMI)
#DIRECTORIES+=" atmi"

# OpenCL support
#DIRECTORIES+=" opencl"
#DIRECTORIES+=" opencl tests"

# ROCm Communication Collectives Library (RCCL)
#DIRECTORIES+=" rccl"

# iterative sparse solvers for ROCm platform (rocALUTION)
#DIRECTORIES+=" rocalution"

# Machine Intelligence Libraries
#DIRECTORIES+=" miopen miopengemm mivisionx"
#DIRECTORIES+=" miopen miopengemm"

# HIP Fortran interface (hipfort)
#DIRECTORIES+=" hipfort"
Expand Down
3 changes: 1 addition & 2 deletions scram-tools.file/tools/rocm/rocm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
<environment name="HIPCC" default="$ROCM_BASE/bin/hipcc"/>
<environment name="BINDIR" default="$ROCM_BASE/bin"/>
<environment name="LIBDIR" default="$ROCM_BASE/lib"/>
<environment name="LIBDIR" default="$ROCM_BASE/lib64"/>
<environment name="INCLUDE" default="$ROCM_BASE/include"/>
</client>
<flags CPPDEFINES="__HIP_PLATFORM_HCC__ __HIP_PLATFORM_AMD__"/>
<flags ROCM_FLAGS="-fgpu-rdc --offload-arch=gfx900 --target=@COMPILER_HOST@ --gcc-toolchain=$(COMPILER_PATH)"/>
<flags ROCM_FLAGS="-fgpu-rdc --offload-arch=gfx900 --offload-arch=gfx906 --offload-arch=gfx908 --target=@COMPILER_HOST@ --gcc-toolchain=$(COMPILER_PATH)"/>
<runtime name="ROOT_INCLUDE_PATH" value="$INCLUDE" type="path" join="1"/>
<runtime name="PATH" value="$ROCM_BASE/bin" type="path"/>
</tool>
2 changes: 1 addition & 1 deletion tbb.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external tbb v2021.8.0-rc1
### RPM external tbb v2021.8.0

%define tag %{realversion}
%define branch onetbb_2021
Expand Down