<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/75677>75677</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[OpenMP] Performance degradation from devices reorganization
</td>
</tr>
<tr>
<th>Labels</th>
<td>
openmp,
openmp:libomptarget
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
jdoerfert
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
dhruvachak
</td>
</tr>
</table>
<pre>
@ronlieb collected some performance numbers using versions of the upstream compiler that show degradations after the devices reorganization. It appears that https://github.com/llvm/llvm-project/pull/74397 is one of the patches causing the degradation. Currently, all available devices on a system are being initialized eagerly. Previously, only devices that were being used by an application would be initialized.
These are the llvm-project before/after commits used for comparison.
Before SHA: bb0f162b
After SHA: 77c40ea3
SPEChpc 2021 benchmark 505.lbm degraded 10% when using 8 MPI ranks on a system with 8 AMD GPUs. The configuration tested is the default setting without the env-var ROCR_VISIBLE_DEVICES set.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUVMGOozgQ_RpzKQ0iBkI4cEgnnd1I25poMjvXUdkU4GljI9skynz9Ckh3pw97mEsiKNfze6_qgd6r1hBVLH9inP-qLbmGXGCcs3wf4Rg666q6c-MFZYevkbD1rWJZ4qzRigRIqzXJQDV42xMM5BrrejSSwIy9IOdh9Mq0cCHnlTUebAOhIxgHHxxhD9L2g9LkIHQYwHf2CjW1DmsM83lswlwkqOmiJHlwZF2LRv2eT8RwDIDDQOj8gtGFMHiWbhk_MH5oVehGEUvbM37Q-vL292Vw9hfJwPhhGLVm_FBkaVmA8mANvdEcMMiOPEhcZCw83unFsBudIxP0jfEdoNaAF1Qahf7gaw0g-JsP1AM6AkETkjIqKNTqN9VA2JLTtxhOji7Kjn6Bs0bf3lFmaVd67x891SBugGZSr5WcCcHVjroGQY_4MUv2LNkuv9878jTzmLQ8OgGCGuuI8cPiubR9r4Jfbmrs_GJAp7w1nxCf5jY4_71l6RaESJrVmoultp2R7qWikFlCmD42n0_Pu26QwBO-AkFGdj26V8iTPNaiv3tNNawSxnO4dmTuC7WBl9MRHJrXzw5fVehgA9uXPfx1-tfH8L0jkNY0qh3d4lEgP22s8vdxNjjqAJ5CmIAnADuGuUbm8uWCDr593X37-eN4Pj798_xz__zjuHs-Tw1xVFdpXaYlRlStioSvN0WeraOuKkRebpCIVlRuGrnJ8vWmzlKRl0mTFwmPVMUTnq74ap0kWZ6t46ZuSDZFnlFZrkqSLEuoR6XjaUaxdW2kvB-pKvJ1UUQaBWl_z60dyPTDFFq--3hMt1oJ2w8BXUtvkXbVPHIxtp5liVY--I8Lggp6_hZ8Hci8nFi-h9NDoh8WHxpn-_9JZDQ6Xf1xCGdxforhpO-_AAAA__8pX49R">