File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
test/Transforms/DoConcurrent Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -366,11 +366,12 @@ bool CodeGenAction::beginSourceFileAction() {
366
366
if (opts.doConcurrentMappingKind != DoConcurrentMappingKind::DCMK_None &&
367
367
!isOpenMPEnabled) {
368
368
unsigned diagID = ci.getDiagnostics ().getCustomDiagID (
369
- clang::DiagnosticsEngine::Error ,
369
+ clang::DiagnosticsEngine::Warning ,
370
370
" lowering `do concurrent` loops to OpenMP is only supported if "
371
- " OpenMP is enabled. Enable OpenMP using `-fopenmp`." );
371
+ " OpenMP is enabled. Enable OpenMP using `-fopenmp`. `do concurrent` "
372
+ " loops will be serialized." );
372
373
ci.getDiagnostics ().Report (diagID);
373
- return false ;
374
+ opts. doConcurrentMappingKind = DoConcurrentMappingKind::DCMK_None ;
374
375
}
375
376
376
377
if (isOpenMPEnabled) {
Original file line number Diff line number Diff line change 8
8
! BBC: -fdo-concurrent-to-openmp=<string>
9
9
! BBC-SAME: Try to map `do concurrent` loops to OpenMP [none|host|device]
10
10
11
- ! RUN: not %flang -fdo-concurrent-to-openmp=host %s 2>&1 \
11
+ ! RUN: %flang -fdo-concurrent-to-openmp=host %s 2>&1 \
12
12
! RUN: | FileCheck %s --check-prefix=OPT
13
13
14
- ! OPT: error : lowering `do concurrent` loops to OpenMP is only supported if OpenMP is enabled.
14
+ ! OPT: warning : lowering `do concurrent` loops to OpenMP is only supported if OpenMP is enabled.
15
15
! OPT-SAME: Enable OpenMP using `-fopenmp`.
16
16
17
17
program test_cli
You can’t perform that action at this time.
0 commit comments