Loading...
You are not logged-in Login/Register





  • Posts   Search Threads
  • philip-cobb7July 1, 2002 7:56 PM PDT   
    General Optimization Question

    After reading through the users guide on optimization for the Intel Fortran compiler for Linux, I had a question. Is the optimization mainly for just compiling the code, or for actually speeding up the running of the code once compiled? I have been working on this, and I haven't really noticed any major difference in speed of running code with or without different optimizations. Am I doing something wrong? Is there a general technique that I should be using to get my code to run the fastest possible? Any help would be great. Thanks.


    Steve Lionel (Intel)July 1, 2002 8:05 PM PDT
    Rate
     
    Re: General Optimization Question

    The goal of optimization is to make your program run faster. While we'd like the compilation to be fast too, that's not something you control with optimization switches.

    It may be that your application is not CPU or memory-bound, which limits the effect of optimization. You can use code profiling tools such as prof, or if you have a Windows PC available, you can use Intel's VTune performance analyzer with the data collector run on Linux.

    If your application is waiting for disk I/O to complete, or is being limited by memory throughput, there may not be much a compiler can do to help you. A good analyzer will tell you where your program is spending its time.

    Steve

    Steve

    Attaching or including files in a post
    Doctor Fortran blog
    @DoctorFortran on Twitter

Forum jump:  

Intel Software Network Forums Statistics

16,367 users have contributed to 46,339 threads and 163,926 posts to date.

In the past 24 hours, we have 27 new thread(s) 145 new posts(s), and 83 new user(s).

In the past 3 days, the most popular thread for everyone has been Formula for the intersection of straight lines The most posts were made to Take a look at John Burkhard&# The post with the most views is \"-check none\" generates error

Please welcome our newest member dozo1971


For more complete information about compiler optimizations, see our Optimization Notice.