Benchmarks now run in user-mode.
[riscv-tests.git] / benchmarks / dgemm / dgemm_main.c
index 72c90efd2d1ad161ab391ed5228a4f050f7a08fe..7fd7dc20cce967a4753003aaa0629d60d564600f 100644 (file)
@@ -2,6 +2,9 @@
 // Double-precision general matrix multiplication benchmark
 //--------------------------------------------------------------------------
 
+int ncores = 1;
+#include "util.h"
+
 //--------------------------------------------------------------------------
 // Macros
 
@@ -61,20 +64,6 @@ void printArray( char name[], long n, const double arr[] )
 }
 #endif
 
-void finishTest( int toHostValue )
-{
-#if HOST_DEBUG
-  if ( toHostValue == 1 )
-    printf( "*** PASSED ***\n" );
-  else
-    printf( "*** FAILED *** (tohost = %d)\n", toHostValue );
-  exit(0);
-#else
-  asm( "mtpcr %0, tohost" : : "r" (toHostValue) );
-  while ( 1 ) { }
-#endif
-}
-
 void setStats( int enable )
 {
 #if ( !HOST_DEBUG && SET_STATS )