@@ -93,7 +93,6 @@ uint32_t TgtStackItemSize = 0;
93
93
94
94
#include " ../../common/elf_common.c"
95
95
96
-
97
96
// / Keep entries table per device
98
97
struct FuncOrGblEntryTy {
99
98
__tgt_target_table Table;
@@ -708,7 +707,7 @@ int32_t __tgt_rtl_init_device(int device_id) {
708
707
709
708
char GetInfoName[64 ]; // 64 max size returned by get info
710
709
err = hsa_agent_get_info (agent, (hsa_agent_info_t )HSA_AGENT_INFO_NAME,
711
- (void *) GetInfoName);
710
+ (void *)GetInfoName);
712
711
if (err)
713
712
DeviceInfo.GPUName [device_id] = " --unknown gpu--" ;
714
713
else {
@@ -718,7 +717,7 @@ int32_t __tgt_rtl_init_device(int device_id) {
718
717
if (print_kernel_trace == 4 )
719
718
fprintf (stderr, " Device#%-2d CU's: %2d %s\n " , device_id,
720
719
DeviceInfo.ComputeUnits [device_id],
721
- DeviceInfo.GPUName [device_id].c_str ());
720
+ DeviceInfo.GPUName [device_id].c_str ());
722
721
723
722
// Query attributes to determine number of threads/block and blocks/grid.
724
723
uint16_t workgroup_max_dim[3 ];
@@ -794,12 +793,11 @@ int32_t __tgt_rtl_init_device(int device_id) {
794
793
if (TeamsPerCUEnvStr) {
795
794
TeamsPerCU = std::stoi (TeamsPerCUEnvStr);
796
795
}
797
-
796
+
798
797
DeviceInfo.NumTeams [device_id] =
799
- TeamsPerCU * DeviceInfo.ComputeUnits [device_id];
798
+ TeamsPerCU * DeviceInfo.ComputeUnits [device_id];
800
799
DP (" Default number of teams = %d * number of compute units %d\n " ,
801
- TeamsPerCU,
802
- DeviceInfo.ComputeUnits [device_id]);
800
+ TeamsPerCU, DeviceInfo.ComputeUnits [device_id]);
803
801
}
804
802
805
803
if (DeviceInfo.NumTeams [device_id] > DeviceInfo.GroupsPerDevice [device_id]) {
@@ -1183,7 +1181,7 @@ __tgt_target_table *__tgt_rtl_load_binary_locked(int32_t device_id,
1183
1181
" Possible gpu arch mismatch: device:%s, image:%s please check"
1184
1182
" compiler flag: -march=<gpu>\n " ,
1185
1183
DeviceInfo.GPUName [device_id].c_str (),
1186
- get_elf_mach_gfx_name (elf_e_flags (image)));
1184
+ get_elf_mach_gfx_name (elf_e_flags (image)));
1187
1185
return NULL ;
1188
1186
}
1189
1187
@@ -1759,11 +1757,10 @@ int32_t __tgt_rtl_run_target_team_region_locked(
1759
1757
getLaunchVals (threadsPerGroup, num_groups, KernelInfo->ConstWGSize ,
1760
1758
KernelInfo->ExecutionMode , DeviceInfo.EnvTeamLimit ,
1761
1759
DeviceInfo.EnvNumTeams ,
1762
- num_teams, // From run_region arg
1763
- thread_limit, // From run_region arg
1760
+ num_teams, // From run_region arg
1761
+ thread_limit, // From run_region arg
1764
1762
loop_tripcount, // From run_region arg
1765
- KernelInfo->device_id
1766
- );
1763
+ KernelInfo->device_id );
1767
1764
1768
1765
if (print_kernel_trace == 4 )
1769
1766
// enum modes are SPMD, GENERIC, NONE 0,1,2
0 commit comments