Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29425 Discussions

is CRITICAL supported in 12.0 or 12.1?

AShte
Beginner
935 Views

I cannot update from 12.0 and 12.1.

I have a coarray program that uses CRITICAL.

I get:


ifort -c -coarray -free -fPIC -warn all  cgca_m2stat.f90
cgca_m2stat.f90(107): remark #7712: This variable has not been used.   [CG_$1_mtx]
critical
^

At runtime the program seems to hang at CRITICAL, but not always. With 8 or 27 images it seems to work, and with 64 images it hangs.

Please advise

Thanks

Anton

0 Kudos
5 Replies
Steven_L_Intel1
Employee
935 Views

It is supposed to be supported. Can you provide a small test program that demonstrates that unused diagnostic? I'd like to track that down, though it should not impact the code. A program that demonstrates the hang would also be useful. Coarray support improved in 13.0.

0 Kudos
AShte
Beginner
935 Views
bigblue3> cat z.f90 program z implicit none critical write (*,*) "image", this_image(), "doing critical section" end critical sync all end program z bigblue3> ifort -coarray -warn all z.f90 z.f90(4): remark #7712: This variable has not been used. [CG_$1_mtx] critical ^ bigblue3> bigblue3> ifort --version ifort (IFORT) 12.0.2 20110112 Copyright (C) 1985-2011 Intel Corporation. All rights reserved. bigblue3>
0 Kudos
AShte
Beginner
935 Views

Sorry, just to clarify, the small program above does *not* hang.

This is just to show the compiler diagnostics.

I'm working on reducing the size of the hanging code.

0 Kudos
Steven_L_Intel1
Employee
935 Views

Thanks - I can reproduce the diagnostic.

0 Kudos
Steven_L_Intel1
Employee
935 Views
The diagnostic issue has been fixed for a release later this year.
0 Kudos
Reply