Ignore compiler support for MIPS MSA if the cpu lacks this capability
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Sat, 13 Nov 2021 22:32:26 +0000 (23:32 +0100)
committerGitHub <noreply@github.com>
Sat, 13 Nov 2021 22:32:26 +0000 (23:32 +0100)
Makefile.system
param.h

index 16e8fcb..3b55fb1 100644 (file)
@@ -1664,8 +1664,10 @@ export HAVE_VFP
 export HAVE_VFPV3
 export HAVE_VFPV4
 export HAVE_NEON
-export HAVE_MSA
-export MSA_FLAGS
+ifndef NO_MSA
+  export HAVE_MSA
+  export MSA_FLAGS
+endif
 export KERNELDIR
 export FUNCTION_PROFILE
 export TARGET_CORE
diff --git a/param.h b/param.h
index 23f406d..22f7b83 100644 (file)
--- a/param.h
+++ b/param.h
@@ -2884,7 +2884,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #define GEMM_DEFAULT_OFFSET_B  0
 #define GEMM_DEFAULT_ALIGN (BLASLONG) 0x03fffUL
 
-#ifdef HAVE_MSA
+#if defined(HAVE_MSA) && !defined(NO_MSA)
 #define SGEMM_DEFAULT_UNROLL_M  8
 #define SGEMM_DEFAULT_UNROLL_N  8