MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / _QuerySupportCaps

Method _QuerySupportCaps

src/opr/impl/nvof/NvOFCuda.cpp:121–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121uint32_t NvOFCuda::_QuerySupportCaps(const NV_OF_CAPS& cap) {
122 uint32_t size = 0;
123 NVOF_API_CALL(m_NvOFAPI->GetAPI()->nvOFGetCaps(
124 m_NvOFAPI->GetHandle(), cap, nullptr, &size));
125 std::unique_ptr<uint32_t[]> capsVal(new uint32_t[size]);
126 NVOF_API_CALL(m_NvOFAPI->GetAPI()->nvOFGetCaps(
127 m_NvOFAPI->GetHandle(), cap, capsVal.get(), &size));
128 return capsVal[0];
129}
130
131NV_OF_CUDA_BUFFER_TYPE NvOFCuda::GetBufferType(NV_OF_BUFFER_USAGE usage) {
132 NV_OF_CUDA_BUFFER_TYPE bufferType = NV_OF_CUDA_BUFFER_TYPE_UNDEFINED;

Callers

nothing calls this directly

Calls 3

GetAPIMethod · 0.80
GetHandleMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected