Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
7234 Discussions

What fortran code can link to mkl library and How to link?

zy_8303163_com
Beginner
781 Views

Hi,

I am a new user of mkl library , I have installed it, but I don't know how to configure itand usewhatfortran code to test .

I find a lot of .f filesin the directory /opt/intel/mkl/10.0.4.023/examples/... and /opt/intel/mkl/10.0.4.023/tests/...,. Could I use them to test? If not, anyone could give me afortrancode or c code to test it? By the way,could you give me the detailed command oflinkingit to mkllibrary? Thanks in advance!

0 Kudos
2 Replies
zy_8303163_com
Beginner
781 Views
Quoting - zy_8303163.com

Hi,

I am a new user of mkl library , I have installed it, but I don't know how to configure itand usewhatfortran code to test .

I find a lot of .f filesin the directory /opt/intel/mkl/10.0.4.023/examples/... and /opt/intel/mkl/10.0.4.023/tests/...,. Could I use them to test? If not, anyone could give me afortrancode or c code to test it? By the way,could you give me the detailed command oflinkingit to mkllibrary? Thanks in advance!


Hi,

Anyone knows this? I indeed need it. who can give me some help? Thanks a lot!!!

0 Kudos
Gennady_F_Intel
Moderator
781 Views

Hi,

1. Could I use them to test?. Yes you can use all examples you can find into $MKLROOT/examples for testing, education and etc.

2. If not, anyone could give me afortrancode or c code to test it?

FYI: you can find there ~ 900 C examples and ~ 1200 f77 and f90 examples.

3. could you give me the detailed command oflinkingit to mkllibrary?

Go to, for example, into example/solver/ folder.

You can find there makefie

Please open the makefile and read it.

This is snip from the makefile:

help:

@echo Usage: make {lib32/lib64/libem64t} [function=name]

@echo [compiler=compiler_name] [interface=interface_name] [threading=threading_name]

@echo

@echo name - function name. Please see macro SOLVER

@echo

@echo compiler_name - can be gnu or intel. Default value is intel.

@echo Intel Compilers as default.

@echo If compiler=gnu then GNU gfortran compiler will be used.

@echo To use g77 add FC=g77. FC=g77 cannot be used with ilp64 interface.

@echo

@echo interface_name - can be lp64 or ilp64 for em64t and ia64. Default value is lp64.

@echo

@echo threading_name - can be parallel or sequential. Default value is parallel.

##------------------------------------------------------------------------------

## examples of using:

##

## make lib32 function=dss_sym_c - build by Intel C Compiler and Intel Fortran Compiler (as default) and

## run DSS_SYM example for 32-bit applications,

## static linking

##

## make lib64 compiler=gnu - build by GNU compilers and run all examples of MKL

## for Intel Itanium processor family applications, static

## linking

##------------------------------------------------------------------------------

So, I hope it will help you to build the tests and evaluate the MKL.

--Gennady

0 Kudos
Reply