Quantcast
Channel: Intel® Many Integrated Core Architecture
Viewing all articles
Browse latest Browse all 1347

Error: (pointer to array) may not be used in a subscript operation. How could I solve it?

$
0
0

Hello everybody.

I have a pointer like this:

float **p = ...;
...
#pragma offload target(mic) in(p[0]:length(...))
_FUNCITON_

Then I got error info: ` "p" may not be used in a subscript operation.` when compiling it.

So how could I pass a one-dimensional array like this to mic? any advice and suggestions will be greatly appreciated!


Viewing all articles
Browse latest Browse all 1347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>