Align calculation of cu_per_engine with compute_unit/shader_engs (#278)

* Align calculation of cu_per_engine with compute_unit/shader_engs

* source formatting (clang-format v11) (#279)

Co-authored-by: bwelton <bwelton@users.noreply.github.com>

* Update agent.cpp

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: bwelton <bwelton@users.noreply.github.com>
This commit is contained in:
Benjamin Welton
2023-12-06 15:39:43 -08:00
committed by GitHub
vanhempi 7ab334b432
commit 35928e6008
+3 -4
Näytä tiedosto
@@ -504,11 +504,10 @@ read_topology()
agent_info.array_count / agent_info.simd_arrays_per_engine;
// depends on above
if(agent_info.num_shader_banks * agent_info.simd_arrays_per_engine > 0)
if(agent_info.num_shader_banks > 0)
{
agent_info.cu_per_engine =
(agent_info.simd_count / agent_info.simd_per_cu) /
(agent_info.num_shader_banks * agent_info.simd_arrays_per_engine);
agent_info.cu_per_engine = (agent_info.simd_count / agent_info.simd_per_cu) /
(agent_info.num_shader_banks);
}
}