Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

How to write file larger than 2GB?

scopio
初学者
1,013 次查看
I compiled a program using ifort 9.0 for linux. The scratch file which the program writes is very large. And the program abort when the scratch file size reaches 2.1GB. I'm wondering if this problem could be resolved by adding a flag or something else in the compliation process?

My OS is SUSE 10, i386 arch. I downloaded a file with 3.4GB, so I guess my OS support file larger than 2.1GB.
0 项奖励
5 回复数
Steven_L_Intel1
1,013 次查看
It should "just work". What is the specific version of 9.0 you have? If it is recent (9.0.032 is current), please send an example to Intel Premier Support.
0 项奖励
scopio
初学者
1,013 次查看
Thanks for the response!

I downloaded the compiler 2 days ago with such fjile name -- l_fc_c_9.0.031.tar.gz



So, I think the the versiong is 9.0.031.



I don't understant your word "just work", could you please tell me how to resolve the problem?

Message Edited by scopio on 02-07-2006 02:55 PM

0 项奖励
Steven_L_Intel1
1,013 次查看
You shouldn't need to do anything. If it doesn't work, we have a bug somewhere and you should report it to Intel Premier Support.

I know that we have tested 4GB (at least) files so I'm somewhat surprised that it doesn't work for you.
0 项奖励
per_madsen
初学者
1,013 次查看
Hi

Could the problem be related to where scratch files are located and size of the file system?

As I understand it the location of scratch files depends on the settings of environmental variables:
TMP and TEMPDIR. If both are set, the path specified by TMP is used. If neither TMP nor TEMPDIR is set, scratch files are placed in /tmp.

Per Madsen
0 项奖励
scopio
初学者
1,013 次查看
thanks a lot for your response! this problem not relate to scratch file and not the TMP varible settings. I used PGI compiler by adding "-Mlfs" flag to enable "large file support". The PGI compiled program looks fine, and produces scratch file with 33G size.

Message Edited by scopio on 02-19-2006 10:06 AM

0 项奖励
回复