hipStreamWaitEvent update.

Add passed to hipStreamWaitEvent test.
Fix pointerAttrib test to work with new and old HCC versions.
Minor code touchup.

Change-Id: I139ba6ce9f6bf2b4bee89aebdec5981b4346ffc0
This commit is contained in:
Ben Sander
2016-09-01 18:00:31 -05:00
parent db9fe9f494
commit 0923c2d261
4 changed files with 19 additions and 4 deletions
@@ -62,7 +62,7 @@ Streamer<T>::Streamer(size_t numElements) :
template <typename T>
void Streamer<T>::runAsync()
{
printf ("testing: %s numElements=%zu\n", __func__, _numElements);
printf ("testing: %s numElements=%zu size=%6.2fMB\n", __func__, _numElements, _numElements * sizeof(T) / 1024.0/1024.0);
unsigned blocks = HipTest::setNumBlocks(blocksPerCU, threadsPerBlock, _numElements);
hipLaunchKernel(HipTest::vectorADD, dim3(blocks), dim3(threadsPerBlock), 0, _stream, _A_d, _B_d, _C_d, _numElements);
HIPCHECK(hipEventRecord(_event, _stream));
@@ -117,4 +117,6 @@ int main(int argc, char *argv[])
}
HIPCHECK(hipDeviceSynchronize());
passed();
}