Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

pardiso stack overflow

ahmediiit
Beginner
944 Views

hello sir,

I want to run my code using command line.

I am using pardiso solver.

I am getting stack overflow error when i am running the code.

I was getting the same error when i was running it on VS2008.

It was solved when i changed the

stackreserve size to 210000000 at solution/properties/linker/system/stack reserve size.

Now please tell me how to change this using command line.

0 Kudos
6 Replies
Gennady_F_Intel
Moderator
944 Views

i guess this is the same problem which discussed here:

http://software.intel.com/en-us/forums/showthread.php?t=72449&o=d&s=lr

--Gennady

0 Kudos
ahmediiit
Beginner
944 Views

i dont find any stack overflow problem in that page.

I am running the code on windows only using command prompt

ifort model3d.for mkl_solver_ilp64.lib mkl_intel_ilp64_dll.lib mkl_intel_thread_dll.lib mkl_core_dll.lib -Qopenmp
i got the model3d.exe as the output

when iam compiling the model3d.exe i am getting the following error

F:\comprompt2>model3d.exe

forrtl: severe (170): Program Exception - stack overflow

Image PC Routine Line Source

model3d.exe 0000000140097D57 Unknown Unknown Unknown

model3d.exe 0000000140001016 Unknown Unknown Unknown

model3d.exe 0000000140091C1C Unknown Unknown Unknown

model3d.exe 00000001400774EF Unknown Unknown Unknown

kernel32.dll 0000000077D596AC Unknown Unknown Unknown

For the same problem when i was running on the visual studio 2008

i got the same problem of stack overflowwhich was solved by changing the stack

reserve size on solution/properties/linker/system/stack reserve size.

now please tell me how to to solve this

0 Kudos
Vladimir_Koldakov__I
New Contributor III
944 Views

Hello,

Could you please provide your code?

I believe the problem may be withhuge temporary arrays.

Thanks,
Vladimir

0 Kudos
ahmediiit
Beginner
944 Views
I am getting the error after entering the pardiso subroutine
0 Kudos
ahmediiit
Beginner
944 Views

Hello sir

i saw the information to increase the stack size

on the site

http://software.intel.com/en-us/articles/intel-fortran-compiler-increased-stack-usage-of-80-or-higher-compilers-causes-segmentation-fault/

Windows: On Windows, the stack space to reserved for the program is set using the /Fn compiler option, where n is the number of bytes. Additionally, the stack reserve size can be specified through the Visual Studio IDE which adds the Microsoft Linker option /STACK: to the linker command line. To set this, go to Property Pages>Configuration Properties>Linker>System>Stack Reserve Size. There you can specify the stack size in bytes in either decimal or C-language notation. If not specified, the default stack size is 1MB.

how to increase Stack Reserve Sizeusing command line

/Fn compiler option ---what does this mean

How to link quickwin libraries using command line

please help

0 Kudos
Gennady_F_Intel
Moderator
944 Views

Ahmed, for command line it will looks like:

ifort /Fn:1000000 test.f /Fe_1.exe -I$(MKL_INCL)$(MKL_LIB)\mkl_intel_thread.lib ......

but werecommendto use dynamic allocation as we recommend you earlier.

--Gennady

0 Kudos
Reply