Blender Git Commit Log

Git Commits -> Revision d780409

Revision d780409 by Robert-André Mauchin (master)
April 7, 2019, 09:20 (GMT)
Fix for GCC9 new OpenMP data sharing

GCC 9 started implementing the OpenMP 4.0 and later behavior. When not using
default clause or when using default(shared), this makes no difference, but
if using default(none), previously the choice was not specify the const
qualified variables on the construct at all, or specify in firstprivate
clause. In GCC 9 as well as for OpenMP 4.0 compliance, those variables need
to be specified on constructs in which they are used, either in shared or
in firstprivate clause. Specifying them in firstprivate clause is one way to
achieve compatibility with both older GCC versions and GCC 9,
another option is to drop the default(none) clause.

This patch thus drops the default(none) clause.

See https://gcc.gnu.org/gcc-9/porting_to.html#ompdatasharing

Signed-off-by: Robert-Andr� Mauchin <zebob.m@gmail.com>

Commit Details:

Full Hash: d780409156e838e366f4da5126e6aeab44174d62
Parent Commit: 44b54ba
Committed By: Brecht Van Lommel
Lines Changed: +3, -3

1 Modified Path:

/intern/elbeem/intern/solver_main.cpp (+3, -3) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021