From 7972beb3754409db9af3c22dbbe7bd8075c09f6e Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Fri, 3 Apr 2020 15:59:18 +0200 Subject: [PATCH 1/8] Add IBM Z to Travis configuration (#42) * Add IBM Z to Travis configuration --- .travis.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.travis.yml b/.travis.yml index 2d82f8812d..c875572b2d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -34,6 +34,16 @@ matrix: - TARGET_BOX=PPC64LE_LINUX - BTYPE="BINARY=64 USE_OPENMP=1" + - <<: *test-ubuntu + os: linux + arch: s390x + before_script: + - COMMON_FLAGS="DYNAMIC_ARCH=1 TARGET=Z13 NUM_THREADS=32" + env: + # for matrix annotation only + - TARGET_BOX=IBMZ_LINUX + - BTYPE="BINARY=64 USE_OPENMP=1" + - <<: *test-ubuntu env: - TARGET_BOX=LINUX64 From a56c9ec52a25ba0d72b6cc01f6312828113efec7 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sat, 4 Apr 2020 22:45:01 +0200 Subject: [PATCH 2/8] Revert "Add IBM Z to Travis configuration (#42)" This reverts commit 7972beb3754409db9af3c22dbbe7bd8075c09f6e. --- .travis.yml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index c875572b2d..2d82f8812d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -34,16 +34,6 @@ matrix: - TARGET_BOX=PPC64LE_LINUX - BTYPE="BINARY=64 USE_OPENMP=1" - - <<: *test-ubuntu - os: linux - arch: s390x - before_script: - - COMMON_FLAGS="DYNAMIC_ARCH=1 TARGET=Z13 NUM_THREADS=32" - env: - # for matrix annotation only - - TARGET_BOX=IBMZ_LINUX - - BTYPE="BINARY=64 USE_OPENMP=1" - - <<: *test-ubuntu env: - TARGET_BOX=LINUX64 From 8639c8a68316831de25fbe219055cdf4a13a0f73 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Tue, 7 Apr 2020 21:48:38 +0200 Subject: [PATCH 3/8] Try to get an all-core lapack test to identify barrier issues --- .drone.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.drone.yml b/.drone.yml index 696c5a99dc..d987d6b960 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 + - $CC --version + - make QUIET_MAKE=1 $COMMON_FLAGS + - make -C test $COMMON_FLAGS + - make -C ctest $COMMON_FLAGS + - make -C utest $COMMON_FLAGS + - make $COMMON_FLAGS lapack-test From 9a4959997dc0df115b0310a4f0497513a4c978ae Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Tue, 7 Apr 2020 22:36:16 +0200 Subject: [PATCH 4/8] Add python dependency for lapack test --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index d987d6b960..efe3fda1de 100644 --- a/.drone.yml +++ b/.drone.yml @@ -159,7 +159,7 @@ steps: commands: - echo "MAKE_FLAGS:= $COMMON_FLAGS" - apt-get update -y - - apt-get install -y make $CC gfortran perl + - apt-get install -y make $CC gfortran perl python - $CC --version - make QUIET_MAKE=1 $COMMON_FLAGS - make -C test $COMMON_FLAGS From e1ec040b9501f245b9b59b0a6874a0bdd67e541f Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Tue, 7 Apr 2020 23:50:41 +0200 Subject: [PATCH 5/8] Try dgemm_tester instead of lapack-test --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index efe3fda1de..c872f46917 100644 --- a/.drone.yml +++ b/.drone.yml @@ -165,4 +165,4 @@ steps: - make -C test $COMMON_FLAGS - make -C ctest $COMMON_FLAGS - make -C utest $COMMON_FLAGS - - make $COMMON_FLAGS lapack-test + - make -C cpp_thread_test dgemm_tester From aa8269d472dbac43256d2966dee2a000446b9408 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Wed, 8 Apr 2020 00:00:15 +0200 Subject: [PATCH 6/8] Add g++ as dependency for dgemm_tester --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index c872f46917..3bbd8fc886 100644 --- a/.drone.yml +++ b/.drone.yml @@ -159,7 +159,7 @@ steps: commands: - echo "MAKE_FLAGS:= $COMMON_FLAGS" - apt-get update -y - - apt-get install -y make $CC gfortran perl python + - apt-get install -y make $CC gfortran perl python g++ - $CC --version - make QUIET_MAKE=1 $COMMON_FLAGS - make -C test $COMMON_FLAGS From 29a50dd048b8c684801601eb7dc26a923e3d3d50 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Wed, 8 Apr 2020 01:04:40 +0200 Subject: [PATCH 7/8] increase nthreads to 96 --- cpp_thread_test/dgemm_thread_safety.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp_thread_test/dgemm_thread_safety.cpp b/cpp_thread_test/dgemm_thread_safety.cpp index cecf794fa4..1b6ad3826a 100644 --- a/cpp_thread_test/dgemm_thread_safety.cpp +++ b/cpp_thread_test/dgemm_thread_safety.cpp @@ -12,7 +12,7 @@ void launch_cblas_dgemm(double* A, double* B, double* C, const blasint randomMat int main(int argc, char* argv[]){ blasint randomMatSize = 1024; //dimension of the random square matrices used - uint32_t numConcurrentThreads = 52; //number of concurrent calls of the functions being tested + uint32_t numConcurrentThreads = 96; //number of concurrent calls of the functions being tested uint32_t numTestRounds = 16; //number of testing rounds before success exit if (argc > 4){ From 0e0681f535da42d24a186f4222db9c97c44a5e4b Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Wed, 8 Apr 2020 09:24:03 +0200 Subject: [PATCH 8/8] Experimental barrier --- driver/others/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/others/memory.c b/driver/others/memory.c index 62a5a02140..1af547fb28 100644 --- a/driver/others/memory.c +++ b/driver/others/memory.c @@ -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);