I want to use floor/ceil functions of C in an OpenACC project. When I want to make an atomic update of a value.
#pragma acc atomic update
x=floor(x)+c
the compiler shows the following message:
PGCC-S-0155-Invalid atomic expression PGCC-S-0155-Invalid atomic region.
What could be the problem?