Skip to content

Commit

Permalink
Merge pull request #8273 from fwyzard/IB/CMSSW_13_0_X/master_rocm_5.4.2
Browse files Browse the repository at this point in the history
Update to ROCm 5.4.2 and TBB 2021.8.0
  • Loading branch information
smuzaffar committed Jan 31, 2023
2 parents 7a19e0f + 0be4176 commit 5f3f24e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 35 deletions.
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

0 comments on commit 5f3f24e

Please sign in to comment.