I am learning openMP in C++ in Linux environment, and I am using Netbeans for programming. I want to test the parallelization of my program by multiplying two 1000*1000 matrices on a dual core processor. When I run the program, it terminates by segmentation fault for stack overflow. My program works just fine for the 500*500 matrix. Is there any way I can increase the stack size for my C++ Netbeans environment? I searched web for this and I found some results for JAVA and it did not work for c++.

I have tried messing with /etc/netbeans.conf file, but it did not work. My netbeans does not contain installation for JAVA (C++ only).

don't create them on the stack! "new" them up on the heap!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.