| trearrange profiling call - sphere - GPU-based 3D discrete element method algor… | |
| git clone git://src.adamsgaard.dk/sphere | |
| Log | |
| Files | |
| Refs | |
| LICENSE | |
| --- | |
| commit 7f45ab66ff84ca552892b16da784395b5b3e5082 | |
| parent 2be4b9adda7260b17b0f543c1d8eb2232aeb9f99 | |
| Author: Anders Damsgaard <[email protected]> | |
| Date: Fri, 23 Jan 2015 09:31:58 +0100 | |
| rearrange profiling call | |
| Diffstat: | |
| M src/device.cu | 9 +++++---- | |
| 1 file changed, 5 insertions(+), 4 deletions(-) | |
| --- | |
| diff --git a/src/device.cu b/src/device.cu | |
| t@@ -1861,10 +1861,8 @@ __host__ void DEM::startTime() | |
| new_pressure, | |
| dev_darcy_p, | |
| wall0_iz); | |
| - if (PROFILING == 1) | |
| - stopTimer(&kernel_tic, &kernel_toc, &kernel_elapse… | |
| - &t_setDarcyTopPressure); | |
| cudaThreadSynchronize(); | |
| + checkForCudaErrorsIter("Post setUpperPressureNS", iter… | |
| // Modulate the pressures at the top wall | |
| setDarcyTopWallPressure | |
| t@@ -1875,7 +1873,10 @@ __host__ void DEM::startTime() | |
| cudaThreadSynchronize(); | |
| checkForCudaErrorsIter("Post setDarcyTopWallPressure", | |
| iter); | |
| - checkForCudaErrorsIter("Post setUpperPressureNS", iter… | |
| + | |
| + if (PROFILING == 1) | |
| + stopTimer(&kernel_tic, &kernel_toc, &kernel_elapse… | |
| + &t_setDarcyTopPressure); | |
| } | |
| if (PROFILING == 1) |