44 std::string cudaErrorStr;
47 cudaError_t
error = cudaGetDeviceCount(&deviceCount);
48 if (
error != cudaSuccess) {
49 cudaErrorStr = cudaGetErrorString(
error);
50 ATH_MSG_DEBUG(
"Error in cudaGetDeviceCount " << cudaErrorStr);
53 for (
int i = 0; i < deviceCount; i++) {
55 error = cudaGetDeviceProperties(&prop, i);
57 if (
error != cudaSuccess) {
58 cudaErrorStr = cudaGetErrorString(
error);
59 ATH_MSG_DEBUG(
"Error in cudaGetDeviceProperties for device " << i <<
" " << cudaErrorStr);
62 m_deviceInfo.emplace_back(i, prop.name, prop.major, prop.minor);