Results 1 to 6 of 6

Thread: Different code performance on Windows and Linux

  1. #1
    Join Date
    Sep 2010
    Posts
    49

    Different code performance on Windows and Linux

    I have an computer compatible with Windows Vista 64bit operating system with two processors one is Intel Xeon CPU 2.27GHZ and another one is 2.26GHZ. Installed Intel Fortran 11.1.048. Always a error is occurred in compiler flag. Another Linux operating system with Intel Xeon CPU 5410 at 2.33GHZ. I used to do some vector operation in both the systems, problem is whenever I run the program in Windows the other system(Linux) is little bit faster than the window system and vice-versa. Can anyone tell a valid reason for this problem?

  2. #2
    Join Date
    Apr 2008
    Posts
    3,424

    Re: Different code performance on Windows and Linux

    Make sure that the compiler flag for the window system during terminate the program is:
    /nologo /heap-arrays1000 /extend_source:132 /fpe:0 /Qfp-speculation=safe /module:"x64\Release\\" /object:"x64\Release\\" /libs:static /threads /c
    And for the Linux system the compiler flag in Fortran will be:
    make FFLAGS="-warn general -132 -heap-arrays 1000 -O2" \
    CFLAGS=" -O2" \
    CXXFLAGS=" -O2" \
    LFLAGS="-static " \
    FULLLIBS="-L/opt/intel/Compiler/11.0/083/mkl/lib/em64t /opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_solver_lp64_sequential.a -Wl,--start-group /opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_lp64.a /opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_sequential.a /opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_core.a -Wl,--end-group /opt/intel/Compiler/11.0/083/mkl/lib/em64t/libmkl_intel_thread.a -limf -lm " \
    ARFLAGS=" -ruv" \
    OS="lnxem64" DF=lnxem64\
    CMD="SERIAL" pixelinv
    If these two matches with your compiler flag then sure that there is no problem in your compiler error. It for something else.

  3. #3
    Join Date
    May 2008
    Posts
    3,516

    Re: Different code performance on Windows and Linux

    Check you registry serial number which you entered in your system for both windows and the Linux system. The problem may occur for the wrong insertion of the registry serial key. I had an same problem, and found that it was occur for mismatching registry key in my Intel Fortran. So, I am giving the script for the vector operations check this, it will help you
    Code:
    make[1]: Entering directory `SERIAL'
    mpif90 -warn general -132 -heap-arrays 1000 -O2 -static  -c M.F
    mpif90 -warn general -132 -heap-arrays 1000  -O2 -static  -c S.F90
    S.F90(922): (col. 10) remark: LOOP WAS VECTORIZED.
    S.F90(926): (col. 10) remark: LOOP WAS VECTORIZED.

  4. #4
    Join Date
    Apr 2008
    Posts
    3,339

    Re: Different code performance on Windows and Linux

    If you are asking that, your codes are occupies a large number of memory space, as you mentioned in your post that the temporary array copies by one system while you are doing task in another system. Mind that the Linux having the less memory but more in paging, in comparison of any windows version.

  5. #5
    Join Date
    Jan 2006
    Posts
    4,221

    Re: Different code performance on Windows and Linux

    According to your post you are using different compiler in your two different systems. I used the same operation(vector) in the Linux system. And found that some loops are vectorised in any system but not in the other system. Would suggest you turn on the high-level optimization. Fortran90 is not applicable to optimize in the older compiler.

  6. #6
    Join Date
    May 2008
    Posts
    2,792

    Re: Different code performance on Windows and Linux

    I think you are looking in the wrong place fro the initialization phase, it is written in out data, fro that it takes the large amount of memory allocation. Insert the time code for obtaining the initialization time. “time _after_ initialization”. Then again type some script for the terminating phrase “again _before_ termination”.

Similar Threads

  1. Performance of kswapd0 in Linux
    By Alfiee in forum Operating Systems
    Replies: 4
    Last Post: 27-05-2011, 10:20 AM
  2. How to improve the performance of Linux Mint
    By Mahican in forum Operating Systems
    Replies: 4
    Last Post: 16-01-2011, 02:52 PM
  3. Flash performance slow on linux
    By Rily in forum Operating Systems
    Replies: 6
    Last Post: 23-07-2010, 10:23 AM
  4. Performance difference of CUDA in Windows and Linux
    By Roasted in forum Operating Systems
    Replies: 6
    Last Post: 17-05-2010, 09:48 AM
  5. Replies: 0
    Last Post: 04-03-2009, 05:39 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,633,953.66611 seconds with 17 queries