Skip to content

Commit 5061379

Browse files
authored
[SYCLomatic] Add extra comment for helper function calculate_max_active_wg_per_xecore() (#921)
Signed-off-by: Jiang, Zhiwei <[email protected]>
1 parent 4879bae commit 5061379

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

clang/runtime/dpct-rt/include/util.hpp.inc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,8 @@ public:
823823
// Device|get_current_device
824824
// DPCT_DEPENDENCY_END
825825
// DPCT_CODE
826-
/// Computes the max active work-group number per Xe-Core. Ref to
826+
/// This function is used for occupancy calculation, it computes the max active
827+
/// work-group number per Xe-Core. Ref to
827828
/// https://github.com/oneapi-src/oneAPI-samples/tree/master/Tools/GPU-Occupancy-Calculator
828829
/// \param [out] num_wg Active work-group number.
829830
/// \param [in] wg_size Work-group size.

clang/test/dpct/helper_files_ref/include/util.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,8 @@ class logical_group {
625625
}
626626
};
627627

628-
/// Computes the max active work-group number per Xe-Core. Ref to
628+
/// This function is used for occupancy calculation, it computes the max active
629+
/// work-group number per Xe-Core. Ref to
629630
/// https://github.com/oneapi-src/oneAPI-samples/tree/master/Tools/GPU-Occupancy-Calculator
630631
/// \param [out] num_wg Active work-group number.
631632
/// \param [in] wg_size Work-group size.

0 commit comments

Comments
 (0)