Skip to content

Commit

Permalink
Clean error message
Browse files Browse the repository at this point in the history
  • Loading branch information
CyprienBosserelle committed Feb 13, 2017
1 parent ea42ab4 commit 8fa6095
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Sediment_kernel.cu
Original file line number Diff line number Diff line change
Expand Up @@ -1168,6 +1168,7 @@ __global__ void updatezom(int nx, int ny, DECNUM cf, DECNUM cf2, DECNUM fw, DECN
int tx = threadIdx.x;
int ty = threadIdx.y;

//printf("%d\n", i);

if (ix < nx && iy < ny)
{
Expand Down
2 changes: 1 addition & 1 deletion Wave_gpu.cu
Original file line number Diff line number Diff line change
Expand Up @@ -2467,7 +2467,7 @@ int main(int argc, char **argv)
// Calculate initial maximum timestep


FLOWDT << <gridDim, blockDim, 0 >> >(nx, ny, dx, 0.5*XParam.CFL, dtflow_g, hh_g);
FLOWDT << <gridDim, blockDim, 0 >> >(nx, ny, dx, 0.5f*XParam.CFL, dtflow_g, hh_g);
CUDA_CHECK(cudaDeviceSynchronize());


Expand Down
2 changes: 1 addition & 1 deletion Wavestep.cu
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ void CUDA_CHECK(cudaError CUDerr)

__FILE__, __LINE__, cudaGetErrorString(CUDerr));

write_text_to_log_file("Cuda error in file " + std::string(__FILE__) + " in line " + std::to_string(__LINE__) + std::string(cudaGetErrorString(CUDerr)));
write_text_to_log_file("Cuda error in file " + std::string(__FILE__) + " in line " + std::to_string(__LINE__) + " " + std::string(cudaGetErrorString(CUDerr)));
exit(EXIT_FAILURE);

}
Expand Down

0 comments on commit 8fa6095

Please sign in to comment.