Hi,
I'm trying to test a simple program that uses OpenMP directives along with the threaded MKL library. However, I am getting a runtime error just before the program exits. Below is the error. I've also attached my code and the makefile. I'm not quite sure if there a problem with the libraries I'm linking to. I've set the environment variable OMP_NUM_THREADS=1. I am testing the code on Intel 64 architecture with SUSE Linux Enterprise Server 9.
*** glibc detected *** ./p1: munmap_chunk(): invalid pointer: 0x000000001dc5f0a0 ***
======= Backtrace: =========
/lib64/libc.so.6(cfree+0x166)[0x352d472856]
./p1[0x41560d]
./p1[0x4146c8]
./p1[0x440df7]
./p1[0x4071ae]
./p1[0x403bd1]
/lib64/libc.so.6(__libc_start_main+0xf4)[0x352d41d994]
./p1[0x403ad9]
======= Memory map: ========
00400000-004bd000 r-xp 00000000 00:19 3288420770 /home/kkarco2/FortranPrograms/makefileExample/p1
006bc000-006c4000 rw-p 000bc000 00:19 3288420770 /home/kkarco2/FortranPrograms/makefileExample/p1
I've removed some of the information for the sake of making my post smaller.
Here is my makefile makefile
Here is my mainfile main.f90
And here is an additional file add.f90
Any help is appreciated.
I'm trying to test a simple program that uses OpenMP directives along with the threaded MKL library. However, I am getting a runtime error just before the program exits. Below is the error. I've also attached my code and the makefile. I'm not quite sure if there a problem with the libraries I'm linking to. I've set the environment variable OMP_NUM_THREADS=1. I am testing the code on Intel 64 architecture with SUSE Linux Enterprise Server 9.
*** glibc detected *** ./p1: munmap_chunk(): invalid pointer: 0x000000001dc5f0a0 ***
======= Backtrace: =========
/lib64/libc.so.6(cfree+0x166)[0x352d472856]
./p1[0x41560d]
./p1[0x4146c8]
./p1[0x440df7]
./p1[0x4071ae]
./p1[0x403bd1]
/lib64/libc.so.6(__libc_start_main+0xf4)[0x352d41d994]
./p1[0x403ad9]
======= Memory map: ========
00400000-004bd000 r-xp 00000000 00:19 3288420770 /home/kkarco2/FortranPrograms/makefileExample/p1
006bc000-006c4000 rw-p 000bc000 00:19 3288420770 /home/kkarco2/FortranPrograms/makefileExample/p1
I've removed some of the information for the sake of making my post smaller.
Here is my makefile makefile
Here is my mainfile main.f90
And here is an additional file add.f90
Any help is appreciated.
链接已复制
2 回复数
Quoting Gennady Fedorov (Intel)
when you link with ILP64 interfaces, Please usethe /4I8 compiler option for Fortran.
smth like:ifort /4I8 /I ....
--Gennady