Skip to content
Snippets Groups Projects
Commit 9e925431 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Try and work around an Nvidia compiler issue in cfloat_cast().

(Issue reported by Karsten Wiesner and Alex Nitz)
parent 44253904
No related branches found
No related tags found
No related merge requests found
......@@ -217,9 +217,9 @@
PYOPENCL_DECLARE_COMPLEX_TYPE_INT(BASE, BASE_3LTR, c##BASE, c##BASE##_t)
PYOPENCL_DECLARE_COMPLEX_TYPE(float, FLT);
#define cfloat_cast(a) ((cfloat_t) ((a).x, (a).y))
#define cfloat_cast(a) ((cfloat_t) ((float) (a).x, (float) (a).y))
#ifdef PYOPENCL_DEFINE_CDOUBLE
PYOPENCL_DECLARE_COMPLEX_TYPE(double, DBL);
#define cdouble_cast(a) ((cdouble_t) ((a).x, (a).y))
#define cdouble_cast(a) ((cdouble_t) ((double) (a).x, (double) (a).y))
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment