problem copying data back to the CPU using array_view and discard RRS feed

  • Question

  • Hi everybody,

    I am using array_view to execute Parallel_for_each loop with discard_data() option, thing is that the code inside parallel for each is running well, I debugged that and everything was right compared to the serial code but when getting out from the parallel for each I don't get exactly the same values than when debugging inside the parallel for each: I got the last 20-30 values ( over 2000 values in total ) of the array different from the expected values. 

    Any idea please ?

    As you can see in the picture bellow wv is the output array which I got it at the break-point (delete[] a) different from wvp when finishing parallel_for_each.


    Friday, June 7, 2013 5:29 PM

All replies

  • Hi Razi, your code snippet is too small for me to read. Could you please cut & paste the code into the text instead? Thanks!
    Friday, July 19, 2013 10:31 PM