File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -782,12 +782,12 @@ void run_from_gpu_test(
782
782
783
783
submit_to_gpu ();
784
784
785
- std::vector<T> data (staging_buffer.numel ());
785
+ std::vector<T> data_out (staging_buffer.numel ());
786
786
copy_staging_to_ptr (
787
- staging_buffer, data .data (), sizeof (float ) * staging_buffer.numel ());
787
+ staging_buffer, data_out .data (), sizeof (float ) * staging_buffer.numel ());
788
788
789
789
for (int i = 0 ; i < vten.numel (); i++) {
790
- CHECK_VALUE (data , i, i);
790
+ CHECK_VALUE (data_out , i, i);
791
791
}
792
792
}
793
793
@@ -823,15 +823,15 @@ void run_to_gpu_test(
823
823
submit_to_gpu ();
824
824
825
825
// Extract data from output staging buffer
826
- std::vector<T> data (staging_buffer_out.numel ());
826
+ std::vector<T> data_out (staging_buffer_out.numel ());
827
827
copy_staging_to_ptr (
828
828
staging_buffer_out,
829
- data .data (),
829
+ data_out .data (),
830
830
sizeof (float ) * staging_buffer_out.numel ());
831
831
832
832
// All indices should be equal to the input data
833
833
for (int i = 0 ; i < vten.numel (); i++) {
834
- CHECK_VALUE (data , i, i);
834
+ CHECK_VALUE (data_out , i, i);
835
835
}
836
836
}
837
837
You can’t perform that action at this time.
0 commit comments