Skip to content

Commit

Permalink
Merge pull request #95 from ecmwf-ifs/nams-cuda-sp-math-functions
Browse files Browse the repository at this point in the history
Use single precision math functions for CUDA variants
  • Loading branch information
reuterbal authored Sep 3, 2024
2 parents e9b3af7 + 839f054 commit 57e95e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cloudsc_cuda/cloudsc/dtype.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ typedef double dtype;

#define MYMAX(x,y) fmaxf(x,y)
#define MYMIN(x,y) fminf(x,y)
#define MYEXP(x) exp(x)
#define MYPOW(x,y) pow(x,y)
#define MYPOWN(x,y) pow(x,y)
#define MYABS(x) fabs(x)
#define MYEXP(x) expf(x)
#define MYPOW(x,y) powf(x,y)
#define MYPOWN(x,y) powf(x,y)
#define MYABS(x) fabsf(x)

#else

Expand Down

0 comments on commit 57e95e8

Please sign in to comment.