- 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
- The topmost setup.sh script will run setup.sh script of Loop Extractor to do the following automatically
- 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
- The extractor right now hardcoded the Advisor so that the env loading script is at
- Install compilers (Intel, etc)
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
.
- Create SPEC2017 directory at workdir
/SPEC2017
- Put the benchmark under workdir/
SPEC2017/benchmark
so that workdir/SPEC2017/benchmark/LICENSE.txt
is the SPEC license file - Checkout LLVM CMake scripts for SPEC (i.e. perform the following command under workdir/
SPEC2017
)git clone [email protected]:llvm/llvm-test-suite
- Go to the script directory topmost_dir.
- Update
qaas-extractor/extractCodelet.py
, setbinary
variable inmain()
to the one of the SPEC benchmarks (e.g.binary='525.x264_r'
) - Start container
./container/run-container.sh
. - Make sure you source needed compiler scripts to set up the
PATH
,LD_LIBRARY_PATH
and other variables. - Run the Loop extractor under workdir directory.
cd workdir python extractor_dir/extractCodelet.py
- Checkout updated CloverLeaf app
git clone [email protected]:davidwong/CloverLeaf.git
- Go to the script directory topmost_dir.
- Update
qaas-extractor/extractCodelet.py
, setbinary
variable inmain()
to CloverLeaf app (e.g.binary='clover_leaf'
) - Start container
./container/run-container.sh
. - Make sure you source needed compiler scripts to set up the
PATH
,LD_LIBRARY_PATH
and other variables. - Run the Loop extractor under workdir directory.
cd workdir python extractor_dir/extractCodelet.py