Difference -i4 and -i8 ?

Questions regarding the compilation of VASP on various platforms: hardware, compilers and libraries, etc.


Moderators: Global Moderator, Moderator

Post Reply
Message
Author
Franky
Newbie
Newbie
Posts: 33
Joined: Mon Apr 10, 2006 1:05 pm
License Nr.: Research Group E. Pehlke

Difference -i4 and -i8 ?

#1 Post by Franky » Tue Aug 01, 2006 8:48 am

Hi,
i compiled the parallel version with -i4 (opteron 64bit, portland compiler, mpich2) since I cant get it to work with -i8. The reason might be that we only have the pgf90, pgf77 and not the c-Compiler and i havent figured out what the equivalent switch to -i8 is with the gcc.

MY QUESTION IS:

Whats the difference between vasp compiled with -i4 or -i8?
Are there advantages or disadvantages with respect to -i4?

Thanks for your advice.
Last edited by Franky on Tue Aug 01, 2006 8:48 am, edited 1 time in total.

job
Jr. Member
Jr. Member
Posts: 55
Joined: Tue Aug 16, 2005 7:44 am

Difference -i4 and -i8 ?

#2 Post by job » Tue Aug 01, 2006 9:24 am

-i8 makes integers of default kind 8 bytes, -i4 makes them 4 bytes which is also the default.

In my experience, vasp works fine with 4 byte integers.
Last edited by job on Tue Aug 01, 2006 9:24 am, edited 1 time in total.

Franky
Newbie
Newbie
Posts: 33
Joined: Mon Apr 10, 2006 1:05 pm
License Nr.: Research Group E. Pehlke

Difference -i4 and -i8 ?

#3 Post by Franky » Wed Aug 02, 2006 6:21 am

Hi,
I know what the -i8 and -i4 switches do but my question is could I run into a situation where -i4 gives wrong results / lack of precision?
Or in other words, why is vasp compiled with -i8 in the default Makefile?

Thanks
Last edited by Franky on Wed Aug 02, 2006 6:21 am, edited 1 time in total.

Post Reply