On 1/4/2021 11:53 AM, Gary Scott wrote:
> Ah ha...the compiler is IVF. So I think what you're saying is that my
> application doesn't really have a MAIN section since I've defined an
> alternate entry point (for the GUI). Yet IVF still starts 4 separate
> GUIs as if coarray processing is in force. Where might it have hooked
> the coarray initialization?
The "launcher" is run from the main program. If you don't have a main
program, the launcher doesn't run. Typically, a "windowing" program with
a WinMain entry point doesn't have a main program. To be honest, I'm
unsure how that main program gets invoked here - I know it is typically
called from the ifort run-time library, but I thought that required
linking in a specific console library. Nevertheless, I see the behavior
you describe when I add a dummy main program (just an END statement).
I tried some experiments to see if I could figure a way around this, but
did not succeed. I suggest you contact Intel support (if your license
includes support), or ask in the Intel Fortran forum, if there is a way
to do your own coarray initialization call. ifort supports a
/qcoarray:single option (not in the VS interface) that omits the
"launcher", requiring you to do your own mpirun.