PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

How to set stdout buffer to zero

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
tuccillo



Joined: 18 Dec 2004
Posts: 1

PostPosted: Sat Dec 18, 2004 2:35 pm    Post subject: How to set stdout buffer to zero Reply with quote

Anyone know how to set the stdout buffer to zero size so that stdout goes immediately to disk?
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 5952
Location: The Portland Group Inc.

PostPosted: Mon Dec 20, 2004 1:09 pm    Post subject: Reply with quote

In C on a UNIX system, you can change the buffer size with a call to the stdio.h subroutine "void setbuf(FILE *fp, char *buf)" and set buf to a NULL pointer. Also, in C and Fortran you could use "fflush" to flush the buffer.

- Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling 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