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

Coarray vs optimization

Lei-D
Beginner
336 Views

Hallo,

I am tring to add coarray into my old code.

 

IF (this_image() == 1) THEN

     ! Run old bigger code here

     ! Try to change some computing into coarray

END IF

 

compiler option:

/nologo /debug:full /Od /Qcoarray:shared /warn:interfaces /module:"x64\Debug\\" /object:"x64\Debug\\" /traceback /check:bounds /check:stack /libs:dll /threads /dbglibs /c

 

The executing time is 3 to 4 times more when using coarray than using optimization with option /o2. I think all threads are used in option /Qcoarray:shared, and extra optimization could not work.

 

How should I use optimization in the most of the place, and use the coarray in the place which I wanted, as MPI?

 

Regards 

0 Kudos
0 Replies
Reply