convert cuda into acc everywhere