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

Method alignment_requirement

dnn/src/cuda/handle.cpp:111–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111size_t HandleImpl::alignment_requirement() const {
112 auto&& prop = m_device_prop;
113 return std::max(prop->textureAlignment, prop->texturePitchAlignment);
114}
115
116bool HandleImpl::check_cross_dev_copy_constraint(const TensorLayout& src) {
117 // is contiguous or can be hold by

Callers 5

make_bundleMethod · 0.45
get_workspace_bundleMethod · 0.45
get_workspace_bundleMethod · 0.45
make_bundleMethod · 0.45

Calls 1

maxFunction · 0.85

Tested by

no test coverage detected