Fixed #19. Provided an error msg when the arch is not supported.
This commit is contained in:
parent
0a45e5495f
commit
ff6ae89d3e
|
@ -12,6 +12,8 @@ common:
|
||||||
openblas_set_num_threads(int num_threads)" when USE_OPENMP=1
|
openblas_set_num_threads(int num_threads)" when USE_OPENMP=1
|
||||||
* Added extern "C" to support C++. Thank Tasio for the patch(Refs
|
* Added extern "C" to support C++. Thank Tasio for the patch(Refs
|
||||||
issue #21 on github)
|
issue #21 on github)
|
||||||
|
* Provided an error message when the arch is not supported.(Refs
|
||||||
|
issue #19 on github)
|
||||||
|
|
||||||
x86/x86_64:
|
x86/x86_64:
|
||||||
*
|
*
|
||||||
|
|
11
getarch.c
11
getarch.c
|
@ -604,30 +604,41 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
#ifndef POWER
|
#ifndef POWER
|
||||||
#define POWER
|
#define POWER
|
||||||
#endif
|
#endif
|
||||||
|
#define OPENBLAS_SUPPORTED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__i386__) || (__x86_64__)
|
#if defined(__i386__) || (__x86_64__)
|
||||||
#include "cpuid_x86.c"
|
#include "cpuid_x86.c"
|
||||||
|
#define OPENBLAS_SUPPORTED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __ia64__
|
#ifdef __ia64__
|
||||||
#include "cpuid_ia64.c"
|
#include "cpuid_ia64.c"
|
||||||
|
#define OPENBLAS_SUPPORTED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __alpha
|
#ifdef __alpha
|
||||||
#include "cpuid_alpha.c"
|
#include "cpuid_alpha.c"
|
||||||
|
#define OPENBLAS_SUPPORTED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef POWER
|
#ifdef POWER
|
||||||
#include "cpuid_power.c"
|
#include "cpuid_power.c"
|
||||||
|
#define OPENBLAS_SUPPORTED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef sparc
|
#ifdef sparc
|
||||||
#include "cpuid_sparc.c"
|
#include "cpuid_sparc.c"
|
||||||
|
#define OPENBLAS_SUPPORTED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __mips__
|
#ifdef __mips__
|
||||||
#include "cpuid_mips.c"
|
#include "cpuid_mips.c"
|
||||||
|
#define OPENBLAS_SUPPORTED
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef OPENBLAS_SUPPORTED
|
||||||
|
#error "This arch/CPU is not supported by OpenBLAS."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue