Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

getcwd issue in ifort 17.0.5

Scott_L_
New Contributor I
111 Views

was there a problem calling getcwd  in intel fortran 17.0.5 on Linux, maybe opening file handles and not closing them?  Maybe fixed in 17.1 since we have not had problems with Linux 17.1?

 

I am seeing strace output calling getcwd with open but not close.

getcwd("/pw/data/DDS/m313133/acsys/v_mapstart/at/BA_1B/working_1_iter", 4096) = 62
stat("/pw/data/DDS/m313133/acsys/v_mapstart/at/BA_1B/working_1_iter/cfdstagline.map", {st_mode=S_IFREG|0770, st_size=3813, ...}) = 0
open(".", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
getdents(4, /* 73 entries */, 32768)    = 2528
stat("./cfdstagline.map", {st_mode=S_IFREG|0770, st_size=3813, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
open(".", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 EMFILE (Too many open files)
getcwd("/pw/data/DDS/m313133/acsys/v_mapstart/at/BA_1B/working_1_iter", 4096) = 62
stat("/pw/data/DDS/m313133/acsys/v_mapstart/at/BA_1B/working_1_iter/cfdprof.map", {st_mode=S_IFREG|0770, st_size=71298, ...}) = 0
open(".", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 EMFILE (Too many open files)

0 Kudos
0 Replies
Reply