Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

Error message for /Qopt-matmul with /O2 without /Qparallel not meaningful

$
0
0

Hi,

I got an error in compiling a simple code under PSXE2016 update 1 and VS 2015 SP1:

program matmul_test
    use ISO_FORTRAN_ENV, only : rk => real64
    implicit none

    ! Variables
    integer                               :: i
    integer, parameter                    :: n = 2000
    real(rk)                              :: t0, t1
    real(rk), dimension(:,:), allocatable :: matrix_a, matrix_b, matrix_c

    ! Body of matmul
    print *, '--- Matmul error message test'

    allocate(matrix_a(n,n))
    allocate(matrix_b(n,n))
    allocate(matrix_c(n,n))

    ! some random values
    call random_seed()
    call random_number(matrix_a)
    call random_number(matrix_b)

    ! perform calculation
    call cpu_time(t0)
    matrix_c = matmul(matrix_a,matrix_b)
    call cpu_time(t1)
    write(*,'(a, f10.3)') ' Time for matmul        = ', t1-t0
end program matmul_test

The compiler options are:

/nologo /O2 /Qopt-matmul /module:"x64\Release\\" /object:"x64\Release\\" /Fd"x64\Release\vc140.pdb" /libs:dll /threads /c

This is the error message:

1>------ Build started: Project: matmul, Configuration: Release x64 ------
1>Compiling with Intel(R) Visual Fortran Compiler 16.0.1.146 [Intel(R) 64]...
1>matmul_test.f90
1>ifort: command line error: option '/Qopt-matmul' not supported
1>
1>Build log written to  "file://D:\02_Fortran\99_test\matmul\x64\Release\BuildLog.htm"
1>matmul - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Severity    Code    Description    Project    File    Line    Suppression State
Error        command line error: option '/Qopt-matmul' not supported        ifort   

This compile error does not lead to the conflict. '/Qopt-matmul' seems only to work if '/Qparallel' is also enabled or if /o3 is requested, which enables /Qparallel(?). The documentation does not give a hint on this. It is only said, that a minimum of /o2 is necessary to be considered.

'/Qopt-matmul=sequential' seems to be not supported anymore in PSXE 16 up1?

If I'm right with my observation, I would be happy, if the documentation and the error message would be updated.

Best regards, Johannes

 


Viewing all articles
Browse latest Browse all 3270

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>