metal-rs icon indicating copy to clipboard operation
metal-rs copied to clipboard

Incorrect buffer value in compute example

Open WeiPhil opened this issue 1 year ago • 0 comments

Hi, I was trying out some of the examples and it looks like the compute example only works for small vector sizes. To reproduce the issue simply replace the let data = [1u32, 2, 3 , etc.. ]; to let data = vec![1u32; 100000]; and assert that the sum should be 100000. In my case the value in the sum buffer is always the unmodified value 0. Can anyone explain to me what is happening here? Best, Philippe

WeiPhil avatar Sep 30 '22 22:09 WeiPhil