Skip to content
Unverified Commit eaab947a authored by Shilei Tian's avatar Shilei Tian Committed by GitHub
Browse files

[OpenMP] Use simple VLA implementation to replace uses of actual VLA (#71412)

Use of VLA can cause compile warning that was introduced in D156565.
This patch
implements a simple stack/heap-based VLA that can miminc the behavior of
an
actual VLA and prevent the warning. By default the stack accomodates the
elements. If the number of emelements is greater than N, which by
default is 8,
a heap buffer will be allocated and used to acccomodate the elements.
parent ab562686
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment