metal-rs
metal-rs copied to clipboard
Incorrect buffer value in compute example
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