OoenMP equivalent of OpenACC present?

When using OpenACC I use the present clause to indicate that something should already have a device copy. For example,
acc parallel loop present(are)

A runtime error is issued if arr is not found on the device. I’m wondering how this can be done with OpenMP?


Hi Victor,

Not directly. Though if you include a “map” clause, it will have the same “present_or” semantics as an OpenACC “copy” clause, but just wont issue an error if the variable isn’t present.


Thank you, Mat! Then I’ll rely on profilers and NVCOMPILER_ACC_NOTIFY to find unwanted memory transfers.