摘要: c++/c使用__declspec(target(mic))函数或变量声明或__attribute__((target(mic)))函数或变量声明举例如下:__attribute__((target(mic))) int a;__attribute__((target(mic))) void fun... 阅读全文
posted @ 2015-01-07 20:57 海上的风 阅读(414) 评论(0) 推荐(0) 编辑
摘要: mic中编程十分简单,只需在普通程序中简单加几句就可以,使用lspci|grep -i -co-processor 命令可以查看机器中是否插入MIC卡以及MIC卡的数目,MIC编程环境的配置这里就不讲了,下面是一个示例程序, 1 #include 2 #include 3 #include 4 in... 阅读全文
posted @ 2015-01-07 20:41 海上的风 阅读(325) 评论(0) 推荐(0) 编辑