[Numpy-tickets] [NumPy] #550: tofile() broken on 64-bit linux

NumPy numpy-tickets@scipy....
Thu Jul 12 15:11:23 CDT 2007

#550: tofile() broken on 64-bit linux
 Reporter:  myrvoll     |        Owner:  somebody     
     Type:  defect      |       Status:  new          
 Priority:  high        |    Milestone:  1.0.4 Release
Component:  numpy.core  |      Version:  none         
 Severity:  major       |   Resolution:               
 Keywords:              |  
Comment (by charris):

 I can write out 3 GiB files without problems, although i/o is darn slow.

 In [10]: a = zeros(3<<30, dtype=int8)

 In [11]: time In [10]: a = zeros(3<<30, dtype=int8)

 In [11]: time a.tofile('big')
 CPU times: user 0.00 s, sys: 12.78 s, total: 12.78 s
 Wall time: 370.79


 Could you keep upping the size until you see a problem? Try 4 GiB to
 start. When you hit a problem, could you also try both the
 a.tofile('filename') and  a.tofile('filedescriptor') forms to see if there
 is a difference?

 I am running Python 2.4 on FC5.

Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/550#comment:3>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.

More information about the Numpy-tickets mailing list