Skip to content

Latest commit

 

History

History
62 lines (53 loc) · 2.75 KB

File metadata and controls

62 lines (53 loc) · 2.75 KB

Loop Extractor

Installation

  1. Follow topmost installation instruction
    • The topmost setup.sh script will run setup.sh script of Loop Extractor to do the following automatically
      • Build Loop Extractor
  2. Install Intel Advisor
    • The extractor right now hardcoded the Advisor so that the env loading script is at /host/opt/intel/oneapi/advisor/2023.0.0/advisor-vars.sh
  3. Install compilers (Intel, etc)

Using the Loop Extractor

General command

Run the python script:

python extractor_dir/extractCodelet.py

where extractor_dir is the folder containing the extractCodelet.py script. Assuming this extractor is obtained from the program optimization advice exploration script under topmost_dir, extractor_dir will be topmost_dir/qaas-extractor.

Below include some sample steps to try the loop extractor. Assuming

  • the working directory is workdir
  • the repository is checked out at workdir/applications.services.program-optimization-advice-exploration-scripts
  • so, topmost_dir is workdir/applications.services.program-optimization-advice-exploration-scripts.
  • and, extractor_dir is workdir/applications.services.program-optimization-advice-exploration-scripts/qaas-extractor.

Testing using SPEC2017

  1. Create SPEC2017 directory at workdir/SPEC2017
  2. Put the benchmark under workdir/SPEC2017/benchmark so that workdir/SPEC2017/benchmark/LICENSE.txt is the SPEC license file
  3. Checkout LLVM CMake scripts for SPEC (i.e. perform the following command under workdir/SPEC2017)
    git clone [email protected]:llvm/llvm-test-suite
    
  4. Go to the script directory topmost_dir.
  5. Update qaas-extractor/extractCodelet.py, set binary variable in main() to the one of the SPEC benchmarks (e.g.binary='525.x264_r')
  6. Start container ./container/run-container.sh.
  7. Make sure you source needed compiler scripts to set up the PATH, LD_LIBRARY_PATH and other variables.
  8. Run the Loop extractor under workdir directory.
   cd workdir
   python extractor_dir/extractCodelet.py

Testing using CloverLeaf application

  1. Checkout updated CloverLeaf app
    git clone [email protected]:davidwong/CloverLeaf.git
    
  2. Go to the script directory topmost_dir.
  3. Update qaas-extractor/extractCodelet.py, set binary variable in main() to CloverLeaf app (e.g.binary='clover_leaf')
  4. Start container ./container/run-container.sh.
  5. Make sure you source needed compiler scripts to set up the PATH, LD_LIBRARY_PATH and other variables.
  6. Run the Loop extractor under workdir directory.
   cd workdir
   python extractor_dir/extractCodelet.py