Catch2 Test Fixes (#2961)

* test fixes

* address PR comment

* PR comment fixing Nvidia pass

* add additional kernel launch checks

* pr comments
This commit is contained in:
Paulius Velesko authored and GitHub committed 2022-09-30 15:07:25 -07:00
1 parent 2c35e99c9d
commit c02b15fc7c
97 files changed
+183 -40

No files matched your search

+2 -2
View File
@@ -69,8 +69,8 @@ int main(){
check("Registering A",status);
cudaHostGetDevicePointer(&Ad, A, 0);
cudaMalloc((void**)&Bd, SIZE);
dim3 dimGrid(LEN/512,1,1);
dim3 dimBlock(512,1,1);
dim3 dimGrid(LEN/256,1,1);
dim3 dimBlock(256,1,1);
Inc1<<<dimGrid, dimBlock>>>(Ad, Bd);
sleep(3);
A[0] = -(ITER*1.0f);
@@ -71,8 +71,8 @@ int main() {
B[i] = 2.0f;
}
dim3 dimGrid(LEN / 512, 1, 1);
dim3 dimBlock(512, 1, 1);
dim3 dimGrid(LEN / 256, 1, 1);
dim3 dimBlock(256, 1, 1);
hipLaunchKernelGGL(HIP_KERNEL_NAME(Add), dimGrid, dimBlock, 0, 0, Ad, Bd, Cd);
@@ -134,8 +134,8 @@ int main() {
HIPCHECK(hipMalloc((void**)&Bd, SIZE));
HIPCHECK(hipMemcpy(Bd, B, SIZE, hipMemcpyHostToDevice));
dim3 dimGrid(LEN / 512, 1, 1);
dim3 dimBlock(512, 1, 1);
dim3 dimGrid(LEN / 256, 1, 1);
dim3 dimBlock(256, 1, 1);
hipLaunchKernelGGL(Add, dimGrid, dimBlock, 0, 0, Ad, Bd, Cd);