- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
At me it is installed Red Hat 6.0 (x86-64). I do static linking.
For example (actually at me thousand functions):
ifort myprog.f -L$MKLPATH -I$MKLINCLUDE
-Wl,--start-group $MKLPATH/libmkl_intel_ilp64.a $MKLPATH/libmkl_intel_thread.a
$MKLPATH/libmkl_core.a -Wl,--end-group -liomp5 -lpthread
I receive an error: It is not found -lpthread.
If not to use -lpthread translation comes to an end successfully.
Link Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You know some OSes has no static libpthread library.
So, please use additional option -Bdynamic before -lpthread
You know some OSes has no static libpthread library.
So, please use additional option -Bdynamic before -lpthread
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Victor,
Thanks.
My program is compiled approximately 2 hours. All is good.
I use mine MKL (I work with the packed matrixes and my algorithms much faster, than in Intel MKL, but some functions I take from Intel MKL. As a whole this software package very good).
--Yurii
Thanks.
My program is compiled approximately 2 hours. All is good.
I use mine MKL (I work with the packed matrixes and my algorithms much faster, than in Intel MKL, but some functions I take from Intel MKL. As a whole this software package very good).
--Yurii
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I guess it is recommended to use dynamic linking instead of static linking because of the performance issues. After all, you will have smaller code with probably better performance if you use dynamic linking.
Good luck,
D.
Good luck,
D.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
At first, speed of the account is approximately identical.
Secondly, it is necessary for transfer of programs on other computers.
Secondly, it is necessary for transfer of programs on other computers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can't expect an application which uses libpthread to run on another machine which doesn't have a compatible glibc installation, so there's no point in linking it static.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I know it. I pursued absolutely other aims.
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