Hi everyone,
I have an error message forrtl: severe(170): Program exception - stack overflow
My program is doing some grid search. It ran fine with a small number of grids, but then I got this message when I increase the number of grids to the realistic level. I read the topic...
I should be more specific about pseudo code
PROGRAM test
IMPLICIT NONE
REAL, PARAMETERS :: a,b,c
REAL, DIMENSION (250,250,2,250,250,250) :: X,Y
DO i=1,250
DO j = 1,250
DO ii=1,2
...
zI tried to read these two links and it is still not clear to me how I can use openMP with my compilers.
https://software.intel.com/sites/products/documentation/doclib/stdxe/2013/composerxe/compiler/fortran-mac/GUID-0E85F327-A19E-410C-8203-0A89C8F32635.htm...
I use Intel Visual Fortran Compiler(it runs under Microsoft Visual Studio 2008). My computer is 32-bit, Windows 7.
However, I need help from IMSL libraries. I don't know how to incorporate the libraries in GFortran. (For GFortran, I used Geany compiler.)
No, and I heard that it is quite complicated ? I will take a look at OpenMP tomorrow and see what it is. Does it require an installation of other softwares ?
Thanks for all helps here.
It seems I have to find a better way to write the code. The loop takes more than 1, maybe 2 or 3, to complete. In the less elements version, it took 160 loops to finish. It will be more than 6 days and I can't wait that long since this is only the first part of the code.
mikrom,
I used your suggestion, and it can run, but it takes time so long that I wonder if it is still running. When I do (30,30,2,30,30,30) (AND I DID NOT USE MULTIDIMENSIONal ARRAYS!), each loop is about 4 seconds. When I do (250,250,2,250,250,250), the first loop takes 1 hour and it still...
Oh goshhhh
salgerman , you are absolutely amazing!
By the way, what about "not a valid Win32 application" ?
When I declare A(48,48,2,48,48,48) it has this error.
But when I declare A(20,20,2,20,20,20) it can run.
What could it be ?
I'd like to thank you for your suggestion in this and...
I am wondering what R is. My program does not contain the array of such name. I did have array "r" (small r, not R) with one dimension, two elements, i.e., a vector of 2 elements. However, I will try to look for it. Thanks for the suggestion.
Hi guys,
Perhaps I need some help again. My program can compile but it generate run time error.
The message is
"C:\Console1\Console1\Debug\Console1.exe is not a valid Win32 application"
When I reduce the number of elements in arrays, it said
What is the bug I should look for ?
Thanks a lot.
To salgerman, xwb
Actually, the actual code is not this simple just to choose the largest element from A. I need part of the A matrix to do some matrix operation, i.e.
REAL, DIMENSION (250,250) :: B
A(i,:,j,jj) + B(j,:)
(Sorry I did not show you my actual code since it would be too long...
To xwb,
Suppose the working code look like this.
REAL, DIMENSION :: A(250,250,250,250)
A=0.0
DO i=1,250
DO j=1,250
DO jj=1,250
DO ii = 1,250
x=f(i,ii,j,jj) !f is some function...
Uh Oh
I have no idea on how to work only a portion. It seems that I cannot avoid declaring things like
REAL, DIMENSION(250,250,250,30) :: A1
REAL, DIMENSION(250,250,250,30) :: A2
...
REAL, DIMENSION(250,250,250,30) :: A8
REAL, DIMENSION(250,250,250,10) :: A9
What is worse is that the arrays...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.