- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Hi all,
I try to compile a simple program on my mac os 10.5 (leopard) with ifort and MKL. My program is :
***********************************************
program MatMulTest
integer, parameter :: n = 2000
real, allocatable :: matrixA(:,:), matrixB(:,:), matrixC(:,:)
integer :: i, j
allocate(matrixA(n,n), matrixB(n,n), matrixC(n,n))
matrixA = 0.1
matrixB = 0.1
call sgemm (matrixA,matrixB,matrixC)
print *,'The sum of matrix C is',sum(matrixC)
deallocate(matrixA, matrixB, matrixC)
end program
************************************************
I have saved my prog as essai.f90 in my /Users/sebastien/Desktop
I go in the directory by
$cd /Users/sebastien/Desktop
and I compile
$ifort essai2.f90 -L/Library/Frameworks/Intel_MKL.framework/Versions/10.0.2.018/lib/em64t/ -I/Library/Frameworks/Intel_MKL.framework/Versions/10.0.2.018/include/ -lmkl_core -lmkl_intel_lp64 -lmkl_intel_thread
It compile correctly but when I try to run the prog by
$./a.out
I have the error
Macintosh:Desktop sebastien$ ./a.out dyld: Library not loaded: libmkl_core.dylib Referenced from: /Users/sebastien/Desktop/./a.out Reason: image not found
Trace/BPT trap
What's the problem??
Have a nice day,
Sbastien
I try to compile a simple program on my mac os 10.5 (leopard) with ifort and MKL. My program is :
***********************************************
program MatMulTest
integer, parameter :: n = 2000
real, allocatable :: matrixA(:,:), matrixB(:,:), matrixC(:,:)
integer :: i, j
allocate(matrixA(n,n), matrixB(n,n), matrixC(n,n))
matrixA = 0.1
matrixB = 0.1
call sgemm (matrixA,matrixB,matrixC)
print *,'The sum of matrix C is',sum(matrixC)
deallocate(matrixA, matrixB, matrixC)
end program
************************************************
I have saved my prog as essai.f90 in my /Users/sebastien/Desktop
I go in the directory by
$cd /Users/sebastien/Desktop
and I compile
$ifort essai2.f90 -L/Library/Frameworks/Intel_MKL.framework/Versions/10.0.2.018/lib/em64t/ -I/Library/Frameworks/Intel_MKL.framework/Versions/10.0.2.018/include/ -lmkl_core -lmkl_intel_lp64 -lmkl_intel_thread
It compile correctly but when I try to run the prog by
$./a.out
I have the error
Macintosh:Desktop sebastien$ ./a.out dyld: Library not loaded: libmkl_core.dylib Referenced from: /Users/sebastien/Desktop/./a.out Reason: image not found
Trace/BPT trap
What's the problem??
Have a nice day,
Sbastien
링크가 복사됨
5 응답
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Small correction: libmkl_core.dylib should be visible in the DYLD_LIBRARY_PATH environment variable.
Andrey
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
echo $DYLD_LIBRARY_PATH
as output you should see PATH to the place where MKL is installed. If you will not see it, justadd needed path to the DYLD_LIBRARY_PATH (export DYLD_LIBRARY_PATH=_path_to_the_mkl_libraries_foleder_:$DYLD_LIBRARY_PATH) and run your executable again.
Andrey