| View previous topic :: View next topic |
| Author |
Message |
lukeStar
Joined: 02 Mar 2011 Posts: 20
|
Posted: Wed May 08, 2013 3:13 pm Post subject: Compiled Fortran executable file can't run on other machines |
|
|
I have a Fortran code compiled using PGI Visual Fotran 13.4 in Win 7 (64 bit) os. It can run on the laptop compiling it, but can't run on other machines.
I didn't expect this happen. IT seems the compiled code not portable.
Anyone can help me? Thanks a lot in advance! |
|
| Back to top |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 4996 Location: The Portland Group Inc.
|
Posted: Wed May 08, 2013 4:13 pm Post subject: |
|
|
| Quote: | | It can run on the laptop compiling it, but can't run on other machines. | Can you describe the error you get when running on the other machines? What OS are the other machines running?
| Quote: | | IT seems the compiled code not portable. | How did they compile it?
- Mat |
|
| Back to top |
|
 |
lukeStar
Joined: 02 Mar 2011 Posts: 20
|
Posted: Wed May 08, 2013 5:58 pm Post subject: |
|
|
It is the same as my laptop: Win 7 (64bit).
When clicking the executable file, a error message popup like An error occurred for this program and windows is checking solution... |
|
| Back to top |
|
 |
lukeStar
Joined: 02 Mar 2011 Posts: 20
|
Posted: Wed May 08, 2013 6:00 pm Post subject: |
|
|
| This is a pure Fortran code without CUDA. I complied it using O-3 option and it runs well in my laptop. I don't know what's wrong with the compiler or the compiling settings. |
|
| Back to top |
|
 |
lukeStar
Joined: 02 Mar 2011 Posts: 20
|
Posted: Wed May 08, 2013 7:03 pm Post subject: |
|
|
Both are Intel core i7.
I used the default values for almost all the compiling settings except the option maximum speed optimization option was selected.
Previously, the same code was compiled using Compaq Fortran and the executable file could be run on both computers without any problems. |
|
| Back to top |
|
 |
|