我有struct A
几个int
和一个int *
成员。如何在卸载中使用它?
我可能做不到#pragma offload target(mic: 0) inout(A){}
……但是呢?
#pragma offload target(mic: 0) in(A->firstInt, A->secondInt) inout(A->intPointer:length(A->firstInt*A->secondInt)){}
但是当我尝试这个时,我error: invalid entity for this variable list in offload clause
在编译时得到了回应