Lines Matching refs:ThreadsPerGroup

469   std::vector<int> ThreadsPerGroup;  member in RTLDeviceInfoTy
1019 ThreadsPerGroup.resize(NumberOfDevices); in RTLDeviceInfoTy()
1070 ThreadsPerGroup[I] = RTLDeviceInfoTy::DefaultWgSize; in RTLDeviceInfoTy()
1074 GroupsPerDevice[I], ThreadsPerGroup[I]); in RTLDeviceInfoTy()
1212 int ThreadsPerGroup = RTLDeviceInfoTy::DefaultWgSize; in getLaunchVals() local
1227 DP("threadsPerGroup: %d\n", ThreadsPerGroup); in getLaunchVals()
1232 ThreadsPerGroup = ThreadLimit; in getLaunchVals()
1237 ThreadsPerGroup += WarpSize; in getLaunchVals()
1240 if (ThreadsPerGroup > RTLDeviceInfoTy::MaxWgSize) { // limit to max in getLaunchVals()
1241 ThreadsPerGroup = RTLDeviceInfoTy::MaxWgSize; in getLaunchVals()
1242 DP("Setting threads per block to maximum %d\n", ThreadsPerGroup); in getLaunchVals()
1246 if (ThreadsPerGroup > ConstWGSize) { in getLaunchVals()
1247 ThreadsPerGroup = ConstWGSize; in getLaunchVals()
1249 ThreadsPerGroup); in getLaunchVals()
1252 DP("threadsPerGroup: %d\n", ThreadsPerGroup); in getLaunchVals()
1253 DP("Preparing %d threads\n", ThreadsPerGroup); in getLaunchVals()
1272 if (ThreadsPerGroup > in getLaunchVals()
1276 NumGroups = (MaxTeams * RTLDeviceInfoTy::MaxWgSize) / ThreadsPerGroup; in getLaunchVals()
1300 NumGroups = ((LoopTripcount - 1) / ThreadsPerGroup) + 1; in getLaunchVals()
1311 NumGroups, LoopTripcount, ThreadsPerGroup); in getLaunchVals()
1337 DP("threadsPerGroup: %d\n", ThreadsPerGroup); in getLaunchVals()
1342 ThreadsPerGroup); in getLaunchVals()
1345 Res.WorkgroupSize = ThreadsPerGroup; in getLaunchVals()
1346 Res.GridSize = ThreadsPerGroup * NumGroups; in getLaunchVals()
2131 DeviceInfo().ThreadsPerGroup[DeviceId] = in __tgt_rtl_init_device()
2135 if (DeviceInfo().ThreadsPerGroup[DeviceId] == 0) { in __tgt_rtl_init_device()
2136 DeviceInfo().ThreadsPerGroup[DeviceId] = RTLDeviceInfoTy::MaxWgSize; in __tgt_rtl_init_device()
2138 } else if (enforceUpperBound(&DeviceInfo().ThreadsPerGroup[DeviceId], in __tgt_rtl_init_device()
2143 DeviceInfo().ThreadsPerGroup[DeviceId]); in __tgt_rtl_init_device()
2146 DeviceInfo().ThreadsPerGroup[DeviceId] = RTLDeviceInfoTy::MaxWgSize; in __tgt_rtl_init_device()
2210 DeviceInfo().ThreadsPerGroup[DeviceId])) { in __tgt_rtl_init_device()
2212 DeviceInfo().ThreadsPerGroup[DeviceId]); in __tgt_rtl_init_device()
2217 DeviceInfo().ThreadsPerGroup[DeviceId]); in __tgt_rtl_init_device()
2220 DeviceInfo().WarpSize[DeviceId], DeviceInfo().ThreadsPerGroup[DeviceId], in __tgt_rtl_init_device()
2223 DeviceInfo().ThreadsPerGroup[DeviceId]); in __tgt_rtl_init_device()