]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Run quick tests in GitHub CI 13467/head
authorDaniel Arndt <arndtd@ornl.gov>
Mon, 28 Feb 2022 22:50:36 +0000 (17:50 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Wed, 2 Mar 2022 04:49:28 +0000 (23:49 -0500)
.github/workflows/linux.yml
tests/quick_tests/affinity.cc

index aec100791adf2987ce9df5ac13a8c356c54c806b..3e659da7812e2fedd29ab0ba00fe2c79e61c6364 100644 (file)
@@ -36,6 +36,8 @@ jobs:
     - name: build
       run: |
         make -j 2
+    - name: quicktest
+      run: make test
 
   linux-debug-parallel-simplex:
     # simple parallel debug build using g++ with simplex configuration enabled
index 460b347c6bbd96f70fcf7862eff6cff6c530b03d..7fd725a5623d82f43de0d7d0cad3288b0b6217b7 100644 (file)
@@ -48,9 +48,12 @@ getaffinity(unsigned int &bits_set, unsigned int &mask)
       return false;
     }
   for (int i = 0; i < CPU_SETSIZE; ++i)
-    bits_set += CPU_ISSET(i, &my_set);
+    if (CPU_ISSET(i, &my_set))
+      {
+        ++bits_set;
+        mask |= (1 << i);
+      }
 
-  mask = *reinterpret_cast<int *>(&my_set);
 #else
   // sadly we don't have an implementation
   // for mac/windows

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.