OpenMP Offloading Validation & Verification Suite; Official repository. We have migrated from bitbucket!! For documentation, results, publication and presentations, please check out our website ->
Instead of an else as in the original tests, a separated if was included for the while loop, Given that the code in the Device can be executed on SPMD, it is possible that the else can be executed first by all threads generating a deadlock on the while.
Furthermore, it also necessary to create an else, with a shared variable to prevent the optimizer to marge the if and to have the same problem than before.
Therefore a separated if is generated for the code and this way it is possible to guarantee that there is no deadlock on the while.
Instead of an
else
as in the original tests, a separatedif
was included for thewhile
loop, Given that the code in the Device can be executed on SPMD, it is possible that theelse
can be executed first by all threads generating a deadlock on thewhile
.Furthermore, it also necessary to create an
else
, with a shared variable to prevent the optimizer to marge theif
and to have the same problem than before.Therefore a separated
if
is generated for the code and this way it is possible to guarantee that there is no deadlock on thewhile
.