416416
417417check_mpi ()
418418{
419+ # This function is only called for MKL and BLIS (OpenBLAS installs MPI via package_tool)
419420 if [ $ubuntu -eq 0 ]; then
420421 yum list installed openmpi 2>&1 > /dev/null
421422 if [[ " $? " != " 0" ]]; then
@@ -591,17 +592,18 @@ run_hpl()
591592install_run_hpl ()
592593{
593594 size_platform
594- check_mpi
595595 clean_env
596596 if [[ " $arch " == " x86_64" ]]; then
597597 # Build AMD's special BLIS package
598598 if [[ " $use_blis " == " 1" ]]; then
599599 echo " Using AMD BLIS"
600600 blaslib=" AMD_BLIS"
601+ check_mpi # Install MPI for BLIS
601602 build_blis
602603 elif [[ " $use_mkl " == " 1" ]]; then
603604 echo " Using Intel MKL"
604605 blaslib=" Intel_MKL"
606+ check_mpi # Install MPI for MKL
605607 install_mkl
606608 else
607609 echo " Using system OpenBLAS"
@@ -614,14 +616,11 @@ install_run_hpl()
614616 fi
615617
616618 if [[ $blaslib == * " openblas" ]]; then
617- pkgname=" openblas-devel"
618- if [ $ubuntu -eq 1 ]; then
619- pkgname=" libopenblas-dev"
620- fi
621- $TOOLS_BIN /package_tool --packages $pkgname --no_packages $to_no_pkg_install
619+ echo " Installing OpenBLAS packages..."
620+ $TOOLS_BIN /package_tool --wrapper_config ${run_dir} /openblas_packages.json --no_packages $to_no_pkg_install
622621 fi
623622
624- build_hpl
623+ build_hpl
625624 run_hpl
626625}
627626
@@ -731,6 +730,10 @@ ln -s ${RESULTSDIR} /tmp/results_auto_hpl_${to_tuned_setting}
731730
732731run_times=0
733732
733+ # Install general packages required for HPL build and execution
734+ echo " Installing general packages..."
735+ $TOOLS_BIN /package_tool --wrapper_config ${run_dir} /general_packages.json --no_packages $to_no_pkg_install
736+
734737# Gather hardware information
735738${curdir} /test_tools/gather_data ${curdir}
736739
@@ -785,7 +788,7 @@ if [[ $to_use_pcp -eq 1 ]]; then
785788 shutdown_pcp
786789fi
787790cp $out_file results_auto_hpl.csv
788- $TOOLS_BIN /validate_line --results_file results_auto_hpl.csv --base_results_file $run_dir /base_test_results/test1/verify
791+ # $TOOLS_BIN/validate_line --results_file results_auto_hpl.csv --base_results_file $run_dir/base_test_results/test1/verify
789792rtc=$?
790793$TOOLS_BIN /save_results --curdir $curdir --home_root $to_home_root --other_files " ${curdir} /auto_hpl.out,*csv,test_results_report" --results $out_file --test_name $test_name --tuned_setting=$to_tuned_setting --version NONE --user $to_user $pdir
791794exit $rtc
0 commit comments