forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Search found 2003 matches
forums.silverfrost.com Forum Index
Author Message
  Topic: Allocation of memory
JohnCampbell

Replies: 12
Views: 96

PostForum: Support   Posted: Sat Dec 15, 2018 9:55 am   Subject:
George,

FTN95.exe is a 32-bit program that can be used to generate either 32-bit .exe or 64-bit .exe

64-bit .exe can only be run on a Windows 64-bit operating system.
If you run Task Manager, y ...
  Topic: 64-Bit FTN95 Compiler
JohnCampbell

Replies: 43
Views: 18653

PostForum: General   Posted: Sat Dec 15, 2018 9:26 am   Subject:
It is worth running the program I provided both for FTN95 (/32) and FTN95 /64
( Note : line 3 logical :: bit_64 = .false. needs to be changed for the way I have written the code, although suggestio ...
  Topic: 64-Bit FTN95 Compiler
JohnCampbell

Replies: 43
Views: 18653

PostForum: General   Posted: Wed Dec 12, 2018 2:14 pm   Subject:
Eddie,

I am not sure where A,B & C are going in the original example. Unlikely it would be on the stack, as 1200 Mb would overflow the stack.
My comment regarding "unlike the stack, which ...
  Topic: Allocation of memory
JohnCampbell

Replies: 12
Views: 96

PostForum: Support   Posted: Wed Dec 12, 2018 1:17 pm   Subject:
Are you using 32-bit with /check ? This could explain the problem, if the allocate is used many times.
If so, try changing to /debug and see if the problem disappears.
  Topic: 64-Bit FTN95 Compiler
JohnCampbell

Replies: 43
Views: 18653

PostForum: General   Posted: Wed Dec 12, 2018 1:06 pm   Subject: Re:
It seems that going as far as Z (at full size) is an array too far - because there are two 2Gb limits, one for straightforward memory and one for allocatable memory.

I don't think that is the case ...
  Topic: 64-Bit FTN95 Compiler
JohnCampbell

Replies: 43
Views: 18653

PostForum: General   Posted: Wed Dec 12, 2018 10:03 am   Subject:
ctd : contains
contains

subroutine report_memory_usage (string)
character string*(*)
!
integer, parameter :: knd = 4
!
stdcall GlobalMemoryStatu ...
  Topic: 64-Bit FTN95 Compiler
JohnCampbell

Replies: 43
Views: 18653

PostForum: General   Posted: Wed Dec 12, 2018 10:02 am   Subject:
The following might not be very different, but provides more info for 32-bit or 64-bit compile. "bit_64" needs to be adjusted for 64-bit.
64-bit is a better option, unless you only have 32- ...
  Topic: 64-Bit FTN95 Compiler
JohnCampbell

Replies: 43
Views: 18653

PostForum: General   Posted: Wed Dec 12, 2018 2:17 am   Subject:
code ctd.
subroutine report_memory_usage (string)
character string*(*)
!
integer, parameter:: knd = 4

stdcall GlobalMemoryStatusEx 'GlobalMemoryStatusEx'(REF ...
  Topic: 64-Bit FTN95 Compiler
JohnCampbell

Replies: 43
Views: 18653

PostForum: General   Posted: Wed Dec 12, 2018 2:07 am   Subject:
Eddie,

Combining your program and info Paul has provided previously, the following program demonstrates allocating of 4gb.
Note:
I have not tested using these arrays
The arrays above 2gb must be ...
  Topic: Output Window functionality + clearwin64.dll
JohnCampbell

Replies: 8
Views: 268

PostForum: ClearWin+   Posted: Sat Nov 24, 2018 2:19 am   Subject:
Dietmar,

As you have discovered with I/O (which has the most problems) if you link in a .obj from another compiler, you will need supporting routines from that compiler's libraries.
I tried this ...
  Topic: Output Window functionality + clearwin64.dll
JohnCampbell

Replies: 8
Views: 268

PostForum: ClearWin+   Posted: Fri Nov 23, 2018 2:57 am   Subject:
As mecej4 indicated, code compiled with ifort will use ifort I/O routines and code compiled with FTN95 will use FTN95 routines.
If you want to send output to FTN95/Windows.out, could you create a lib ...
  Topic: Incorrect results for sum(vector expression)
JohnCampbell

Replies: 6
Views: 247

PostForum: Support   Posted: Mon Nov 19, 2018 4:26 am   Subject:
mecej4,

What an example !!
Where did you get this code from ?
What would happen if N is not a multiple of 4 ?
If this is an example of Fortran on WWW they didn't learn Fortran where I did.

I ...
  Topic: Difference between release and checkmate?
JohnCampbell

Replies: 32
Views: 1131

PostForum: General   Posted: Thu Nov 15, 2018 12:48 pm   Subject:
With the check program, why don't you use SDBG and see where these calculations are taking place.

Examples such as:
"Formelzahler : Z1 = 177.5959" vs "Formelzahler : Z1 = 178.390 ...
  Topic: No E format in Clearwin
JohnCampbell

Replies: 39
Views: 5836

PostForum: Suggestions   Posted: Mon Nov 12, 2018 5:43 am   Subject: Re:
Up to a point, John, you wasted your time.

Eddie,

In many ways you are so correct.
I am often looking at alternative algorithms that I think suit the modern hardware, especially vector instruct ...
  Topic: Array expressions mishandled when /opt is used
JohnCampbell

Replies: 14
Views: 673

PostForum: 64-bit   Posted: Mon Nov 12, 2018 5:30 am   Subject:
I was more trying to identify which types of array syntax are failing, hopefully to assist with the bug identification
I also tried a 3rd option that used F77 wrappers, but it is not as clearly prese ...
 
Page 1 of 134 Goto page 1, 2, 3 ... 132, 133, 134  Next
All times are GMT + 1 Hour
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group