Skip to content

Latest commit

 

History

History
 
 
===============================================================================
                    Run netlib lapack tests
===============================================================================

1. Run netlib lapack tests using script

   For GCC: Use the script "run-netlib-test.sh" 
   For AOCC: Use the script "run-netlib-test-aocc.sh" 

2. Usage for GCC:
   
   $ sh run-netlib-test.sh BLAS_LIB_PATH=<blas library path> LAPACK_TEST_DIR=<lapack library path> 
                           [BLAS_LIB=<blas library] [LAPACK_LIB=<lapack library>] [ILP64=<0/1>] 
                           [LAPACK_TEST_DIR=<path to netlib lapack test directory>]
   
   [] indicates optional argument

   Example: $ sh run-netlib-test.sh BLAS_LIB_PATH="/home/user/blis/lib" LAPACK_LIB_PATH="/home/user/libflame/lib" BLAS_LIB="libblis-mt.a"                                    LAPACK_LIB="libflame.a"   
     
        BLAS_LIB : blas library to use. Default=libblist-mt.a
        LAPACK_LIB : lapac library to use. Default=libflame.a
        ILP64 : LP64 or ILP64 mode. Default=0(Use LP64)
        BLAS_LIB_PATH : path of blas library chosen in BLAS_LIB
        LAPACK_LIB_PATH : path to lapack library chosen in LAPACK_LIB
        LAPACK_TEST_DIR : netlib lapack test directory name. Default=lapack-3.12.0

  Usage for AOCC is on similar lines. Just replace script name from "run-netlib-test.sh" to "run-netlib-test-aocc.sh" 

Note: Netlib tests override certain symbols in the libFLAME library (ilaenv_, ilaenv2stage_, iparmq_, slarfy_, clarfy_, dlarfy_, zlarfy_).
   Since the latest aocl-lapack code uses aocl_lapack_* functions internally across function calls, wrapper functions that override these symbols
   are also required. The latest 3.12 test suites include C files for these wrappers. Makefiles and CMakeLists are updated
   to properly compile and link these symbols.