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

error #8412: DO loop preceded by directive SIMD must not contain EXIT statements

Saidani__Tarik
Beginner
466 Views

Hi,

I have this error message when I try to compile some straightforward code using ifort 13.0.1 20121010. This error does not occur when using:

ifort 12.1.0 20110811. The exit statement if clearly not within the simd Do loop

Please see source code below:

!dec$ simd reduction(+:nfftnormi)
               do k1=k1_begin, k1_end
                  nfftnormi = nfftnormi + sqrt(real(nfftsp(k1,k2,k3,k4))**2+aimag(nfftsp(k1,k2,k3,k4))**2)
               end do
            end do
         end do
      end do

      rei = nfftnormi / nfftnorm0
      if (rei < remin) then
         reminiter = iter
         remin = rei
      endif
      re(iter) = rei

!--   convergence criteria (absolute)
      if (rei < stopresidual) then
         exit
      endif

Any idea ? it seems like a bug in the newer version

Regards,

Tarik

0 Kudos
3 Replies
Steven_L_Intel1
Employee
466 Views

Since you didn't provide a complete source I can't test, but the current version is 15.0. What happens in that version?

0 Kudos
Saidani__Tarik
Beginner
466 Views

Hi Steve,

Sorry for the late reply. The problem does not occur in version 15.0 indeed. Thus it must have been a bug (tried versions 13 and 14)

Thanks for your help.

Tarik

0 Kudos
Steven_L_Intel1
Employee
466 Views

Thanks for letting me know.

0 Kudos
Reply