Author |
Message |
Topic: SDBG64 with derived types |
JohnCampbell
Replies: 11
Views: 548
|
Forum: 64-bit Posted: Sun May 05, 2024 7:58 am Subject: |
To previously test the program, I used PLATO (which was set to Gfortran !)
Now with /64 it crashes, but works with 32-bit
[FTN95/Win32 Ver. 9.00.0 Copyright (c) Silverfrost Ltd 1993- ... |
Topic: SDBG64 with derived types |
JohnCampbell
Replies: 11
Views: 548
|
Forum: 64-bit Posted: Sat May 04, 2024 6:13 am Subject: |
I suggest that an enhanced version of the derived type might be more functional, as in the example below
module mod
type cell
integer :: n = 0
real, allocatable, dimension (: ... |
Topic: Use of intrinsic function TAN as arg fcn.causes linker error |
JohnCampbell
Replies: 3
Views: 2908
|
Forum: 64-bit Posted: Wed Mar 27, 2024 3:05 am Subject: |
In this example, would you need to provide an interface for fzero ?
I expect there could be problems with using an intrinsic, where the kind being expected is not identified ?
Is 32-bit FTN95 co ... |
Topic: Linking order of object files |
JohnCampbell
Replies: 10
Views: 1648
|
Forum: Support Posted: Wed Mar 20, 2024 12:57 pm Subject: |
If "FILE_A contains MAIN and SUB_A. They get compile into" OBJ_A.obj
Then, "Because (at this point) SUB_A is not referenced, it is discarded from the link". This does not happen ... |
Topic: Linking order of object files |
JohnCampbell
Replies: 10
Views: 1648
|
Forum: Support Posted: Wed Mar 20, 2024 4:41 am Subject: |
Bill, why would main and file A be a library ? They should be loaded from a .obj file.
You say sub_a is not referenced, but if in an .obj it would be in the link list and recognised for le file_b. ... |
Topic: Insufficient virtual stack with 64bits |
JohnCampbell
Replies: 24
Views: 3358
|
Forum: 64-bit Posted: Mon Mar 18, 2024 12:43 am Subject: |
Paul,
The concept of a larger stack for automatic or large local arrays, plus for temporary arrays is very good.
Also the use of large virtual address strides provides flexibility for a very lar ... |
Topic: Insufficient virtual stack with 64bits |
JohnCampbell
Replies: 24
Views: 3358
|
Forum: 64-bit Posted: Sun Mar 17, 2024 2:42 am Subject: |
Paul,
Could you provide some more information on "Vstack".
Is it a general replacement for the STACK, enabling much larger local or automatic arrays without the need to redefine the St ... |
Topic: Linking order of object files |
JohnCampbell
Replies: 10
Views: 1648
|
Forum: Support Posted: Sun Mar 17, 2024 2:14 am Subject: |
I have not utilised .dll files and since converting to FTN95 /64 Ver 8.0, I have stoped using .lib files, but using a long list of "lo ..\lib64\xxlib\aaa.obj" files with "slink64 @saplo ... |
Topic: Insufficient virtual stack with 64bits |
JohnCampbell
Replies: 24
Views: 3358
|
Forum: 64-bit Posted: Fri Mar 15, 2024 1:38 am Subject: |
No Dan, it is relevant at all.
If you have a poor solution approach, the compiler can only go so far.
There is still some need for understanding preferred numerical approaches in large calculati ... |
Topic: Insufficient virtual stack with 64bits |
JohnCampbell
Replies: 24
Views: 3358
|
Forum: 64-bit Posted: Thu Mar 14, 2024 2:11 pm Subject: |
You could try this alternative code, selecting apy4@.
I ran this with FTN95 Release x64 on my Ryzen with 64 GBytes of physical memory. The test used 59 GBytes and ran faster than Gfortran.
integ ... |
Topic: Insufficient virtual stack with 64bits |
JohnCampbell
Replies: 24
Views: 3358
|
Forum: 64-bit Posted: Thu Mar 14, 2024 1:42 pm Subject: Re: |
I am sure you've heard that no one already optimizes codes by hand anymore, compilers do that better than average programmer.
I don't see any compiler fixing your mistakes !
Try this changed co ... |
Topic: Insufficient virtual stack with 64bits |
JohnCampbell
Replies: 24
Views: 3358
|
Forum: 64-bit Posted: Thu Mar 14, 2024 12:07 am Subject: Re: |
gFortran:
Up to the full RAM memory + swap 933 GB no any limits were found
What stack size are you selecting in Gfortran? Have you been able to exceed the 512 MByte limit I have assumed ?
I ex ... |
Topic: Insufficient virtual stack with 64bits |
JohnCampbell
Replies: 24
Views: 3358
|
Forum: 64-bit Posted: Sun Mar 10, 2024 1:46 pm Subject: |
Dan,
1) The available virtual memory (not address space) on the physical memory + paging space can sometimes be a limit on x64. This may not be a problem with a larger Vstack, as virtual memory is ... |
Topic: Labelled DO loop and /opt /64 leads to optimisation bug |
JohnCampbell
Replies: 2
Views: 1013
|
Forum: 64-bit Posted: Sun Mar 10, 2024 5:31 am Subject: |
The following update identifies that ij is not being updated in the do i loop if /opt is selected
program labDObug
use iso_fortran_env
implicit none
integer, parameter :: nx = 5, ny ... |
Topic: Insufficient virtual stack with 64bits |
JohnCampbell
Replies: 24
Views: 3358
|
Forum: 64-bit Posted: Sat Mar 09, 2024 1:52 pm Subject: |
Dan,
could you try:
dVolumeCell = XCellsize * dyCellsize * dZCellsize +1.d-30
DensityE3D = DensityE3D / dVolumeCell
ie remove the "array section"
and let me know what happe ... |
|