...
- prepare a standard launch
- Copy
python
folder from/gss_efgw_work/work/g2fjc/jintrac/v220922/python
to some location onpfs
for example:/pfs/work/g2pbloch/python
- Change
JINTRAC_PYTHON_DIR
in rjettov (430 line) to python folder on pfs from step 2 - Change
run_python_driver (line 49)
in/pfs/work/g2pbloch/python
: - cProfile :
mpirun --allow-run-as-root -np $NPROC python -u -m cProfile -o jintrac.prof /pfs/work/g2pbloch/jetto_profiler/jintrac_imas_driver.py mpi
- line-profiler :
mpirun --allow-run-as-root -np $NPROC python -u -m kernprof -l /pfs/work/g2pbloch/jetto_profiler/jintrac_imas_driver.py mpi
- Run
./rjettov -S -I -p -x64 test v220922 g2fjc
In python
5. cProfile analysis
To read data from test.prof we need python script. We can use e.g.
Code Block | ||||
---|---|---|---|---|
| ||||
import pstats
stats = pstats.Stats('test.prof')
stats.strip_dirs().sort_stats(pstats.SortKey.TIME).print_stats() |