PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

Loop not vectorized: mixed data types
Goto page Previous  1, 2
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
mkcolg



Joined: 30 Jun 2004
Posts: 6215
Location: The Portland Group Inc.

PostPosted: Fri Jan 21, 2011 1:14 pm    Post subject: Reply with quote

Hi Zhenya,

Sorry I should have caught this earlier. The data size for your integer and reals must be the same as well. In other words, you need to promote integer to integer*8. (Note you can use the command line flag "-i8" to set the default kind to 8 for integers).

- Mat

Code:

% pgf90 -fast -Minfo -c test2.f90 -Minline -V11.1
MAIN:
     28, Loop not vectorized: mixed data types
     30, greenfun inlined, size=3, file test2.f90 (40)
          45, greenfun_2 inlined, size=21, file test2.f90 (54)
greenfun:
     45, greenfun_2 inlined, size=21, file test2.f90 (54)
tabu_2:
    132, Memory zero idiom, array assignment replaced by call to pgf90_mzero8
    163, mystop inlined, size=2, file test2.f90 (199)
    167, Memory zero idiom, array assignment replaced by call to pgf90_mzero8
    169, Loop not vectorized/parallelized: too deeply nested
    176, Loop not vectorized: mixed data types
    181, Generated 3 alternate versions of the loop
         Generated vector sse code for the loop
         Generated 3 prefetch instructions for the loop
    194, Loop unrolled 8 times

% pgf90 -fast -Minfo -c test2.f90 -Minline -V11.1 -i8 -Mvect=levels:5
MAIN:
     30, greenfun inlined, size=3, file test2.f90 (40)
          45, greenfun_2 inlined, size=22, file test2.f90 (54)
greenfun:
     45, greenfun_2 inlined, size=22, file test2.f90 (54)
tabu_2:
    132, Memory zero idiom, array assignment replaced by call to pgf90_mzero8
    163, mystop inlined, size=2, file test2.f90 (199)
    167, Memory zero idiom, array assignment replaced by call to pgf90_mzero8
    181, Generated 3 alternate versions of the loop
         Generated vector sse code for the loop
         Generated 3 prefetch instructions for the loop
    194, Loop unrolled 8 times
Back to top
View user's profile
Zhenya



Joined: 15 Jan 2011
Posts: 4

PostPosted: Fri Jan 28, 2011 6:35 am    Post subject: Reply with quote

Wow, I would never have guessed that. Thanks a whole lot, Mat!
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group