Wednesday, June 27, 2012 12:22 AM
Hi Smart People!
Im trying to convert my C++ code to C++ AMP code.
Here is the error i got,
"The number of writable arrays/array_views referenced in the entry function of the parallel_for _each call(11) exceeds the selected accelerator's limit of maximum number(8) of writable buffer views allowed in a lernel."
I have 11 array_view in my code,and got this error.
Do i have any option to avoid this problem?
Or How Can I to set "READABLE" to the array_view?
i need only 1 array to be writable for now.
Wednesday, June 27, 2012 12:31 AM
thank you guys! I have solved this problem myself.
Im so damb,it just I put "const" in <> .like this
array_view<const float ,1> xxxx(xxxx);
then the array_view be READ ONLY(SRV).
- Marked As Answer by HotInCool Wednesday, June 27, 2012 12:31 AM
Wednesday, June 27, 2012 1:38 AMOwner
Yup, you found it.
Just for reference, the limit of 8 writeable buffers is increased to 64 if you are running on Windows 8.
You may also find this related blog post interesting: http://blogs.msdn.com/b/nativeconcurrency/archive/2012/04/16/data-under-the-covers-in-c-amp.aspx
- Marked As Answer by HotInCool Wednesday, June 27, 2012 10:35 AM
Wednesday, June 27, 2012 10:34 AM
om my god, What a useful information!
Its so good I will have 64 buffers in win8.
I cant wait for it.