Skip to content

Commit

Permalink
Merge pull request #64 from abergeron/nan
Browse files Browse the repository at this point in the history
Add definition of NAN to the cluda blurb.
  • Loading branch information
nouiz committed Aug 3, 2015
2 parents 69e6052 + 743e8a3 commit 172cf4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gpuarray_buffer_cuda.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ static const char CUDA_PREAMBLE[] =
"#define LOCAL_MEM __shared__\n"
"#define LOCAL_MEM_ARG /* empty */\n"
"#define REQD_WG_SIZE(X,Y,Z) __launch_bounds__(X*Y, Z)\n"
"#include <math_constants.h>\n"
"#define NAN CUDART_NAN_F\n"
"#define LID_0 threadIdx.x\n"
"#define LID_1 threadIdx.y\n"
"#define LID_2 threadIdx.z\n"
Expand Down

0 comments on commit 172cf4a

Please sign in to comment.