lion03 / thrust

Automatically exported from code.google.com/p/thrust
Apache License 2.0
0 stars 0 forks source link

Testing of logical operators is broken #215

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This happens inside TestBinaryFunctional:

    // Replace zeros to avoid divide by zero exceptions
    std::replace(std_input2.begin(), std_input2.end(), (InputType) 0, (InputType) 1);

This means a logical op's output is always 1.

Original issue reported on code.google.com by jaredhoberock on 11 Sep 2010 at 4:16

GoogleCodeExporter commented 8 years ago
Actually this is probably only broken for logical_or

Original comment by jaredhoberock on 11 Sep 2010 at 4:17

GoogleCodeExporter commented 8 years ago
This issue was closed by revision af4c5c9016.

Original comment by jaredhoberock on 8 Feb 2011 at 6:57