PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

open SCRATCH

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling
View previous topic :: View next topic  
Author Message
mbrfc



Joined: 14 Oct 2005
Posts: 2

PostPosted: Fri Oct 14, 2005 10:08 am    Post subject: open SCRATCH Reply with quote

I have a simple line (line 28):
OPEN(30, STATE='SCRATCH')

This works with no problem on most of our Linux systems. However, I just moved the execution to another system and get the error:
PGFIO/stdio: No such file or directory
PGFIO-F-/OPEN/unit=30/error code returned by host stdio - 2.
In source file programname.f, at line number 28

Both systems are Linux, but a very slight version difference:
2.4.20-29.7 (the one that works)
2.4.20-28.7

Can anyone shed some light on how to address this?
Thanks.
mbrfc
Back to top
View user's profile
brentl



Joined: 20 Jul 2004
Posts: 108

PostPosted: Fri Oct 14, 2005 11:45 am    Post subject: Reply with quote

I guess first thing make sure you have read and write permissions on where you expect the file to be temporarily written.

- Brent
Back to top
View user's profile
brentl



Joined: 20 Jul 2004
Posts: 108

PostPosted: Fri Oct 14, 2005 11:57 am    Post subject: Reply with quote

I guess first thing make sure you have read and write permissions on where you expect the file to be temporarily written.

- Brent
Back to top
View user's profile
mbrfc



Joined: 14 Oct 2005
Posts: 2

PostPosted: Fri Oct 14, 2005 1:49 pm    Post subject: Reply with quote

brentl wrote:
I guess first thing make sure you have read and write permissions on where you expect the file to be temporarily written.

- Brent


I really don't know where to expect the temp. file to be written. The program is on a mounted file system, so permissions should be exactly the same... unless it is trying to create a temp file in some local system folder.

How can I know where this file may be created?
(I am not a highly experienced Fortran programmer)
Back to top
View user's profile
brentl



Joined: 20 Jul 2004
Posts: 108

PostPosted: Wed Oct 19, 2005 11:51 am    Post subject: Reply with quote

Hi,

Sorry for the delay.

The location of the scratch file is based on this algorithm:

If the environment variable TMPDIR is set, use that
Otherwise, if the environment variable TMP is set, use that,
Otherwise, try the path prefix P_tmpdir defined in stdio.h,
Otherwise, use /tmp.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group