When copying between two HClib places/locales, the runtime needs to figure out what kind of copy API it has to use (e.g. memcpy, cudaMemcpy, etc). If it encounters a copy between two locales that each say HClib must use its copy API, HClib has no way of really negotiating between the two and will abort. This change handles the trivial case where the two places being copied between both say HClib must use their proprietary API, but those two places are both asking for the same API.
@srirajpaul one more small bug fix.
When copying between two HClib places/locales, the runtime needs to figure out what kind of copy API it has to use (e.g. memcpy, cudaMemcpy, etc). If it encounters a copy between two locales that each say HClib must use its copy API, HClib has no way of really negotiating between the two and will abort. This change handles the trivial case where the two places being copied between both say HClib must use their proprietary API, but those two places are both asking for the same API.