MCPcopy Create free account
hub / github.com/cyrusbehr/tensorrt-cpp-api / getDeviceNames

Method getDeviceNames

src/engine.h:747–757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

745}
746
747template <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
759template <typename T>
760cv::cuda::GpuMat Engine<T>::resizeKeepAspectRatioPadRightBottom(const cv::cuda::GpuMat &input, size_t height, size_t width,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected