OpenMP-Validation-and-Verification / OpenMP_VV

OpenMP Offloading Validation & Verification Suite; Official repository. We have migrated from bitbucket!! For documentation, results, publication and presentations, please check out our website ->
https://crpl.cis.udel.edu/ompvvsollve/
Other
54 stars 19 forks source link

4.5/taskloop/test_taskloop_private.c: Init variable #806

Closed tob2 closed 6 months ago

tob2 commented 6 months ago

Without initializing "shared_var_sum", execution might fail with: Condition shared_var_sum != (NUM_TASKS * 10) failed.

(Interestingly, in one version of my compilers it keeps failing, in the other not – it is still a genuine bug and also valgrind shows the warning, which is silenced by the fix.)

The test case was originally added in #799.

@fel-cab @spophale @andrewkallai – please review.