Running Guided Auto Parallelism

In this step, you will use the -guide option with the compiler to generate a guided auto parallelism report in the same terminal session from the previous step. If you open a new terminal session, you will have to set the environment variables in the new terminal session.

  1. In the sample code directory, compile the source code with the following command:

    ifort -c -guide scalar_dep.f90

  2. Find the following in the compiler output. The report starts with GAP REPORT LOG OPENED and ends at END OF GAP REPORT LOG.

    remark #30761: Add -parallel option if you want the compiler to generate
    recommendations for improving auto-parallelization.
    
    
    scalar_dep.f90(66): remark #30515: (VECT) Assign a value to the variable(s) "t"
    at the beginning of the body of the loop at line 66. This will allow the loop to
    be vectorized. [VERIFY] Make sure that, in the original program, the variable(s)
    "t" read in any iteration of the loop has been defined earlier in the same
    iteration. 
    

    Note

    You may get different remark and line numbers.

In the next step, you will analyze the contents of the report to learn what you can do to add parallelism to your source code.

Previous: Preparing the Project for Guided Auto-parallelization Next: Analyzing Guided Auto-parallelization Reports


Submit feedback on this help topic