Merge pull request #2549 from martin-frbg/fixthreadtest
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Fri, 10 Apr 2020 21:54:40 +0000 (23:54 +0200)
committerGitHub <noreply@github.com>
Fri, 10 Apr 2020 21:54:40 +0000 (23:54 +0200)
Match thread count in cpp_thread_test to host capability

.drone.yml
driver/others/memory.c

index 696c5a9..3bbd8fc 100644 (file)
@@ -141,3 +141,28 @@ steps:
     - cmake $CMAKE_FLAGS ..
     - make -j
     - ctest -V
+
+---
+kind: pipeline
+name: arm64_native_test
+
+platform:
+  os: linux
+  arch: arm64
+
+steps:
+- name: Build and Test
+  image: ubuntu:19.04
+  environment:
+    CC: gcc
+    COMMON_FLAGS: 'USE_OPENMP=1'
+  commands:
+    - echo "MAKE_FLAGS:= $COMMON_FLAGS"
+    - apt-get update -y
+    - apt-get install -y make $CC gfortran perl python g++
+    - $CC --version
+    - make QUIET_MAKE=1 $COMMON_FLAGS
+    - make -C test $COMMON_FLAGS
+    - make -C ctest $COMMON_FLAGS
+    - make -C utest $COMMON_FLAGS
+    - make -C cpp_thread_test dgemm_tester
index 62a5a02..1af547f 100644 (file)
@@ -2740,7 +2740,7 @@ void *blas_memory_alloc(int procpos){
 #ifdef DEBUG
   printf("  Position -> %d\n", position);
 #endif
-
+WMB;
   memory[position].used = 1;
 #if (defined(SMP) || defined(USE_LOCKING)) && !defined(USE_OPENMP)
   UNLOCK_COMMAND(&alloc_lock);