bcd067f462
1.Make directed_test apps linked against static libs
of hip, rocclr, rocr, roct and amd_comgr.
2.Remove custom_target amdhip64_static_combiner.
3.Support EXCLUDE_HIP_LIB_TYPE <static|shared>.
4.Simplify argument list parsing.
5.Install rocclr when rocm is installed.
6.Fix some original small bugs.
Revert "Revert "Make directed_test support static libs""
This reverts commit 5b7533e49f.
Change-Id: I918eeae94487e5e2ff5bfde083667ac65fb6e702
41 řádky
776 B
Bash
Spustitelný soubor
41 řádky
776 B
Bash
Spustitelný soubor
#!/bin/bash
|
|
pushd () {
|
|
command pushd "$@" > /dev/null
|
|
}
|
|
|
|
popd () {
|
|
command popd "$@" > /dev/null
|
|
}
|
|
|
|
ROCMDIR=@ROCM_PATH@
|
|
ROCMLIBDIR=$ROCMDIR/lib
|
|
ROCCLRDIR=$ROCMDIR/rocclr
|
|
ROCCLRLIBDIR=$ROCMDIR/rocclr/lib
|
|
HIPDIR=$ROCMDIR/hip
|
|
HIPLIBDIR=$ROCMDIR/hip/lib
|
|
|
|
# Soft-link to library files
|
|
ROCCLRLIBFILES=$(ls -A $ROCCLRLIBDIR | grep -v "cmake\|[-/$]")
|
|
HIPLIBFILES=$(ls -A $HIPLIBDIR | grep -v "cmake\|[-/$]")
|
|
|
|
mkdir -p $ROCMLIBDIR
|
|
mkdir -p $ROCMLIBDIR/cmake
|
|
pushd $ROCMLIBDIR
|
|
|
|
for f in $ROCCLRLIBFILES
|
|
do
|
|
ln -s -r -f $ROCCLRLIBDIR/$f $(basename $f)
|
|
done
|
|
|
|
for f in $HIPLIBFILES
|
|
do
|
|
ln -s -r -f $HIPLIBDIR/$f $(basename $f)
|
|
done
|
|
|
|
# Make the hip cmake directory link.
|
|
pushd cmake
|
|
ln -s -r -f $ROCCLRLIBDIR/cmake/rocclr rocclr
|
|
ln -s -r -f $HIPLIBDIR/cmake/hip hip
|
|
popd
|
|
popd
|