Choose device with correct runtime

Related to #110