[Openmp-commits] [PATCH] D67190: Fix openmp on PowerPC64-BE-ELFv2 ABI on FreeBSD
Alfredo Dal'Ava JĂșnior via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu Sep 19 15:52:39 PDT 2019
adalava added a comment.
In D67190#1670325 <https://reviews.llvm.org/D67190#1670325>, @jdoerfert wrote:
> Is there a good way to test this? If so, we should, if not, this seems fine to me (except the typo @hbae found).
I checked openmp sanity by using using the code bellow. It runs now, before patch it crashed with segmentation fault.
#include <stdio.h>
void bar(int i, float p, double q){
printf("%d %f %f\n", i, p, q);
fflush(stdout);
}
void foo(int N) {
float p = 3;
double q = 5;
N = 7;
#pragma omp parallel for firstprivate(q)
for (int i = 2; i < N; i++) {
bar(i, p, q);
}
}
int main()
{
foo(0);
}
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67190/new/
https://reviews.llvm.org/D67190
More information about the Openmp-commits
mailing list