Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

Problem with MKL in eclipse

hanxc
Beginner
482 Views
Hello, I'm trying to use gels subroutine in mkl to solve a least square question. I installed mkl according to the userguide and I tested the example gels.f90 using

ifort gels.f90 -L$MKLPATH -I$MKLINCLUDE -I$MKLINCLUDE/32 -lmkl_lapack95
-Wl,--start-group $MKLPATH/libmkl_intel.a
$MKLPATH/libmkl_intel_thread.a $MKLPATH/libmkl_core.a -Wl,--end-group
-liomp5 -lpthread

But I can't build this example in eclipse + photran plugin.
How can I setup the linker option in eclipse?
Could anybody please help me with that?

Thanks~~
0 Kudos
2 Replies
Gennady_F_Intel
Moderator
482 Views
Quoting - hanxc
Hello, I'm trying to use gels subroutine in mkl to solve a least square question. I installed mkl according to the userguide and I tested the example gels.f90 using

ifort gels.f90 -L$MKLPATH -I$MKLINCLUDE -I$MKLINCLUDE/32 -lmkl_lapack95
-Wl,--start-group $MKLPATH/libmkl_intel.a
$MKLPATH/libmkl_intel_thread.a $MKLPATH/libmkl_core.a -Wl,--end-group
-liomp5 -lpthread

But I can't build this example in eclipse + photran plugin.
How can I setup the linker option in eclipse?
Could anybody please help me with that?

Thanks~~

xhan, what compiler version do you use?









0 Kudos
Artem_V_Intel
Employee
482 Views
Quoting - hanxc
Hello, I'm trying to use gels subroutine in mkl to solve a least square question. I installed mkl according to the userguide and I tested the example gels.f90 using

ifort gels.f90 -L$MKLPATH -I$MKLINCLUDE -I$MKLINCLUDE/32 -lmkl_lapack95
-Wl,--start-group $MKLPATH/libmkl_intel.a
$MKLPATH/libmkl_intel_thread.a $MKLPATH/libmkl_core.a -Wl,--end-group
-liomp5 -lpthread

But I can't build this example in eclipse + photran plugin.
How can I setup the linker option in eclipse?
Could anybody please help me with that?

Thanks~~

Hello,

IMHO the simplest way to build the MKL example using Eclipse IDE is using Makefile-based Photran project. For projects with automatically managed makefiles you should use Project>Properties>Fortran Build>Settings dialog page. At this page you should have ability to change Compiler and Linker options.

Thanks,
Art
0 Kudos
Reply