This is an archive of the discontinued LLVM Phabricator instance.

[clang] Fix computation of number of dependencies using OpenMP iterator
ClosedPublic

Authored by rpenacob on Oct 4 2021, 3:06 AM.

Details

Summary

The size of kmp_depend_info and the number of dependencies are computed multiplying the iterator sizes, which not right.
Now size is computed as:

itersize1*numclausedeps1 + itersize2*numclausedeps2 + ... + itersizeN*numclausedepsN

where itersizeX is the size of the iterator and numclausedepsX the number of dependencies in that depend clause.

Diff Detail

Event Timeline

rpenacob created this revision.Oct 4 2021, 3:06 AM
rpenacob requested review of this revision.Oct 4 2021, 3:06 AM
rpenacob updated this revision to Diff 376847.Oct 4 2021, 3:14 AM
ABataev accepted this revision.Oct 4 2021, 4:37 AM
ABataev added a subscriber: ABataev.

LG

This revision is now accepted and ready to land.Oct 4 2021, 4:37 AM

Thanks for the prompt review. I don't have commit rights, can anyone land this for me?

Thanks for the prompt review. I don't have commit rights, can anyone land this for me?

Will commit it, no problem.