Added option to build only tests and link to an external rocshmem library (#43)

* Rearrange CMakefile

* Enable linking to external rocshmem library

* Minor fix for the functional test driver

* ROCSHMEM_HOME detection fixed

[ROCm/rocshmem commit: 96424a59a8]
Tento commit je obsažen v:
Yiltan
2025-03-13 15:49:50 -04:00
odevzdal GitHub
rodič 1831a1b33c
revize a16492cdf9
7 změnil soubory, kde provedl 321 přidání a 191 odebrání
+12 -3
Zobrazit soubor
@@ -322,9 +322,9 @@ TestOther() {
ValidateInput() {
INPUT_COUNT=$1
if [ $INPUT_COUNT -eq 0 ] ; then
echo "This script must be run with at least 2 arguments."
echo 'Usage: ${0} argument1 argument2 [argument3] [argument4]'
if [ $INPUT_COUNT -lt 3 ] ; then
echo "This script must be run with at least 3 arguments."
echo 'Usage: ${0} argument1 argument2 argument3 [argument4]'
echo " argument1 : path to the tester driver"
echo " argument2 : test type to run, e.g put"
echo " argument3 : directory to put the output logs"
@@ -333,6 +333,14 @@ ValidateInput() {
fi
}
ValidateLogDir() {
if [ ! -d $1 ]; then
echo "LOG_DIR=$1 does not exist"
mkdir -p $1
echo "Created $1"
fi
}
APP=$1
TEST=$2
LOG_DIR=$3
@@ -341,6 +349,7 @@ HOSTFILE=$4
DRIVER_RETURN_STATUS=0
ValidateInput $#
ValidateLogDir $LOG_DIR
case $TEST in
*"all")