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

Example C-43 of MKL Reference Manual

Boris_B_
Beginner
493 Views
I'm having a problem running an example from the MKL Reference Manual:

MKL Reference Manual, August 2009, Chapter 14. Nonlinear Optimization Problem Solvers, p.3227, there is a link to a Fortran Example C-43.

1. I cannot find this example in the MKl distribution that came with Intel Fortran 11.1 076.
2. I therefore copied and pasted this program from the Reference Manual into a file test.f90
3. Looks to me that Example C-43 has a typo "R1_R2" in "DTRNLSP_GET (HANDLE, ITER, ST_CR, R1_R2)"
4. I changed "R1_R2" to "R1, R2"
5. ifort test.f90 -lmkl_intel_lp64
6. a.out

dyld: Symbol not found: _mkl_dft_commit_descriptor_d_c2c_1d_omp
Referenced from: /opt/intel/Compiler/11.1/076/Frameworks/mkl/lib/em64t/libmkl_intel_lp64.dylib
Expected in: flat namespace

What does this output mean and how do I fix it? Many thanks for any advice.




0 Kudos
1 Reply
Gennady_F_Intel
Moderator
493 Views
I'm having a problem running an example from the MKL Reference Manual:

MKL Reference Manual, August 2009, Chapter 14. Nonlinear Optimization Problem Solvers, p.3227, there is a link to a Fortran Example C-43.

1. I cannot find this example in the MKl distribution that came with Intel Fortran 11.1 076.
2. I therefore copied and pasted this program from the Reference Manual into a file test.f90
3. Looks to me that Example C-43 has a typo "R1_R2" in "DTRNLSP_GET (HANDLE, ITER, ST_CR, R1_R2)"
4. I changed "R1_R2" to "R1, R2"
5. ifort test.f90 -lmkl_intel_lp64
6. a.out

dyld: Symbol not found: _mkl_dft_commit_descriptor_d_c2c_1d_omp
Referenced from: /opt/intel/Compiler/11.1/076/Frameworks/mkl/lib/em64t/libmkl_intel_lp64.dylib
Expected in: flat namespace

What does this output mean and how do I fix it? Many thanks for any advice.





Hi Boris,
1) Thanks for pointing us with the misprint of documentation - we will fix it
2) You linked only one library ("-lmkl_intel_lp64") and that's not right. Please see mkl linker adviser to find out the list of recomended libs.
3) we have 2 Fortran based examples which show how to use dtrnlsp routine. You can find these examples into examplessolversources directory ( see, for example ex_nlsqp_bc_f.f ex_nlsqp_f.f files)
please, let us know if any furher problems
--Gennady

0 Kudos
Reply