LibCudaOptimize
1.0
|
Go to the source code of this file.
Defines | |
#define | IMUL(a, b) __mul24(a, b) |
Fast mul on G8x / G9x / G100. | |
Functions | |
void | optimizerCudaCheckError (const char *errorMessage, const char *file, int line, const std::string logger="") |
Print CUDA errors. | |
int | iDivUp (int a, int b) |
ceil(a / b) | |
int | iDivDown (int a, int b) |
floor(a / b) | |
int | iAlignUp (int a, int b) |
Align a to nearest higher multiple of b. | |
int | iAlignDown (int a, int b) |
Align a to nearest lower multiple of b. | |
bool | isBetter (float arg1, float arg2, bool maximization=false) |
Check if first value is better than the second according to maximization flag. |
Definition in file utilities.h.
void optimizerCudaCheckError | ( | const char * | errorMessage, |
const char * | file, | ||
int | line, | ||
const std::string | logger = "" |
||
) | [inline] |
Print CUDA errors.
errorMessage | the error to be printed |
file | which file generated the error |
line | at which line |
logger | on which file to log (see OptimizerLog.h) |
Definition at line 26 of file utilities.h.
References FILE_LOG.