Extending hipMallocManaged tests (#2670)

* Extending hipMallocManaged tests

* Fixed compilation error

* Added tests skips for hipMallocManaged tests on devices that don't support managed memory

* Removed unused stream


[ROCm/hip-tests commit: 4b07ea6125]
Этот коммит содержится в:
Dylan Angus
2022-07-29 04:05:27 +01:00
коммит произвёл GitHub
родитель b99fdc689c
Коммит 4a96554d63
6 изменённых файлов: 636 добавлений и 634 удалений
+1 -1
Просмотреть файл
@@ -166,7 +166,7 @@ static inline unsigned setNumBlocks(unsigned blocksPerCU, unsigned threadsPerBlo
HIP_CHECK(hipGetDeviceProperties(&props, device));
unsigned blocks = props.multiProcessorCount * blocksPerCU;
if (blocks * threadsPerBlock > N) {
if (blocks * threadsPerBlock < N) {
blocks = (N + threadsPerBlock - 1) / threadsPerBlock;
}