- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ifort myprog.f -L$MKLPATH -I$MKLINCLUDE
$MKLPATH/libmkl_intel_lp64.a $MKLPATH/libmkl_sequential.a
$MKLPATH/libmkl_core.a $MKLPATH/libmkl_intel_lp64.a
$MKLPATH/libmkl_sequential.a $MKLPATH/libmkl_core.a -lpthread
Error msg is :
ifort: error #10236: File not found: '/libmkl_core.a'
ifort: error #10236: File not found: '/libmkl_intel_lp64.a'
ifort: error #10236: File not found: '/libmkl_sequential.a'
ifort: error #10236: File not found: '/libmkl_core.a'
Undefined symbols:
"_dgetrf_", referenced from:
_MAIN__ in iforttH1bZs.o
ld: symbol(s) not found
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ifort myprog.f -L$MKLPATH -I$MKLINCLUDE
$MKLPATH/libmkl_intel_lp64.a $MKLPATH/libmkl_sequential.a
$MKLPATH/libmkl_core.a $MKLPATH/libmkl_intel_lp64.a
$MKLPATH/libmkl_sequential.a $MKLPATH/libmkl_core.a -lpthread
Error msg is :
ifort: error #10236: File not found: '/libmkl_core.a'
ifort: error #10236: File not found: '/libmkl_intel_lp64.a'
ifort: error #10236: File not found: '/libmkl_sequential.a'
ifort: error #10236: File not found: '/libmkl_core.a'
Undefined symbols:
"_dgetrf_", referenced from:
_MAIN__ in iforttH1bZs.o
ld: symbol(s) not found
Hi,
Seems you do not set your $MKLPATH environment variable from your script file, so that the actual option passing to compiler is /libmkl... which cannot be recognized.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Seems you do not set your $MKLPATH environment variable from your script file, so that the actual option passing to compiler is /libmkl... which cannot be recognized.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Right, you can define them by enter command
export MKLINLCUDE="/opt/intel/Compiler/11.1/058/Frameworks/mkl/Headers"
export MKLPATH="/opt/intel/Compiler/11.1/058/Frameworks/mkl/lib/em64t"
or
replace the $MKLINCLUDE and $MKLPATH by${MKLROOT}/INCLUDE and ${MKLROOT}/lib/em64t in command line.
Just for your information:
MKL provide some example codes under "examples" directory, you can test it.
for example,
>cd /opt/intel/Compiler/11.1/046/Frameworks/mkl/examples/lapack (i'm using compiler 11.1.046 version)
>make libem64t function=dgetrf
make dgetrfx.res EXT=a _IA=em64t PLATF=em64t RES_EXT=lib
mkdir -p ./_results/intel_lp64_parallel_em64t_lib
ifort -w source/dgetrfx.f "/opt/intel/Compiler/11.1/046/Frameworks/mkl/lib/em64t"/libmkl_intel_lp64.a "/opt/intel/Compiler/11.1/046/Frameworks/mkl/lib/em64t"/libmkl_intel_thread.a "/opt/intel/Compiler/11.1/046/Frameworks/mkl/lib/em64t"/libmkl_core.a "/opt/intel/Compiler/11.1/046/Frameworks/mkl/lib/em64t"/libmkl_intel_thread.a "/opt/intel/Compiler/11.1/046/Frameworks/mkl/lib/em64t"/libmkl_core.a "/opt/intel/Compiler/11.1/046/Frameworks/mkl/lib/em64t"/libmkl_intel_thread.a "/opt/intel/Compiler/11.1/046/Frameworks/mkl/lib/em64t"/libmkl_core.a -L"/opt/intel/Compiler/11.1/046/Frameworks/mkl/lib/em64t" -liomp5 lib/libaux_em64t_intel.a -lpthread -o _results/intel_lp64_parallel_em64t_lib/dgetrfx.out
and run it
> export
DYLD_LIBRARY_PATH="/opt/intel/Compiler/11.1/046/Frameworks/mkl/lib/em64t":/opt/intel/Compiler/11.1/046/lib:/opt/intel/Compiler/11.1/046/lib/intel64:/opt/intel/Compiler/11.1/046/Frameworks/mkl/lib/em64t; _results/intel_lp64_parallel_em64t_lib/dgetrfx.out DGETRF Example Program Results
Details of factorization
1 2 3 4
1 5.2500 -2.9500 -0.9500 -3.8000
2 0.3429 3.8914 2.3757 0.4129
3 0.3010 -0.4631 -1.5139 0.2948
4 -0.2114 -0.3299 0.0047 0.1314
IPIV
2 2 3 4
Regards,
Ying
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page