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

Does Execute_command_line run asynchronous by default?

mahulsen
Beginner
674 Views

I have to include the optional argument wait=.true. in the new execute_command_line intrinsic in ifort 15.0 in order to get it to run synchronously. However, wait=.true. should be the default according to the standard.

0 Kudos
2 Replies
Steven_L_Intel1
Employee
674 Views

Well, it's supposed to wait. We'll check to see why that's not happening.

0 Kudos
Steven_L_Intel1
Employee
674 Views

There are actually two bugs here. The first is that the sense of the wait/nowait test in the library routine is reversed for Linux and OS X. The second is that the compiler is not passing the correct argument to the library routine if you specify WAIT, so that WAIT=.FALSE. will still wait. We apologize for this and will fix these as soon as possible.

0 Kudos
Reply