- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My program is just simple, calculate inverse matrix by using mkl libraries.
I used the following ifort command to compile:
ifort -c -qopenmp -I$/openmp/intel/oneapi/mkl/2022.1.0/include/intel64/ilb64-m64 -DMKL_ILP64 -i8 -I"$/opt/intel/oneapi/mkl/2022.1.0/include" -fpp -nologo -O3 -Os -parallel -heap-arrays[0] -qopenmp testmkl.f90
ifort -o testmkl testmkl.o
The following error appears:
testmkl.o: In function `inversematrixd_': testmkl.f90:(.text+0x97):
undefined reference to `dgetrf_' testmkl.f90:(.text+0xbc):
undefined reference to `dgetri_' testmkl.o: In function `MAIN__': testmkl.f90:(.text+0x12f): undefined reference to `__kmpc_begin' testmkl.f90:(.text+0x149):
undefined reference to `__kmpc_ok_to_fork' testmkl.f90:(.text+0x17d):
undefined reference to `__kmpc_fork_call' testmkl.f90:(.text+0x1c0):
undefined reference to `__kmpc_end' testmkl.f90:(.text+0x262):
undefined reference to `__kmpc_for_static_init_8' testmkl.f90:(.text+0x2b5):
undefined reference to `__kmpc_for_static_fini'
Please help me! Sorry, I am just a beginner so please instruct me step by step!
Thank you very much!
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I solved it. Thank you very much for taking a look!
ifort -qopenmp -I$/openmp/intel/oneapi/mkl/2022.1.0/include/intel64/ilb64-m64 -DMKL_ILP64 -i8 -I"$/opt/intel/oneapi/mkl/2022.1.0/include" -fpp -qmkl -nologo -O3 -Os -parallel -heap-arrays[0] testmkl.f90 -o testmkl
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I solved it. Thank you very much for taking a look!
ifort -qopenmp -I$/openmp/intel/oneapi/mkl/2022.1.0/include/intel64/ilb64-m64 -DMKL_ILP64 -i8 -I"$/opt/intel/oneapi/mkl/2022.1.0/include" -fpp -qmkl -nologo -O3 -Os -parallel -heap-arrays[0] testmkl.f90 -o testmkl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for reaching out to us.
>>I solved it. Thank you very much for taking a look!
Glad to know that your issue is resolved. Please post a new question if you need any additional assistance from Intel as this thread will no longer be monitored.
Have a Nice Day!
Regards,
Vidya.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page