code: def memset(self, buffer, value, size):
          
          if isinstance(buffer, cl.Buffer):
              try:
                  cl.enqueue_fill_buffer(self.queue, buffer, numpy.uint32(value), 0, size)
              except AttributeError:
                  src=numpy.zeros(size, dtype='uint8')+numpy.uint8(value)
                  cl.enqueue_copy(self.queue, buffer, src)
docs: set the memory in allocation to the value in value
  
          :param allocation: An OpenCL Buffer to fill
          :type allocation: pyopencl.Buffer
  
          :param value: The value to set the memory to
          :type value: a single 32-bit int
  
          :param size: The size of to the allocation unit in bytes
          :type size: int