Skip to main content

Module advise

Module advise 

Source
Expand description

cuMemAdvise wrapper.

Public typed enum MemAdvice mirrors the six driver-level CU_MEM_ADVISE_* variants. The actor surface routes ManagedMsg::Advise through here, but the wrapper is also callable directly for callers operating on managed allocations they own.

Enums§

MemAdvice
Memory advisory hints. Each maps 1:1 to a CU_MEM_ADVISE_* variant. The Set* variants take a target location; the Unset* variants ignore it but require it to typecheck (CUDA accepts the arg either way).

Functions§

advise
Apply advice to the byte range [dev_ptr .. dev_ptr+bytes). Wraps cuMemAdvise_v2.