code: func (d Device) ComputeCapability() (major, minor int, err error) {
  	var attrs []int
  	if attrs, err = d.Attributes(ComputeCapabilityMajor, ComputeCapabilityMinor); err != nil {
  		err = errors.Wrapf(err, "Failed to get ComputeCapability")
  		return
  	}
  	major = attrs[0]
  	minor = attrs[1]
  	return
  }
docs: // ComputeCapability returns the compute capability of the device.
  // This method is a convenience method for the deprecated API call cuDeviceComputeCapability.