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
}
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
}