Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29249 Discussions

primary operations (+ * / -) parallel or serial?

ehsan_m_
Beginner
464 Views

Hi

I am a newbie in fortran programming. I have a piece of code which is mainly constructed from elementary operations very similar to :

DO

c=a+b+d+e

f=(a*b )*e

enddo

As I compile and run it in Intel visual fortran, are these operations automatically executed in parallel on both cpu cores I have (intel core(TM) 2Duo T9600)? 

when I check cpu performance from task manager, it shows 50% cpu usage? what should I do to use both cpu cores for such operations?

thanks in advance

0 Kudos
2 Replies
TimP
Honored Contributor III
464 Views

Ifort offers auto parallel and openmp options for multicore processing.  The guides provided with Ifort are worth reading.

0 Kudos
Steven_L_Intel1
Employee
464 Views

Intrinsic operations are not automatically parallelized. You could enable automatic parallelization as a simple thing to try - the compiler will look at loops and array operations and parallelize them if it thinks it is safe and profitable. As Tim suggests, reading the documentation chapters on parallelization under "Key Features" is worthwhile.

0 Kudos
Reply