offload error

Avoiding Potential Problems - the __MIC__ macro and offload code blocks

The __MIC__ macro is used to protect source code which is intended to run only on the coprocessor. For example:

__declspec( target (mic))

void is_it_on_coprocessor()

{

  #ifdef __MIC__

    printf("yes, it is\n");

  #else

    printf("no, it is not\n");

  #endif

}

Iscriversi a offload error