- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am just atrting out using the Intel compiler on my c code. I use the command when I compile the c code:
gcc -lm [further options} c source code.
It give me the warning
icc: warning #10315: specifying -lm before files may supercede the Intel math libraray and affect performance.
What does this mean. Should this be a concern?
Newport_j
gcc -lm [further options} c source code.
It give me the warning
icc: warning #10315: specifying -lm before files may supercede the Intel math libraray and affect performance.
What does this mean. Should this be a concern?
Newport_j
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, this could potentially be impactful to performance.
Normally, you shouldn't need to specify -lm at all to the compiler. It will link it in automatically. If you do have to do it explicitly, you should always link in system libraries last in order. In your example above, I believe:
icc {further options} {c source}
should work. And if it doesn't, try:
icc {further options} {c source} -lm
Normally, you shouldn't need to specify -lm at all to the compiler. It will link it in automatically. If you do have to do it explicitly, you should always link in system libraries last in order. In your example above, I believe:
icc {further options} {c source}
should work. And if it doesn't, try:
icc {further options} {c source} -lm

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