- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi,
I got the following error, when use icpc to compile a program which is using coi library.
ld: skipping incompatible /opt/intel/mic/coi/device-linux-debug/lib/libcoi_device.so when searching for -lcoi_device
ld: cannot find -lcoi_device
The command I use is
icpc -L/opt/intel/mic/coi/device-linux-debug/lib -I /opt/intel/mic/coi/include -I ../../../include -lcoi_device -lpthread -rdynamic -Wl,--enable-new-dtags -g -O0 -D_DEBUG -openmp -DTHREADS=200 -openmp-report -o debug/kmeans-seq-sink kmeans-seq-sink.c
any hints or suggestions?
thanks a lot!
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To use icpc for the sink-side (or device side) compilation, add: -mmic
That will yield using the compatible compiler and linker to the libs you referenced. Without this option you are mixing the host-side compiler/linker with device-side libraries which are not compatible.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page