https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118794

--- Comment #6 from Benjamin Schulz <schulz.benjamin at googlemail dot com> ---
Hi thanks for the fast reply. Unfortunately none of these works...

(yes, putting in the -fno-math-errno option also raises this error, even if i
put it into -offload...

even if i try -foffload= -fno-math-errno the assert also does not work. and the
builtin unreachable option does also not work.

One problem is that there is no unsigned double in c++...

Strangely, not even this here compiles:

        T norm=fabs(gpu_dot_product_w(v,v));

        T normc= sqrt(norm);

      //  const T normc=norm;
        #pragma omp parallel for
        for (size_t i = 0; i < pext0; ++i)
        {
            v(i,pstrv0)= v(i,pstrv0)/normc;
        }

Is there another division by zero problem?

I do not really know what is going on here..

Reply via email to