Direct compiler to ignore WRITE statements

Is there a directive to tell the compiler to ignore I/O statements such as PRINT, WRITE, and FORMAT?

I have tried the -Minline=except:WRITE,PRINT,FORMAT but it does not appear to work. I am attempting to inline many function calls in an accelerated section of code that contain such statements but keep getting a message that the Accelerator region ignored.

Hi Pebbles,

Is there a directive to tell the compiler to ignore I/O statements such as PRINT, WRITE, and FORMAT?

Sorry no.

My only suggestion would be to use the “_ACCEL” preprocessor macro around the I/O statements. Something like:

...
#ifndef _ACCEL
print *, ....
#endif
  • Mat