-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[openblas]Enable x86 build and fix usage errors. (#7888)
* [openblas]Enable x86 build. * [openblas]Fix include openblas_config.h path. * [openblas] * [openblas]fix typo error.
- Loading branch information
Showing
4 changed files
with
33 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Source: openblas | ||
Version: 0.3.6-5 | ||
Version: 0.3.6-6 | ||
Homepage: https://github.com/xianyi/OpenBLAS | ||
Build-Depends: pthread (linux) | ||
Description: OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
diff --git a/openblas_config_template.h b/openblas_config_template.h | ||
index 52dd49d..239219d 100644 | ||
--- a/openblas_config_template.h | ||
+++ b/openblas_config_template.h | ||
@@ -64,6 +64,7 @@ typedef int blasint; | ||
#ifndef __cplusplus | ||
#include <complex.h> | ||
#endif | ||
+ #ifndef OPENBLAS_COMPLEX_STRUCT | ||
typedef float _Complex openblas_complex_float; | ||
typedef double _Complex openblas_complex_double; | ||
typedef xdouble _Complex openblas_complex_xdouble; | ||
@@ -76,7 +77,9 @@ typedef int blasint; | ||
#define openblas_complex_double_imag(z) (cimag(z)) | ||
#define openblas_complex_xdouble_real(z) (creal(z)) | ||
#define openblas_complex_xdouble_imag(z) (cimag(z)) | ||
+ #endif | ||
#else | ||
+ #ifndef OPENBLAS_COMPLEX_STRUCT | ||
#define OPENBLAS_COMPLEX_STRUCT | ||
typedef struct { float real, imag; } openblas_complex_float; | ||
typedef struct { double real, imag; } openblas_complex_double; | ||
@@ -90,4 +93,5 @@ typedef int blasint; | ||
#define openblas_complex_double_imag(z) ((z).imag) | ||
#define openblas_complex_xdouble_real(z) ((z).real) | ||
#define openblas_complex_xdouble_imag(z) ((z).imag) | ||
+ #endif | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters