#include <cuda_runtime.h>
#include <string>
#include <iostream>
#include <vector>
Go to the source code of this file.
Define Documentation
Value:if ((err) != cudaSuccess) \
{ \
std::cout \
<< "ERROR calling " << fct_name << "() (" \
<< __FILE__ << " line " << __LINE__ << "): " \
<< CUDA_Error_to_String(err) << "\n" << std::flush; \
abort(); \
}
Function Documentation
| int SMVer2CU |
( |
int |
major, |
|
|
int |
minor |
|
) |
| [inline] |
Obtains the estimated number of cores per SM.
- Parameters:
-
| major | major architecture version number. |
| minor | minor architecture version number. |
- Returns:
- number of compute units per SM.