1

I'm trying to use openACC to accelerate some of my code. One portion of the code used pow() function from standard library. However there is an error during compilation

PGCC-S-0155-Procedures called in a compute region must have acc routine information: pow

I've roughly know that I need to declare the #pragma acc routine seq in order to remove such type of error. But as I understand this need to be added in the source code of the function(I might be wrong). So how can I work around this?

Coconut
  • 184
  • 1
  • 15

1 Answers1

3

Include accelmath.h, instead of cmath.h

Eh Tan
  • 46
  • 2