Changeset 630191c for src/aubio_priv.h


Ignore:
Timestamp:
Sep 21, 2018, 5:50:03 PM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master
Children:
fe05d1f
Parents:
5447a26
Message:

src/aubio_priv.h: split BLAS and ATLAS support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/aubio_priv.h

    r5447a26 r630191c  
    7171#endif
    7272
    73 #ifdef HAVE_ACCELERATE
     73#if defined(HAVE_ACCELERATE)
    7474#define HAVE_ATLAS 1
     75#define HAVE_BLAS 1
    7576#include <Accelerate/Accelerate.h>
    7677#elif defined(HAVE_ATLAS_CBLAS_H)
     78#elif defined(HAVE_BLAS)
     79#if defined(HAVE_ATLAS_CBLAS_H)
    7780#define HAVE_ATLAS 1
    7881#include <atlas/cblas.h>
     82#elif defined(HAVE_OPENBLAS_CBLAS_H)
     83#include <openblas/cblas.h>
     84#elif defined(HAVE_CBLAS_H)
     85#include <cblas.h>
     86#endif
    7987#endif
    8088
     
    112120#endif /* HAVE_ACCELERATE */
    113121
     122#if defined(HAVE_BLAS)
     123#ifndef HAVE_AUBIO_DOUBLE
    114124#ifdef HAVE_ATLAS
    115 #ifndef HAVE_AUBIO_DOUBLE
    116125#define aubio_catlas_set      catlas_sset
     126#endif /* HAVE_ATLAS */
    117127#define aubio_cblas_copy      cblas_scopy
    118128#define aubio_cblas_swap      cblas_sswap
    119129#define aubio_cblas_dot       cblas_sdot
    120130#else /* HAVE_AUBIO_DOUBLE */
     131#ifdef HAVE_ATLAS
    121132#define aubio_catlas_set      catlas_dset
     133#endif /* HAVE_ATLAS */
    122134#define aubio_cblas_copy      cblas_dcopy
    123135#define aubio_cblas_swap      cblas_dswap
    124136#define aubio_cblas_dot       cblas_ddot
    125137#endif /* HAVE_AUBIO_DOUBLE */
    126 #endif /* HAVE_ATLAS */
     138#endif /* HAVE_BLAS */
    127139
    128140#if defined HAVE_INTEL_IPP
Note: See TracChangeset for help on using the changeset viewer.