On compilation getting rpath error

On compilation getting rpath error


I am writing this test code :

#include <stdio.h>

#include "offload.h"

int main()
char cdir[128];
int ndevices, devnum;

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.



2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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.

Leave a Comment

Please sign in to add a comment. Not a member? Join today