make sure map and reduce examples have device functions