Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
公告
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.

is CRITICAL supported in 12.0 or 12.1?

AShte
初学者
688 次查看

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 项奖励
5 回复数
Steven_L_Intel1
688 次查看

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 项奖励
AShte
初学者
688 次查看
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 项奖励
AShte
初学者
688 次查看

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 项奖励
Steven_L_Intel1
688 次查看

Thanks - I can reproduce the diagnostic.

0 项奖励
Steven_L_Intel1
688 次查看
The diagnostic issue has been fixed for a release later this year.
0 项奖励
回复