![]() |
kspaceFirstOrder3D-CUDA
1.1
The CUDA/C++ implementation of the k-wave toolbox for the time-domain simulation of acoustic wave fields in 3D
|
The header file containing a class responsible for printing out info and error messages (stdout, and stderr). More...
#include <memory>
#include <iostream>
#include <cuda_runtime.h>
#include <Logger/OutputMessages.h>
#include <Logger/ErrorMessages.h>
Go to the source code of this file.
Classes | |
class | TLogger |
Static class implementing the user interface by info messages. More... | |
Macros | |
#define | checkCudaErrors(val) CheckErrors ( (val), #val, __FILE__, __LINE__ ) |
Macro checking cuda errors and printing the file name and line. Inspired by CUDA common checking routines. | |
Functions | |
template<bool forceSynchronisation = false> | |
void | CheckErrors (const cudaError_t errorCode, const char *routineName, const char *fileName, const int lineNumber) |
Checks CUDA errors, create an error message and throw an exception. More... | |
This file is part of the C++ extension of the k-Wave Toolbox (http://www.k-wave.org).
Copyright (C) 2016 Jiri Jaros and Bradley Treeby.
This file is part of the k-Wave. k-Wave is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
k-Wave is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with k-Wave. If not, see http://www.gnu.org/licenses/.
Definition in file Logger.h.
|
inline |
Checks CUDA errors, create an error message and throw an exception. The template parameter should be set to true for the whole code when debugging kernel related errors. Setting it to true for production run will cause IO sampling and storing not to be overlapped.
[in] | errorCode | - Error produced by a cuda routine |
[in] | routineName | - Function where the error happened |
[in] | fileName | - File where the error happened |
[in] | lineNumber | - Line where the error happened |
Definition at line 183 of file Logger.h.