# CABLE profiling results

**URL:** <https://forum.access-hive.org.au/t/cable-profiling-results/654>\
**Category:** CABLE\
**Tags:** mpi, bug\
**Created:** [4 April 2023 06:23 UTC](https://forum.access-hive.org.au/t/cable-profiling-results/654 "2023-04-04T06:23:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juergen](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/juergen/32/2748_2.png) [@Juergen](https://forum.access-hive.org.au/u/Juergen)\
**Post date:** [4 April 2023 06:23 UTC](https://forum.access-hive.org.au/t/cable-profiling-results/654/1 "2023-04-04T06:23:51Z")

</div>

We ran the ‘scorep’ profiler for a mpi test run of the CABLE-POP model (aka the Canberra version). The profiler checks how much time the model spends in each subroutine. It showed that more than 80% of run time was used on communication between master and workers. Particularly the MPI\_Recv subroutine seems to be very time consuming.

 ![profiler_relative_time](https://us1.discourse-cdn.com/flex020/uploads/access1/original/1X/18575fb99401708a33c00a14c21a7969c88b18a0.png)

Would be good to know if others have similar issues with their version.

To run the profiler, we added/modified the following in the build script:

module add scorep  
FC=“scorep mpiifort”

and added the following lines to the run script:

export SCOREP\_ENABLE\_PROFILING=1  
export SCOREP\_EXPERIMENT\_DIRECTORY=/path/to/profiler\_outputs

We looked at the outputs using CubeGUI \> \> [https://www.scalasca.org/software/cube-4.x/download.html](https://protect-au.mimecast.com/s/iaPOCANp0rfMj9KOuGw1kB?domain=scalasca.org)

cheers,  
Juergen

---

<div class="post-metadata">

**Author:** ![Jhan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/jhan/32/721_2.png) [@Jhan](https://forum.access-hive.org.au/u/Jhan)\
**Post date:** [4 April 2023 07:34 UTC](https://forum.access-hive.org.au/t/cable-profiling-results/654/2 "2023-04-04T07:34:36Z")

</div>

Hi Jurgen,

Several years ago I was profiling CABLE. I think it was pre-CMIP5 even, because of the reason I put it down. Even without POP the MPI drivers were the main culprits (as you also found). This didn’t surprise me a great deal as the IO at the front end is where it spends a huge chunk of time, and then it keeps coming back to the head node to collate all the fields. It might be nice to have a reliable measure of how many extra cores can increase performance before it all just gets swamped by network traffic.

So given I didn’t really learn anything, I profiled the serial model. The model is/was spending a huge chunk of time in “canopy”. No surprise I guess as there are two major loops there. It might be nice to improve on this but we’ve never had the time. Coupled in ACCESS the LSM only takes up 1 to a few percent of runtime. Hence I put the issue down. It’s likely even worse now as the UM has adopted ENDGAME dynamics, doubled atmospheric resolution, etc.

Cheers.  
Jhan
