- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Hi,
We are trying to compile and run a large simulation system on our linux cluster system.
Linux ---
Linux yossarian.physics.usyd.edu.au 2.6.9-78.0.8.ELsmp #1 SMP Wed Nov 5 07:14:58 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
Intel Fortran Compilers 10.1 64bit ---
Compiling option 1 (double precision for real variables):
-c -02 -r8 -w -g -traceback -check all -heap-arrays -fp-stack-check
Compiling option 2 (single precision for real variables):
-c -02 -w -g -traceback -check all -heap-arrays -fp-stack-check
When we run the system, we came across such warning,
forrtl: warning (402): fort: (1): In call to SC_MAXVAL_BLK, an array temporary was created for argument #2
with compiling option 1, the returned value of function SC_MAXVAL_BLK is 2.552025490808403E-006
with compiling option 2, the returned value of function SC_MAXVAL_BLK is 8.5516567E-06
we are wondering why there is such significant difference between the two figures?
Thanks!
Sue
- Etiquetas:
- Intel® Fortran Compiler
Enlace copiado
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
If single precision accuracy is important, you may want to set -fp-model precise -assume protect_parens, or, for somewhat better performance, -assume protect_parens -prec-div -prec-sqrt.
The array temporary warning has to do with performance, not accuracy.
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
If single precision accuracy is important, you may want to set -fp-model precise -assume protect_parens, or, for somewhat better performance, -assume protect_parens -prec-div -prec-sqrt.
The array temporary warning has to do with performance, not accuracy.
Hi,
we ran the same case but with different precisions (double and single) for real variables.
we expect that at least the first digit of the returned values should be same.
Sue
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado

- Suscribirse a un feed RSS
- Marcar tema como nuevo
- Marcar tema como leído
- Flotar este Tema para el usuario actual
- Favorito
- Suscribir
- Página de impresión sencilla