Skip to content

Commit

Permalink
Corrected invalid initialization of reference buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
shajder committed Jun 20, 2023
1 parent 5ecafc8 commit c3f337b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test_conformance/basic/test_vloadstore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ int test_vload(cl_device_id device, cl_context context, cl_command_queue queue,
test_error( error, "Unable to read results" );

// Create the reference results
referenceBuffer.assign(0, numLoads * typeSize * vecSize);
referenceBuffer.assign(numLoads * typeSize * vecSize, 0);
for( i = 0; i < numLoads; i++ )
{
memcpy(&referenceBuffer[i * typeSize * vecSize],
Expand Down

0 comments on commit c3f337b

Please sign in to comment.