- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For the purposes of running on a parallel cluster system under MPI I need to explicitly
set the directory where temporary scratch file created with OPEN(STATUS=SCRATCH)
are placed.
The man page for ifort 10.1.011 states: under Run-Time Environment Variables that
TEMP, TMP, and TMPDIR
Lets you specify an alternate working directory where temporary files are created.
but this is not correct. I have tested this using an ifort-compiled program , and only the TMPDIR environment variable is honoured - the others are ignored. And running "strings" on the executable (with statically linked
intel libraries) can find only TEMPDIR and not TMP or TEMP.
Is this simply a documentation error? Or are the others really supposed to work?
Keith Refson
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The RTL developer says the documentation is incorrect so we will make the necessary clarifications relative to STATUS=SCRATCH.
At present, on Linux, only TMPDIR is checked currently related to STATUS=SCRATCH.
We are now also considering a feature enhancement to a future release to check all three under Linux and Mac OS X in relation to this OPEN specifier.
Just an aside, TMPDIR is also only checked on Mac OS X, however, that is not currently working with STATUS=SCRATCH. For Windows, only TEMP and TMP are checked in relation to this specifier.
Hope that helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If Intel do decide to update the behaviour as you say, I'd like to
suggest that you consider also testing some specific variable,
eg IFORT_TMPDIR, similar to G95_TMPDIR or GORTRAN_TMPDIR
which implement similar functionality in those compilers.
It is common in PBS-like batch systems for the queue manager
to set and rely on TMP or TMPDIR so this can not be changed.
It would therefore be useful to have independent control, hence
an ifort-specific variable.
Keith Refson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Great suggestion Keith. I will include this in the feature request. (Internal ref. CQ-49373)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The next Intel Fortran minor release (11.1) tentatively scheduled for release in mid-2009 will support a new environment variable FORT_TMPDIR on all currently supported OSes.
As per the developer: "One can use FORT_TMPDIR environment variable or the TMP or TEMP (on Windows), TMPDIR (on Linux/Mac) environment variable to specify the path for scratch files; if neither environment variable is defined, the default is the current directory. The environment variables search order is as defined in previous sentence."

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page