vpi.Container.wlock_cuda
- Container.wlock_cuda(self: vpi.Container) vpi.Container.Lock
Lock the container data for
write
access inCUDA
.Hint
This allows the container data to be accessed in a with statement, using the item target as the data itself. Example:
with container.wlock_cuda() as data:
.Note
The data returned is not a copy of the container data.
- Returns
Access container data using the as of a with statement.
- Return type
vpi.Container.Lock