# HG changeset patch # User Frederic Bastien # Date 1247239892 14400 # Node ID 7a65c5b79acabef453abb82d0a4072403f36956f # Parent 627c7cc7f1f62b3bb747d19daf9ede96f24dec7d gix on gcc4.1 FillMissing, seam broken on gcc 4.3 diff -r 627c7cc7f1f6 -r 7a65c5b79aca pylearn/sandbox/scan_inputs_groups.py --- a/pylearn/sandbox/scan_inputs_groups.py Tue Jun 30 12:02:11 2009 -0400 +++ b/pylearn/sandbox/scan_inputs_groups.py Fri Jul 10 11:31:32 2009 -0400 @@ -659,8 +659,11 @@ #def c(): def c_no_compile_args(self): -#-ffast-math and "-ffinite-math-only" SHOULD NOT BE ACTIVATED as they make isnan don't work! - return ["-ffast-math", "-ffinite-math-only"] +#-ffast-math and "-ffinite-math-only" SHOULD NOT BE ACTIVATED as they make isnan don't work! Idem for -funsafe-math-optimizations on gcc 4.1(on gcc 4.3 it don't break isnan) + return ["-ffast-math", "-ffinite-math-only", +#for gcc 4.1 we also need '-funsafe-math-optimizations', not need for gcc 4.3. TODO find a way to return the value depending of the compiler used? + "-funsafe-math-optimizations" + ] def c_headers(self): return ['"Python.h"', '"numpy/noprefix.h"', ''] @@ -699,6 +702,7 @@ else: raise Exception("Type %s not implemented "%node.inputs[0].type.dtype) return """ +//This space was added to for the recompilation as we changed the compiler option. int typenum; PyArrayObject* input = %(input)s, *value = %(value)s, *mask = %(mask)s; %(type)s fill_with[%(self.fill_with_length)s] = {%(self.fill_with_data)s};