- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Dear all,
Recently I migrated my Visual Fortran program into our Linux server. In Windows, I use CTIME(TIME()) to get the current date and time. However it is not working in Linux since I cann't call the statement "USE DFPORT" at the beginning. I just want to record how much time used for the computation when the program runs at Linux. Any suggestions?
Thanks!
Roy
- Marcas:
- Intel® Fortran Compiler
Link copiado
4 Respostas
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Why not use the CPU_TIME intrinsic? Or SYSTEM_CLOCK if you want wall-clock time.
You can USE IFPORT, however.
You can USE IFPORT, however.
Message Edited by Steve_Lionel on 01-19-2006 02:40 PM
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Regarding the code, how do I write it in my program to get the time?
Meanwhile I changed "USE DFPORT" to "USE IFPORT", it still gave me error messag during the compiling. I am not quite understand whether I can still use "USE XXX module" in Linux like I did in Windows.
Thanks!
Roy
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
I figured it out how to write it in the program to get the time.
I still have that question for "USE XXXmodule " in Linux.
Thanks!
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
You can use some of the modules. IFPORT is provided and should be visible to the compiler if you have set up the environment with the "source" command in the usual way.
See the Language Reference Manual for information on the Fortran standard routines CPU_TIME and SYSTEM_CLOCK.
See the Language Reference Manual for information on the Fortran standard routines CPU_TIME and SYSTEM_CLOCK.
Responder
Opções do tópico
- Subscrever fonte RSS
- Marcar tópico como novo
- Marcar tópico como lido
- Flutuar este Tópico para o utilizador atual
- Marcador
- Subscrever
- Página amigável para impressora