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
このコミットが含まれているのは:
Yiltan
2025-03-13 15:49:50 -04:00
committed by GitHub
コミット 96424a59a8
7個のファイルの変更321行の追加191行の削除
+12 -3
ファイルの表示
@@ -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")