#include #include "offload.h" int main(int argc, char * argv[] ) { printf("Hello World from CPU!\n"); #pragma offload target(mic) { #ifdef __MIC__ printf("Hello World from Phi!\n"); #else printf("Hello world from CPU (offload to Phi failed)."); #endif fflush(0); } }