replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - Problem with FORALL
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem with FORALL

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
JohnCampbell



Joined: 16 Feb 2006
Posts: 2615
Location: Sydney

PostPosted: Wed Oct 24, 2012 8:53 am    Post subject: Problem with FORALL Reply with quote

I am having a problem with FORALL if I compile with /debug but not /OPT.
The code is basically:
Code:
      subroutine matmul_tran (A,B,C, chk, l,m,n, t, use_vector)
!
      integer*4 l,m,n,  i,j
      real*8    A(m,l), B(m,n), C(l,n), chk(l,n)
      real*4    t(2,6), err_max
      logical   use_vector
!
      real*8   Vec_Sum, ts(2), te(2)
      external Vec_Sum, err_max
!
      C = 0
        call time_step (ts)
      do i = 1,l
        do j = 1,n
          C(i,j) = dot_product (A(:,i), B(:,j))
        end do
      end do
        call time_step (te)   ;   t(:,1) = te - ts
        write (*,*) t(:,1), 't1) transpose dot_product     ', err_max (c, chk, l,n)
!
! 2) use of for_all
!
      C = 0
        call time_step (ts)
      forall (i=1:l, j=1:n)
       C(i,j) = dot_product (A(:,i), B(:,j))
      end forall
        call time_step (te)   ;   t(:,2) = te - ts
        write (*,*) t(:,2), 't2) transpose FOR ALL         ', err_max (c, chk, l,n)
!
      end


The error is "Invalid floating point operation" and it is being reported at the FORALL statement in SDBG.
I am using Ver 6.30.0
I could email the full program.

John
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8211
Location: Salford, UK

PostPosted: Wed Oct 24, 2012 11:55 am    Post subject: Reply with quote

Yes you can email the full program but I have other things that I must do first.

FORALL is nice to use but probably makes the code less optimal so you might prefer to avoid it for now.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
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 © 2001, 2005 phpBB Group