question

rtemx avatar image
0 Votes"
rtemx asked Viorel-1 commented

C2338 C++ AMP

when i compiling project i get issue C2338 "container element type and array view element type must match"

namespace ccy = concurrency;
using namespace std;
///
...
///
vector <vector<int>> a(n, vector<int>(n, 0));
ccy::array_view <const int, 2> aGPU(n, n, a);

what am I doing wrong?

c++
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@rtemx

Could you please provide the sample to help us reproduce the issue?

0 Votes 0 ·

The next modification seems to eliminate the compilation error, but does it further work?

ccy::array_view<const int, 2> aGPU( n, n, a.front() );




0 Votes 0 ·

0 Answers