Andreas Kloeckner, on 2010-10-30 02:11, wrote: > > The argument to ceil was inf, because step was 0.0, since on line > > 63 of test_clmath, the step argument was passed as (b-a)/s with > > all a,b,s all ints, and s>(b-a), hence the troubles. > > Me no understand still. test_clmath uses 'from __future__ import > division', and I thought that this automatically makes all the integer > division rubbish go away. Why not here?
test_clmath actually does not have the __future__ import line, adding it on top of the changeset that was previously failing for me fixes all errors, as well. another mystery solved. :) $ git diff diff --git a/test/test_clmath.py b/test/test_clmath.py index 085cec9..00c4f59 100644 --- a/test/test_clmath.py +++ b/test/test_clmath.py @@ -1,4 +1,5 @@ +from __future__ import division import math import numpy import pytools.test $ git show commit 045c1bbe4d8c04224b0ab34e158c8895b109fa01 -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 _______________________________________________ PyOpenCL mailing list [email protected] http://lists.tiker.net/listinfo/pyopencl
