- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
For applying the MKL memory management, I have used the external functions: mkl_malloc, mkl_memstat, and mkl_free, in my Fortran program in Linux.
I write these command lines in terminal:
MKL_LIBRARY_PATH=/opt/intel/mkl/9.1.023/lib/32
MKL_INCLUDE_PATH=/opt/intel/mkl/9.1.023/include
ifort -c my_program.for -L MKL_LIBRARY_PATH -I MKL_INCLUDE_PATH -lmkl_lapack -lmkl_ia32 -lguide -lpthread
But after this command line:
ifort -o my_prog my_program.o -L MKL_LIBRARY_PATH -I MKL_INCLUDE_PATH -lmkl_lapack -lmkl_ia32 -lguide -lpthread
I have this message:
undefined reference 'mkl_malloc_'
undefined reference 'mkl_memstat_'
undefined reference 'mkl_free_'
Has anyone have this problem?
Thanks
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - nansal
Hi,
For applying the MKL memory management, I have used the external functions: mkl_malloc, mkl_memstat, and mkl_free, in my Fortran program in Linux.
I write these command lines in terminal:
MKL_LIBRARY_PATH=/opt/intel/mkl/9.1.023/lib/32
MKL_INCLUDE_PATH=/opt/intel/mkl/9.1.023/include
ifort -c my_program.for -L MKL_LIBRARY_PATH -I MKL_INCLUDE_PATH -lmkl_lapack -lmkl_ia32 -lguide -lpthread
But after this command line:
ifort -o my_prog my_program.o -L MKL_LIBRARY_PATH -I MKL_INCLUDE_PATH -lmkl_lapack -lmkl_ia32 -lguide -lpthread
I have this message:
undefined reference 'mkl_malloc_'
undefined reference 'mkl_memstat_'
undefined reference 'mkl_free_'
Has anyone have this problem?
Thanks
For applying the MKL memory management, I have used the external functions: mkl_malloc, mkl_memstat, and mkl_free, in my Fortran program in Linux.
I write these command lines in terminal:
MKL_LIBRARY_PATH=/opt/intel/mkl/9.1.023/lib/32
MKL_INCLUDE_PATH=/opt/intel/mkl/9.1.023/include
ifort -c my_program.for -L MKL_LIBRARY_PATH -I MKL_INCLUDE_PATH -lmkl_lapack -lmkl_ia32 -lguide -lpthread
But after this command line:
ifort -o my_prog my_program.o -L MKL_LIBRARY_PATH -I MKL_INCLUDE_PATH -lmkl_lapack -lmkl_ia32 -lguide -lpthread
I have this message:
undefined reference 'mkl_malloc_'
undefined reference 'mkl_memstat_'
undefined reference 'mkl_free_'
Has anyone have this problem?
Thanks
a few things: (a) your version is too old. I believe the memory management was introduced with 10.0 update 2 (b) you need INCLUDE 'mkl_service.fi' statement in your code.
A.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - ArturGuzik
Hi,
a few things: (a) your version is too old. I believe the memory management was introduced with 10.0 update 2 (b) you need INCLUDE 'mkl_service.fi' statement in your code.
A.
a few things: (a) your version is too old. I believe the memory management was introduced with 10.0 update 2 (b) you need INCLUDE 'mkl_service.fi' statement in your code.
A.
I'm using MKL version 10.0 update 2 but without the statement of the (include 'mkl_service.fi'), since there isn't in the include file. Now, I don't have the previous problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
and for C??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
MKL 10.0 is a major release which introduced layered model of libraries. So, link line is very different with MKL 9.1 release.
Please try http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page