M
mediratta
Hi,
I want to allocate memory for a large matrix, whose size will be
around 2.5 million x 17000. Three fourth of its rows will have all
zeroes, but it is not known which will be those rows. If I try to
allocate memory for this huge array, then I get a segmentation fault
saying:
Program received signal SIGSEGV, Segmentation fault.
0xb7dd5226 in mallopt () from /lib/tls/i686/cmov/libc.so.6
I have not given any compiler options. I think that the error is
because I am allocating too big a size ?
Can anyone please, suggest me how to store/manage such a matrix in C/C+
+ ? Can mmap be useful ?
I am using linux on i386 with gcc (GCC) 4.1.2 20060928 (prerelease)
(Ubuntu 4.1.1-13ubuntu5)
thanks
anupam
I want to allocate memory for a large matrix, whose size will be
around 2.5 million x 17000. Three fourth of its rows will have all
zeroes, but it is not known which will be those rows. If I try to
allocate memory for this huge array, then I get a segmentation fault
saying:
Program received signal SIGSEGV, Segmentation fault.
0xb7dd5226 in mallopt () from /lib/tls/i686/cmov/libc.so.6
I have not given any compiler options. I think that the error is
because I am allocating too big a size ?
Can anyone please, suggest me how to store/manage such a matrix in C/C+
+ ? Can mmap be useful ?
I am using linux on i386 with gcc (GCC) 4.1.2 20060928 (prerelease)
(Ubuntu 4.1.1-13ubuntu5)
thanks
anupam