MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / makeCudaStream

Function makeCudaStream

samples/common/common.h:386–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

384 };
385
386inline std::unique_ptr<cudaStream_t, decltype(StreamDeleter)> makeCudaStream()
387{
388 std::unique_ptr<cudaStream_t, decltype(StreamDeleter)> pStream(new cudaStream_t, StreamDeleter);
389 if (cudaStreamCreateWithFlags(pStream.get(), cudaStreamNonBlocking) != cudaSuccess)
390 {
391 pStream.reset(nullptr);
392 }
393
394 return pStream;
395}
396
397//! Return vector of indices that puts magnitudes of sequence in descending order.
398template <class Iter>

Callers 9

buildMethod · 0.85
buildMethod · 0.85
buildMethod · 0.85
buildMethod · 0.85
buildMethod · 0.85
buildMethod · 0.85
buildMethod · 0.85
buildMethod · 0.85

Calls 2

getMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected