Automatic BLAS Configuration