Merge pull request #842 from emankov/master

[HIPIFY][tests] Reduce cudaRegister.cu test

[ROCm/clr commit: 1cb0dcad94]
This commit is contained in:
Evgeny Mankov
2019-01-03 17:19:11 +03:00
committed by GitHub
@@ -22,12 +22,6 @@ THE SOFTWARE.
#include<cuda.h>
#include<cuda_runtime.h>
#include<iostream>
#ifdef _WIN32
#include <windows.h>
#define sleep(x) Sleep(x)
#else
#include <unistd.h>
#endif
#include<stdio.h>
#include<malloc.h>
@@ -90,7 +84,6 @@ int main(){
// CHECK: hipLaunchKernelGGL(Inc1, dim3(dimGrid), dim3(dimBlock), 0, 0, Ad, Bd);
Inc1<<<dimGrid, dimBlock>>>(Ad, Bd);
sleep(3);
A[0] = -(ITER*1.0f);
std::cout<<"Same cache line before completion: \t"<< A[0]<<std::endl;
@@ -104,7 +97,6 @@ int main(){
// CHECK: hipLaunchKernelGGL(Inc2, dim3(dimGrid), dim3(dimBlock), 0, 0, Ad, Bd);
Inc2<<<dimGrid, dimBlock>>>(Ad, Bd);
sleep(3);
A[0] = -(ITER*1.0f);
std::cout<<"Diff cache line before completion: \t"<<A[0]<<std::endl;