Add new BIN_ID context property.

Also fix architecture detection on cuda to not use deprecated functions.