PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

Compiled Fortran executable file can't run on other machines
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
mkcolg



Joined: 30 Jun 2004
Posts: 6218
Location: The Portland Group Inc.

PostPosted: Thu May 09, 2013 8:43 am    Post subject: Reply with quote

Does the second system have Win7 SP1 installed?

My best guess is that it doesn't but the first one does. Win7 didn't support the new Sandy-Bridge (i.e. newer Core i7) AVX instructions until SP1 and AVX binaries simply wont run. The solutions are to either update to SP1 or build your binary to target an older architecture (i.e. compile with -tp nehalem-64).

Hope this helps,
Mat
Back to top
View user's profile
lukeStar



Joined: 02 Mar 2011
Posts: 20

PostPosted: Thu May 09, 2013 8:56 am    Post subject: Reply with quote

Thanks, Mat!

My desktop has win 7 (professional) sp1 installed.
Both have PGI Visual Fortran installed: my laptop (Intel Core i7-3630QM CPU) is 13.4 and desktop (Intel Core i7 CPU) is 12.1.

The strange thing is: the compiled code in my laptop can't run on my desktop, but the compiled cod on my desktop can run on my laptop.

I'm not sure if the above information is helpful for you.
I don't want to target some specific processor, because I want my code fully portable to different computers.

Thank you again!
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6218
Location: The Portland Group Inc.

PostPosted: Thu May 09, 2013 9:24 am    Post subject: Reply with quote

Quote:
Both have PGI Visual Fortran installed: my laptop (Intel Core i7-3630QM CPU) is 13.4 and desktop (Intel Core i7 CPU) is 12.1.
Ok, another possibility is that you need an updated Microsoft C/C++ runtime. In 13.x we updated to use MS Open Tools 11 which uses a newer runtime.

Under the main PGI installation directory are the Microsoft Open Tools directories. Under there, look in the "redist" directory for the MS C runtime library installation binaries. There two directives, one ofr 32-bits and one for 64. Try running the Open Tools 10 version on your laptop, and copy and run the Open Tools 11 version on your desktop.

- Mat
Back to top
View user's profile
lukeStar



Joined: 02 Mar 2011
Posts: 20

PostPosted: Thu May 09, 2013 9:53 am    Post subject: Reply with quote

Thanks, Mat!

But, it's still not working.
In both my computers, I have VS 2008 installed.
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6218
Location: The Portland Group Inc.

PostPosted: Thu May 09, 2013 12:45 pm    Post subject: Reply with quote

Hmm. It really does sound like the Open Tools 11 vcredist_x64.exe and vcredist.exe just need to be run on the desktop, but let's got back and see if we can get more information about what the actual error is.

Can you please run the exe on your desktop within a command shell and see if more errors are printed? Also, I'd like you to build on the laptop in 32-bits and then run it on the desktop (sometimes 32-bit mode gives more error messages).

Quote:
In both my computers, I have VS 2008 installed.
This doesn't matter. It's the Open Tools version that used.

Note that any binary built with MS Open Tools 11 (i.e. PGI 13.x and above) will not run on an XP system.

- Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group