peixin added a comment. Herald added a subscriber: awarzynski. @Meinersbur Here is the c++ code test. Without the chunk size specified, the running result using OMPIRBuilder is correct.
#include<iostream> int main() { int i, N = 10; float x = 0.0; #pragma omp for schedule(static, 2) for(i = 3; i <= N; i++) { x = x + i; } std::cout << "x = " << x << std::endl; return 0; } $ clang++ chunk-1.cpp -fopenmp -fopenmp-enable-irbuilder && ./a.out x = 7 $ clang++ chunk-1.cpp -fopenmp && ./a.out x = 52 Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D114413/new/ https://reviews.llvm.org/D114413 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits