- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I am writing this test code :
#include <stdio.h>
#include "offload.h"
int main()
{
char cdir[128];
int ndevices, devnum;
getcwd(cdir,sizeof(cdir));
ndevices = _Offload_number_of_devices();
devnum = _Offload_get_device_number();
printf("\n Hello...%s %d %d \n",cdir,ndevices,devnum);
return 0;
}
and compiling
icc -o hello hello.c -loffload
compiles succesfully
However, when i am compiling as
icc -o hello hello.c -loffload -mmic
x86_64-k1om-linux-ld: warning: libcoi_device.so.0, needed by /home/opt/intel/composer_xe_2013.1.117/compiler/lib/mic/liboffload.so.5, not found (try using -rpath or -rpath-link)
but, ideally it should
Builds an application that runs natively on Intel(R) MIC Architecture.
PLaese, let me know what i am missing.
Regards,
Arpit
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The offload APIs (_Offload_number_of_devices, _Offload_get_device_number) are not usable in native code. Native code (-mmic) does not use any of the offload extensions.

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