| 745 | } |
| 746 | |
| 747 | template <typename T> void Engine<T>::getDeviceNames(std::vector<std::string> &deviceNames) { |
| 748 | int numGPUs; |
| 749 | cudaGetDeviceCount(&numGPUs); |
| 750 | |
| 751 | for (int device = 0; device < numGPUs; device++) { |
| 752 | cudaDeviceProp prop; |
| 753 | cudaGetDeviceProperties(&prop, device); |
| 754 | |
| 755 | deviceNames.push_back(std::string(prop.name)); |
| 756 | } |
| 757 | } |
| 758 | |
| 759 | template <typename T> |
| 760 | cv::cuda::GpuMat Engine<T>::resizeKeepAspectRatioPadRightBottom(const cv::cuda::GpuMat &input, size_t height, size_t width, |
nothing calls this directly
no outgoing calls
no test coverage detected