Quantcast
Channel: Intel® Software - Intel® Visual Fortran Compiler for Windows*
Viewing all articles
Browse latest Browse all 5691

internal writes lead to creation of Windows mutex handles

$
0
0

Hi,

After installing the Intel Visual Fortran Compiler 16.0 on Windows, I noticed that execution of internal write statements leads to Windows mutex handles being created for every internal write so that the number of process handles accumulates over the course of program execution (in my program to a great number). When using Intel(R) Visual Fortran Compiler 15.04, the number of handles does not increase for the same code/project.

Here is a test case that shows that reproduces on my system (Windows 7 x64). 

PROGRAM TestHandles1

    IMPLICIT NONE
    INTEGER(4) :: n
    CHARACTER(LEN=10) :: nchar, lchar
    !---------------------------------------
    DO n = 1, 100000
        WRITE(nchar,'(I0)') n
        WRITE(lchar,'(I0)') LEN_TRIM(nchar)
    ENDDO
    WRITE(*,*) "--> check number of process handles in Windows Task Manager"
    READ(*,*)

END PROGRAM TestHandles1

It does not seem to affect memory use, so I don't know if this is a bug or a feature - it seems harmless at this point. 

Best,
Andi

 


Viewing all articles
Browse latest Browse all 5691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>