Manually copying some of the openACC stuff from another commit.