code: func (dev Device) Attributes(attrs ...DeviceAttribute) ([]int, error) {
  	if len(attrs) == 0 {
  		return nil, nil
  	}
  	cAttrs := make([]C.CUdevice_attribute, len(attrs))
  	cRetVal := make([]C.int, len(attrs))
  	size := C.int(len(attrs))
  
  	for i, v := range attrs {
  		cAttrs[i] = C.CUdevice_attribute(v)
  	}
  
  	err := result(C.cuDeviceGetAttributes(&cRetVal[0], &cAttrs[0], size, C.CUdevice(dev)))
  	retVal := make([]int, len(attrs))
  	for i, v := range cRetVal {
  		retVal[i] = int(v)
  	}
  
  	return retVal, err
  }
docs: /* COMMON PATTERNS */
  // Attributes gets multiple attributes as provided