def memset(self, allocation, value, size):
"""set the memory in allocation to the value in value
:param allocation: A memory allocation unit
:type allocation: pycuda.driver.DeviceAllocation
:param value: The value to set the memory to
:type value: a single 32-bit float or int
:param size: The size of to the allocation unit in bytes
:type size: int
"""
C.memset(allocation, value, size)
评论列表
文章目录