- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
---------------------------------------
program copy_main
implicit none
real x(10), y(10)
integer n, incx, incy, i
n = 3
incx = 3
incy = 1
do i = 1, 10
x(i) = i
end do
call scopy (n, x, incx, y, incy)
print*,'Y=',(y(i),i=1,n)
end program
---------------------------------------
I've set the "Header Search Paths" to/opt/intel/Compiler/11.0/064/Frameworks/mkl/Headers ,
"Library Search Paths" to/opt/intel/Compiler/11.0/064/Frameworks/mkl/Libraries/em64t , and
"Other Linker Flags" to-lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread .
But warnings occurred as following, can anyone help me solve this problem? Thanks a lot.
warning #11009: file format not recognized for /opt/intel/Compiler/11.0/064/Frameworks/mkl/Libraries/em64t/libmkl_intel_lp64.dylib
warning #11009: file format not recognized for /opt/intel/Compiler/11.0/064/Frameworks/mkl/Libraries/em64t/libmkl_core.dylib
warning #11009: file format not recognized for /opt/intel/Compiler/11.0/064/Frameworks/mkl/Libraries/em64t/libmkl_intel_thread.dylib
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Hi paladinchin
It looks the compiler version is for 32bit application in your Xcode and is for 64bit application in your command line enviroment.
In command line, could you please try the command?
$ ifort -V
ifort -V
Intel Fortran Compiler Professional for applications running on Intel 64, Version 11.0 Build 20081105 Package ID: m_cprof_p_11.0.056
Copyright (C) 1985-2008 Intel Corporation. All rights reserved.
If it show " running on Intel 64", thenthe compileris supposed for 64bit application.
Whatkind ofapplication do you want to build?
You caneither
to change the compiler to32bit compilerby command
$source /opt/intel/Compiler/11.0/056/bin/ifortvars.sh ia32
(my test is 056 version, youcan change to 064)
or change the library to 64bit library
$ifort dot.f90 -L/opt/intel/Compiler/11.0/056/Frameworks/mkl/lib/em64t/ -I$INCLUDE -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread
In Xcode enviroment, ifLibrary not loaded,the library path is not in search path of Xcode environment. Please add DYLD_LIBRARY_PATH environment variable in the Xcode environment. here isaexample
Or
You may try tolink static MKLlibraryfirst , for example,in Other Linker Flags,
add/opt/intel/Compiler/11.0/056/Frameworks/mkl/32/libmkl_intel.a
/opt/intel/Compiler/11.0/056/Frameworks/mkl/32/libmkl_intel_thread.a
/opt/intel/Compiler/11.0/056/Frameworks/mkl/32/libmkl_core.a
/opt/intel/Compiler/11.0/056/Frameworks/mkl/32/libmkl_intel_thread.a
/opt/intel/Compiler/11.0/056/Frameworks/mkl/32/libmkl_core.a
/opt/intel/Compiler/11.0/056/lib/libiomp5.a
(Please notes, libiomp5.* were locatedin Compiler lib directory).
and see if it works.
Best Regards,
Ying
Link kopiert
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
You need to check what compiler you are using.
It seems that you are trying to compile 64-bit binaries by using 32-bit compiler and it may the cause of the problem. 32-bit libraries cannot be linked against 64-bit binaries.
/gif
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
You need to check what compiler you are using.
It seems that you are trying to compile 64-bit binaries by using 32-bit compiler and it may the cause of the problem. 32-bit libraries cannot be linked against 64-bit binaries.
The Debugger has exited due to signal 5 (SIGTRAP).The Debugger has exited due to signal 5 (SIGTRAP).
Please help me.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Have the environment variables set up properly?
Please check your environment variables.
First of all, please check - LD_LIBRARY_PATH.
/gif
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Have the environment variables set up properly?
Please check your environment variables.
First of all, please check - LD_LIBRARY_PATH
"echo $LD_LIBRARY_PATH"
in the terminal window, and it returned
"LD_LIBRARY_PATH: Undefined variable."
I set thoseenvironment variablesby typing
"./mklvars32.sh" and "./mklvars32.csh"
and it seemed to fail.
Could someone tell me how to set the environment variables?
Thanks a lot.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
/gif
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Ops, i've forget that the original question was related the Xcode ( the previous response was about command line ).I am apologizing for that.
I think the article:" Compiling and linking MKL with Xcode*" http://software.intel.com/en-us/articles/intel-math-kernel-library-for-mac-os-compiling-and-linking-with-xcode/
should helps you to do all settings for linking MKL into Xcode development environment
--Gennady
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Ops, i've forget that the original question was related the Xcode ( the previous response was about command line ).I am apologizing for that.
I think the article:" Compiling and linking MKL with Xcode*" http://software.intel.com/en-us/articles/intel-math-kernel-library-for-mac-os-compiling-and-linking-with-xcode/
should helps you to do all settings for linking MKL into Xcode development environment
--Gennady
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Hi paladinchin
It looks the compiler version is for 32bit application in your Xcode and is for 64bit application in your command line enviroment.
In command line, could you please try the command?
$ ifort -V
ifort -V
Intel Fortran Compiler Professional for applications running on Intel 64, Version 11.0 Build 20081105 Package ID: m_cprof_p_11.0.056
Copyright (C) 1985-2008 Intel Corporation. All rights reserved.
If it show " running on Intel 64", thenthe compileris supposed for 64bit application.
Whatkind ofapplication do you want to build?
You caneither
to change the compiler to32bit compilerby command
$source /opt/intel/Compiler/11.0/056/bin/ifortvars.sh ia32
(my test is 056 version, youcan change to 064)
or change the library to 64bit library
$ifort dot.f90 -L/opt/intel/Compiler/11.0/056/Frameworks/mkl/lib/em64t/ -I$INCLUDE -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread
In Xcode enviroment, ifLibrary not loaded,the library path is not in search path of Xcode environment. Please add DYLD_LIBRARY_PATH environment variable in the Xcode environment. here isaexample
Or
You may try tolink static MKLlibraryfirst , for example,in Other Linker Flags,
add/opt/intel/Compiler/11.0/056/Frameworks/mkl/32/libmkl_intel.a
/opt/intel/Compiler/11.0/056/Frameworks/mkl/32/libmkl_intel_thread.a
/opt/intel/Compiler/11.0/056/Frameworks/mkl/32/libmkl_core.a
/opt/intel/Compiler/11.0/056/Frameworks/mkl/32/libmkl_intel_thread.a
/opt/intel/Compiler/11.0/056/Frameworks/mkl/32/libmkl_core.a
/opt/intel/Compiler/11.0/056/lib/libiomp5.a
(Please notes, libiomp5.* were locatedin Compiler lib directory).
and see if it works.
Best Regards,
Ying
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
program main
implicit none
integer, parameter :: n = 2
integer :: ilo, ihi, lda=n, lwork=n, info, ii
real*8 :: a(n,n), ao(n,n), work(n), tau(n)
ilo=1
ihi=n
a(1,1)=1
a(1,2)=2
a(2,1)=4
a(2,2)=5
ao=a
call dgehrd(n, ilo, ihi, a, lda, tau, work, lwork, info)
call dorghr(n, ilo, ihi, a, lda, tau, work, lwork, info)
write(*,*) ao
write(*,*) a
end program
call gehrd(a, tau ,ilo ,ihi,info)
call orghr(a, tau ,ilo ,ihi ,info)
a warning occurs:symbol(s) not found
Please tell me if I forget any linking steps.
Thank you.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
program main
implicit none
integer, parameter :: n = 2
integer :: ilo, ihi, lda=n, lwork=n, info, ii
real*8 :: a(n,n), ao(n,n), work(n), tau(n)
ilo=1
ihi=n
a(1,1)=1
a(1,2)=2
a(2,1)=4
a(2,2)=5
ao=a
call dgehrd(n, ilo, ihi, a, lda, tau, work, lwork, info)
call dorghr(n, ilo, ihi, a, lda, tau, work, lwork, info)
write(*,*) ao
write(*,*) a
end program
call gehrd(a, tau ,ilo ,ihi, info)
call orghr(a, tau ,ilo ,ihi ,info)
a warning occurs:symbol(s) not found
Please tell me if I forget any linking steps.
Thank you.
- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite