elemental functions for Fortan?

elemental functions for Fortan?

Imagen de eimunic

Hello, is there a FORTRAN-keyword similar to the __attribute__((vector)) of __declspec(vector) in C/C++, which automatically creates a vectorized version of my function? Best, eimunic

publicaciones de 2 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.
Imagen de Steve Lionel (Intel)

Fortran has elemental functions - you precede the FUNCTION keyword with the keyword ELEMENTAL. This is not really the same as __declspec(vector), but the Intel Fortran compiler is very good about vectorizing array and loop operations.

If you have further questions about Intel Fortran, please ask in one of our Fortran forum sections.

Steve

Inicie sesión para dejar un comentario.