Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
6956 Discussions

Error in example program for MKL_GET_VERSION_STRING in MKL reference

mecej4
Honored Contributor III
646 Views

The MKL Reference contains a short example program for using MKL_GET_VERSION_STRING (Fortran callable MKL routine):

program mkl_get_version_string

character*198  buf

call mkl_get_version_string(buf)
write(*,'(a)') buf

end

Please correct the program by changing the first line -- the program name cannot be the same as the name of a subroutine that it calls.

T:\MKLITSOL>ifort mklver.f90
Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.2.0 Build 20210228_000000
Copyright (C) 1985-2021 Intel Corporation.  All rights reserved.

mklver.f90(5): error #6413: This global name is invalid in this context.   [MKL_GET_VERSION_STRING]
call mkl_get_version_string(buf)
-----^
compilation aborted for mklver.f90 (code 1)
0 Kudos
1 Solution
3 Replies
Gennady_F_Intel
Moderator
627 Views

Thanks, mecej4. You are right. We will fix that.

0 Kudos
Gennady_F_Intel
Moderator
542 Views

The issue is closing and we will no longer respond to this thread. If you require additional assistance from Intel, please start a new thread. Any further interaction in this thread will be considered community only.


0 Kudos
Reply