For Programmers: Free Programming Magazines  


Home > Archive > Fortran > June 2004 > How to use MMX/SSE/SSE2 instructions in Intel Fortran 8.0









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to use MMX/SSE/SSE2 instructions in Intel Fortran 8.0
Ge, Steven

2004-06-30, 4:01 am

I want to optimize some fortran code.
So it is necessary to use assembly or intrinsics to rewrite some code.

In the C++, I only need to include
<xmmintrin.h>. But how could I use intrinsics in Fortran.

Thanks
Steven


Steve Lionel

2004-06-30, 3:59 pm

On Wed, 30 Jun 2004 14:00:37 +0800, "Ge, Steven" <geliang_cn@sina.com> wrote:

>I want to optimize some fortran code.
>So it is necessary to use assembly or intrinsics to rewrite some code.
>
>In the C++, I only need to include
><xmmintrin.h>. But how could I use intrinsics in Fortran.


Intel Fortran does not provide intrinsics for this purpose. Instead, just
write the Fortran code normally and use the appropriate code generation switch
-xN for Pentium 4, for example) to ask the compiler to use the extended
instructions. See the second volume of the Intel Fortran User's Guide for
MUCH more information.



Steve Lionel
Software Products Division
Intel Corporation
Nashua, NH

User communities for Intel Software Development Products
http://softwareforums.intel.com/
Intel Fortran Support
http://developer.intel.com/software/products/support/
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com