Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Problems with Portability

Christian_O_
Beginner
688 Views
Hi,

I am encountering problems with portability of my code and hope anyone can give me a hint.

The solution built on my computer with IVF 11.1.046 and VS 2008 works fine on my computer and on another computer at home. Built on my boss's computer (same compiler and VS version) which has equal hardware, but partrly different software installations we are encountering severe errors with computations on his computer (subscript #1 of array has value -2).

Also, the EXE built on my boss's computer works fine on mine !

OS on both computers is Windows XP Professional, SP 3.
I tried the compiled EXE also on another computer running Vista Business, working fine.

So what can be wrong with my boss's setup ?



Best Regards,

Christian
0 Kudos
3 Replies
GVautier
New Contributor III
688 Views
hello

Different results on different machines often means stack variables initialization problems.

Check all uninitialized variables.

0 Kudos
bmchenry
New Contributor II
688 Views

a bit of clarification is required: is it the EXE built on your machine that works on all but your bosses machine? OR is it that when you build the EXE on your bosses machine that it doesn't work properly ON THAT MACHINE but works fine on other machines?
and then, in general, what exactly does the program do? Does it read a data file which may be corrupt or missing on your boss's machine?
Isyour boss's machine a different processor (AMD?)
0 Kudos
Paul_Curtis
Valued Contributor I
688 Views

Look up "SSE2" on Wikipedia and see whether all your processors support these commands. If you disable the default SSE2 dependence (/Arch:ia32) the problem will likely go away.
0 Kudos
Reply