Specifying all new compilers and flags

For all BLAS kernels supported by ATLAS, you can specify a particular compiler and flags to be used in compiling your kernel. Normally, the default compiler specified by config is used. To override this behavior, you simply end a primitive line in the particular description file with the backslash character `\', and then the next two lines are assumed to contain your compiler, and the flags to use, respectively. For instance, Let us say you start with a simple gemm description file like:
2
300 480    4    4    1 1 1 4 4 2 ATL_mm4x4x2US.c "V. Nguyen & P. Strazdins" 
301   8    4    4    2 1 1 4 4 2 ATL_mm4x4x2US_NB.c "V. Nguyen & P. Strazdins"

You then decide you want the first routine compiled with gcc, and some ultrasparc-specific flags. This file would change to:

2
300 480    4    4    1 1 1 4 4 2 ATL_mm4x4x2US.c "V. Nguyen & P. Strazdins" \
gcc
-O -mcpu=ultrasparc -mtune=ultrasparc -fno-schedule-insns -fno-schedule-insns2
301   8    4    4    2 1 1 4 4 2 ATL_mm4x4x2US_NB.c "V. Nguyen & P. Strazdins"



Clint Whaley 2012-07-10