Skip to content

Commit

Permalink
tweak test and remove out to screen
Browse files Browse the repository at this point in the history
  • Loading branch information
CyprienBosserelle committed Oct 13, 2024
1 parent 1b6c499 commit 9fa3614
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MemManagement.cu
Original file line number Diff line number Diff line change
Expand Up @@ -383,11 +383,11 @@ template <class T> void AllocateMappedMemCPU(int nx, int ny,int gpudevice, T*& z

if (bPinGenericMemory)
{
printf("> Using Generic System Paged Memory (malloc)\n");
//printf("> Using Generic System Paged Memory (malloc)\n");
}
else
{
printf("> Using CUDA Host Allocated (cudaHostAlloc)\n");
//printf("> Using CUDA Host Allocated (cudaHostAlloc)\n");
}
cudaGetDeviceProperties(&deviceProp, gpudevice);

Expand Down
4 changes: 4 additions & 0 deletions src/Testing.cu
Original file line number Diff line number Diff line change
Expand Up @@ -4916,11 +4916,15 @@ template <class T> int TestPinMem(Param XParam, Model<T> XModel, Model<T> XModel
if (checkrem > 1.e-6f)
{
printf("\n Test Failed error = %e \n", checkrem);
return modelgood;
}
else
{
printf("\n Test Success error = %e \n", checkrem);
}



return modelgood;
}
template int TestPinMem<float>(Param XParam, Model<float> XModel, Model<float> XModel_g);
Expand Down

0 comments on commit 9fa3614

Please sign in to comment.