- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
this is a report for a (incorrect?, misleading?) warning message.
- linking a cpp file statically gives a cilk waring mesage although cilk is
not used.
Maybe this report should go to the cilk forum?
The knowledge base explains, that there is not static cilk lib.
http://software.intel.com/en-us/articles/intel-cilk-plus-runtime-library-libcilkrts-can-only-be-linked-dynamically/
But cilk is only necessary for code which use it and
the linker warning exists, even without using cilk.
See the example below.
regards,
Martin
>cat hello.cpp
#include
int main() {
printf("hello world\\n");
return 0;
}
>icpc -i-static hello.cpp
icpc: warning #10237: -lcilkrts linked in dynamically, static library not
available
>./a.out
hello world
>icpc --version
icpc (ICC) 12.1.0 20111011
Copyright (C) 1985-2011 Intel Corporation. All rights reserved.
this is a report for a (incorrect?, misleading?) warning message.
- linking a cpp file statically gives a cilk waring mesage although cilk is
not used.
Maybe this report should go to the cilk forum?
The knowledge base explains, that there is not static cilk lib.
http://software.intel.com/en-us/articles/intel-cilk-plus-runtime-library-libcilkrts-can-only-be-linked-dynamically/
But cilk is only necessary for code which use it and
the linker warning exists, even without using cilk.
See the example below.
regards,
Martin
>cat hello.cpp
#include
int main() {
printf("hello world\\n");
return 0;
}
>icpc -i-static hello.cpp
icpc: warning #10237: -lcilkrts linked in dynamically, static library not
available
>./a.out
hello world
>icpc --version
icpc (ICC) 12.1.0 20111011
Copyright (C) 1985-2011 Intel Corporation. All rights reserved.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Martin,
Using option -static-intel (replacement for -i-static)relates toALL Intel libraries; there is no lib check being done whetherlibs are actually being usedwith the application or not. The warning is true for Cilk since there is no static version of the libcilkrts library. The additional option -no-intel-extensions removes check for Intel special libraries (such as libcilkrts) extensions.
So you can either use the additional option -no-intel-extensions or ignore warning #10237 (add compiler option -wd10237).
Nevertheless,the warning is a littel bit misleading since libcilkrts is NOT actually being linked as the warning says. But would you be ok with the workaroundssuggested?
Regards, Hubert.
Using option -static-intel (replacement for -i-static)relates toALL Intel libraries; there is no lib check being done whetherlibs are actually being usedwith the application or not. The warning is true for Cilk since there is no static version of the libcilkrts library. The additional option -no-intel-extensions removes check for Intel special libraries (such as libcilkrts) extensions.
So you can either use the additional option -no-intel-extensions or ignore warning #10237 (add compiler option -wd10237).
Nevertheless,the warning is a littel bit misleading since libcilkrts is NOT actually being linked as the warning says. But would you be ok with the workaroundssuggested?
Regards, Hubert.

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