summaryrefslogtreecommitdiff
path: root/param.h
diff options
context:
space:
mode:
authorRajalakshmi Srinivasaraghavan <rajis@linux.ibm.com>2021-02-11 21:28:03 -0600
committerRajalakshmi Srinivasaraghavan <rajis@linux.ibm.com>2021-02-11 21:28:03 -0600
commit63fa6c832ea142ecac3c61e2ce542949ae8ccdcb (patch)
tree6e01128a491522ea89507c4f60197a503640c3df /param.h
parent074d9bff7f0c66b645cb02c7c82f4d65394d4836 (diff)
downloadopenblas-63fa6c832ea142ecac3c61e2ce542949ae8ccdcb.tar.gz
openblas-63fa6c832ea142ecac3c61e2ce542949ae8ccdcb.tar.bz2
openblas-63fa6c832ea142ecac3c61e2ce542949ae8ccdcb.zip
Fix build issue on POWER8 with DYNAMIC_ARCH
Running make DYNAMIC_ARCH=1 on POWER 8 BE with gcc10.2 version, gives the following error due to the difference in UNROLL_M/N. 'No rule to make target 'dgemm_incopy_POWER10.o', needed by kernel'
Diffstat (limited to 'param.h')
-rw-r--r--param.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/param.h b/param.h
index 6a790ab61..9ba25de6a 100644
--- a/param.h
+++ b/param.h
@@ -2443,8 +2443,13 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define SGEMM_DEFAULT_UNROLL_M 16
#define SGEMM_DEFAULT_UNROLL_N 8
+#if defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
+#define DGEMM_DEFAULT_UNROLL_M 16
+#define DGEMM_DEFAULT_UNROLL_N 4
+#else
#define DGEMM_DEFAULT_UNROLL_M 8
#define DGEMM_DEFAULT_UNROLL_N 8
+#endif
#define CGEMM_DEFAULT_UNROLL_M 8
#define CGEMM_DEFAULT_UNROLL_N 4
#define ZGEMM_DEFAULT_UNROLL_M 8