MIC中offload的用法如下:

#pragma offload specifier [,specifier...]
specifier可以填入的选项为:
target  例:taget(mic:0)
if     例:if(N>100)
in    例:in(p:length(LEN) alloc_if(1))
out    例:out(p:length(LEN))
inout   例:inout(p:length(LEN) align(8))
nocopy  例:nocopy(p)
signal   例:signal(tag)
wait    例:wait(tag1,tag2)
mandatory   例:mandatory
其中in/out/inout/nocopy可用的属性有:
length  例::length(LEN)
alloc_if   例::alloc_if(1)
free__if  例::free_if(N>0)
align  例::align(8)
alloc   例::alloc(p[10:100]) 不能与inout/nocopy一起使用
into    例::into(p[10:100]) 不能与inout/nocopy一起使用

相关文章:

  • 2021-10-06
  • 2021-07-21
  • 2021-07-12
  • 2021-12-15
  • 2021-06-05
  • 2022-01-08
  • 2021-05-24
  • 2021-10-07
猜你喜欢
  • 2022-12-23
  • 2021-12-08
  • 2021-11-09
  • 2021-09-15
  • 2021-04-06
  • 2021-06-23
  • 2021-05-20
相关资源
相似解决方案