Skip to content

Commit fa51f46

Browse files
authored
minor fixes typo in Tools/GPU-Occupancy-Calculator (#729)
1 parent df4cc9a commit fa51f46

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Tools/GPU-Occupancy-Calculator/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Intel GPU Occupancy Calculator is HTML Web Application to compute GPU Occupancy
1313
* Generates a list of optimal configuration values for WG, SG and SLM limit that will get 100% Occupancy.
1414

1515
## Usage
16-
* Open Page: [oneapi-src.github.io/oneAPI-Samples/Tools/GPU-Occupancy-Calculator/](https://oneapi-src.github.io/oneAPI-Samples/Tools/GPU-Occupancy-Calculator/)
16+
* Open Page: [oneapi-src.github.io/oneAPI-samples/Tools/GPU-Occupancy-Calculator/](https://oneapi-src.github.io/oneAPI-samples/Tools/GPU-Occupancy-Calculator/)
1717
* Select a GPU from the dropdown and change "EU Count" if necessary OR select the option to enter PCI ID for GPU.
1818
* The tool will load some default values for Global Size, WG size, SG size, SLM size and will compute Occupancy and generate graphs.
1919
* Change the values of GPU target, Global size, WG size, SG size, SLM size or Barrier usage based on your HPC application to calculate Occupancy and tune application.

Tools/GPU-Occupancy-Calculator/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ <h2>Intel® GPU Occupancy Calculator</h2>
495495
grf_mode = '<input type="hidden" id="large_grf" value="0" />';
496496
}
497497

498-
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;
498+
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;
499499
}
500500

501501
// If url param exists load gpu info
@@ -514,7 +514,7 @@ <h2>Intel® GPU Occupancy Calculator</h2>
514514
gpu["Threads_Per_EU"] = parseInt(value[1]);
515515
gpu["EU_Count"] = parseInt(value[2]);
516516
gpu["Max_Threads_Per_Sub_Slice"] = parseInt(value[3]);
517-
gpu["Large_GRF_Mode"] = parseInt(value[4]);
517+
gpu["Large_GRF_Mode"] = value[4];
518518
gpu["Subgroup_Sizes"] = JSON.parse(value[5]);
519519
gpu["SLM_Size_Per_Sub_Slice"] = parseInt(value[6]);
520520
gpu["SLM_Size_Per_Work_Group"] = parseInt(value[7]);

0 commit comments

Comments
 (0)