Ticket #58179: patch-openblas-powermac970-fix.diff

File patch-openblas-powermac970-fix.diff, 894 bytes (added by kencu (Ken), 6 years ago)
  • common_power.h

    diff --git common_power.h common_power.h
    index e3a1a7ae..68087b07 100644
    static inline int blas_quickdivide(blasint x, blasint y){ 
    241241#define HAVE_PREFETCH
    242242#endif
    243243
    244 #if defined(POWER3) || defined(POWER6) || defined(PPCG4) || defined(CELL) || defined(POWER8)
     244#if defined(POWER3) || defined(POWER6) || defined(PPCG4) || defined(CELL) || defined(POWER8) || ( defined(PPC970) && defined(OS_DARWIN) )
    245245#define DCBT_ARG        0
    246246#else
    247247#define DCBT_ARG        8
  • param.h

    diff --git param.h param.h
    index 3cc400b5..48b7ef38 100644
    USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    19991999#define ZGEMM_DEFAULT_UNROLL_M 2
    20002000#define ZGEMM_DEFAULT_UNROLL_N 2
    20012001
    2002 #ifdef OS_LINUX
     2002#if defined(OS_LINUX) || defined(OS_DARWIN)
    20032003#if L2_SIZE == 1024976
    20042004#define SGEMM_DEFAULT_P 320
    20052005#define DGEMM_DEFAULT_P 256