MPSQUARK / BAVCL

Hardware-accelerated Vector Compute Library for .NET Containing Quality of life improvements and functionality intended for data science, graphical processing and GPGPU.
Other
10 stars 2 forks source link

Update Buffer checks if found buffer is not equal to null instead of equal to null. #38

Closed JocieOaks closed 1 year ago

JocieOaks commented 1 year ago

Found an issue here that makes it so that UpdateBuffer is constantly allocating new buffers instead of using the buffer that already exists. https://github.com/MPSQUARK/BAVCL/blob/df9ce1948a6d2e8cb1923458090c7a4ff9c77260/BAVCL/Core/GPU/LRU.cs#L236

MPSQUARK commented 1 year ago

Good spot. Thanks for reporting. This is very likely a typo.

I'll get that fixed asap.

MPSQUARK commented 1 year ago

Submitted the fix for this to the master branch, in commit c11f3295.