You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the vectorAdd.cu example program, we have 3 lines looking like:
auto h_A = std::unique_ptr<float>(new float[numElements]);
... but it should actually be a unique_ptr<float[]>, an array unique_ptr. We also have this in streamOrderedAllocation.cu. Other example programs (including vectorAdd variants) already have this fixed.
The text was updated successfully, but these errors were encountered:
eyalroz
changed the title
vectorAdd.cu example unique_ptr's need to be float[], not float
some example program unique_ptr's need to be float[], not float
Jul 8, 2023
In the
vectorAdd.cu
example program, we have 3 lines looking like:... but it should actually be a
unique_ptr<float[]>
, an array unique_ptr. We also have this instreamOrderedAllocation.cu
. Other example programs (including vectorAdd variants) already have this fixed.The text was updated successfully, but these errors were encountered: