_logger.warn("OPTIMIZATION WARNING: Theano was not able to find the g++ parameter that tune the compilation to your specific CPU. This can slow down the execution of Theano function. Can you submit the following lines to Theano's mailing list such that we fix this problem:\n ",native_lines)
assertlen(default_lines)>1
else:
part=native_lines[0].split()
default_lines=get_lines("g++ -E -v - </dev/null")
forlineindefault_lines:
_logger.info("g++ default lines: ",default_lines)
ifline.startswith(part[0]):
assertlen(default_lines)>1
part2=[pforpinline.split()
part=native_lines[0].split()
ifnot'march'inpandnot'mtune'inp]
forlineindefault_lines:
new_flags=[pforpinpartifpnotinpart2]
ifline.startswith(part[0]):
cxxflags.extend(new_flags)
part2=[pforpinline.split()
break
ifnot'march'inpandnot'mtune'inp]
new_flags=[pforpinpartifpnotinpart2]
cxxflags.extend(new_flags)
break
#NumPy 1.7 Deprecate the old API. I updated most of the places
#NumPy 1.7 Deprecate the old API. I updated most of the places
#to use the new API, but not everywhere. When finished, enable
#to use the new API, but not everywhere. When finished, enable