Quantcast
Channel: Intel® Many Integrated Core Architecture
Viewing all articles
Browse latest Browse all 1347

offload error (trying my first program)

$
0
0

I am just trying to get our XeonPhi to work properly. It worked for offload computing a couple of months ago when I tried it, but now I get the following error:

offload error: cannot find offload entry __offload_entry_Conceptual_Transformation_cpp_40f_7e694fe6ef39bee36b1d18aad1ea599dicc43479367WrTpxg
offload error: process on the device 0 unexpectedly exited with code 1

icc version 14.0.2 (gcc version 4.7.2 compatibility)

MPSS 3.5

Code is just a simple example to try out offloading. Any help appreciated.

// Source code
#include <stdio.h>
__attribute__((target(mic))) int g()
{
  return 5;
}

void f()
{
  int a,b=5;
  #pragma offload target(mic)
  a = b + g();
  printf("a = %2d\n", a);
}

main()
{
  f();
}

 


Viewing all articles
Browse latest Browse all 1347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>