Skip to content

updated GPU Occupancy Calculator with PVC GPU #1425

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 27 additions & 3 deletions Tools/GPU-Occupancy-Calculator/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ <h2>Intel® GPU Occupancy Calculator</h2>
}
},
{
"name": "Discrete GPU (Xe HPG / Arc™)",
"name": "Discrete GPU (Xe HPG / Arc™ Graphics)",
"code": "xe_hpg_dg2_arc",
"device_info": {
"EU_Per_Sub_Slice": 16,
Expand All @@ -210,7 +210,7 @@ <h2>Intel® GPU Occupancy Calculator</h2>
}
},
{
"name": "Discrete GPU (Xe HPG / Flex)",
"name": "Discrete GPU (Xe HPG / Data Center Flex)",
"code": "xe_hpg_dg2_flex",
"device_info": {
"EU_Per_Sub_Slice": 16,
Expand All @@ -227,6 +227,24 @@ <h2>Intel® GPU Occupancy Calculator</h2>
"Max_Num_Of_Barrier_Registers": 32
}
},
{
"name": "Discrete GPU (Xe HPC / Data Center Max)",
"code": "xe_hpc_pvc",
"device_info": {
"EU_Per_Sub_Slice": 8,
"Threads_Per_EU": 8,
"EU_Count": [448, 896, 1024],
"Max_Threads_Per_Sub_Slice": 64,
"Large_GRF_Mode": true,
"Subgroup_Sizes": [32, 16],
"SLM_Size_Per_Sub_Slice": 128,
"SLM_Size_Per_Work_Group": 128,
"TG_SLM_Sizes": [0, 1, 2, 4, 8, 16, 32, 48, 64, 96, 128],
"Max_Work_Group_Size": 1024,
"Max_Num_Of_Workgroups": 64,
"Max_Num_Of_Barrier_Registers": 32
}
},
];
/*List IMCOMPLETE*/
var pci_targets=[
Expand Down Expand Up @@ -899,7 +917,7 @@ <h2>Intel® GPU Occupancy Calculator</h2>
grf_mode = '<input type="hidden" id="large_grf" value="0" />';
}

document.querySelector('#occ_cal .target_info').innerHTML = '<b>' + gpu.product_name + '</b><br><b>' + gpu.name + '</b><br>+ EUs Per SS/DSS: ' + gpu.EU_Per_Sub_Slice + '<br>+ Threads Per EU: ' + gpu.Threads_Per_EU + '<br>+ EU Count: ' + eu_count + grf_mode;
document.querySelector('#occ_cal .target_info').innerHTML = '<b>' + gpu.product_name + '</b><br><b>' + gpu.name + '</b><br>+ EUs Per SS/DSS: ' + gpu.EU_Per_Sub_Slice + '<br>+ Threads Per EU: <span id="teu">' + gpu.Threads_Per_EU + '</span><br>+ EU Count: ' + eu_count + grf_mode;
}

// If url param exists load gpu info
Expand Down Expand Up @@ -1036,6 +1054,12 @@ <h2>Intel® GPU Occupancy Calculator</h2>
var large_grf = parseInt(document.getElementById("large_grf").value);
var num_ss = num_eu / gpu.EU_Per_Sub_Slice;

// Update UI if large_grf mode
if(large_grf){
document.querySelector("#teu").innerHTML = gpu.Threads_Per_EU/2;
} else {
document.querySelector("#teu").innerHTML = gpu.Threads_Per_EU;
}
// Check if Global Size is valid and calculate size
var global_size = document.getElementById("global_size").value.split(",");
if (global_size.length === 1){
Expand Down