Skip to content
Snippets Groups Projects
Select Git revision
  • 0b5acd3b36c6b4dbc84591ff91420f6745518a2f
  • master default protected
  • hzdr-gpu-test
  • multi-gpu
  • cpu
  • web
  • 2021-04-12
  • 2021-02-08
8 results

easyWave

user avatar
Steffen Christgau authored and Matthias Ruester committed
m is declared outside the parallelized for-loops which makes it shared
by default according the OpenMP standard as well as by the
"default(shared)" statement.  This implies a race condition and the
actual value of m is undefined with in the loops.  The patch fixes this
issue.

Note that the compiler might not allocate storage for m on the stack and
use register instead, so the race condition may not manifest in wrong
output when optimization is enabled, but the error is present anyway.
0b5acd3b
History
Name Last commit Last update
bin
code
data
doc