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>
[ROCm/rocprofiler-sdk commit: 35928e6008]
This commit is contained in:
1 orang tua
ee77f548f7
melakukan
28272d4cc9
1 file changed
+3
-4
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user