Software Archive
Read-only legacy content
17061 Discussions

internal error: bad pointer

yongbei_ma_
New Contributor I
345 Views

my code is this: ---------------------------------------------------------------------------------------------- #include class TEST{ public: double *A; public: TEST(double * _A){ A = _A; #pragma offload_transfer target(mic:0) nocopy(this : alloc_if(1) free_if(0)) in(A:length(2*3) alloc_if(1) free_if(0)) } void run(){ A[1] = 0; // double *B = A; std::cout<

0 Kudos
1 Reply
Kevin_D_Intel
Employee
345 Views

This appears to be an unintended duplicate of this post. Refer to the other thread for more info.

0 Kudos
Reply