File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
offload/plugins-nextgen/amdgpu/src Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -5128,8 +5128,7 @@ Error AMDGPUKernelTy::launchImpl(GenericDeviceTy &GenericDevice,
5128
5128
return Err;
5129
5129
5130
5130
// Only COV5 implicitargs needs to be set. COV4 implicitargs are not used.
5131
- if (ImplArgs &&
5132
- getImplicitArgsSize () == sizeof (hsa_utils::AMDGPUImplicitArgsTy)) {
5131
+ if (ImplArgs) {
5133
5132
DP (" Setting fields of ImplicitArgs for COV5\n " );
5134
5133
ImplArgs->BlockCountX = NumBlocks[0 ];
5135
5134
ImplArgs->BlockCountY = NumBlocks[1 ];
@@ -5144,17 +5143,6 @@ Error AMDGPUKernelTy::launchImpl(GenericDeviceTy &GenericDevice,
5144
5143
(uint64_t )AMDGPUDevice.getPreAllocatedDeviceMemoryPool ();
5145
5144
ImplArgs->DynamicLdsSize = KernelArgs.DynCGroupMem ;
5146
5145
}
5147
- // Set the COV5+ implicit arguments to the appropriate values.
5148
- ImplArgs->BlockCountX = NumBlocks[0 ];
5149
- ImplArgs->BlockCountY = NumBlocks[1 ];
5150
- ImplArgs->BlockCountZ = NumBlocks[2 ];
5151
- ImplArgs->GroupSizeX = NumThreads[0 ];
5152
- ImplArgs->GroupSizeY = NumThreads[1 ];
5153
- ImplArgs->GroupSizeZ = NumThreads[2 ];
5154
- ImplArgs->GridDims = NumBlocks[2 ] * NumThreads[2 ] > 1
5155
- ? 3
5156
- : 1 + (NumBlocks[1 ] * NumThreads[1 ] != 1 );
5157
- ImplArgs->DynamicLdsSize = KernelArgs.DynCGroupMem ;
5158
5146
5159
5147
// Get required OMPT-related data
5160
5148
auto LocalOmptEventInfo = getOrNullOmptEventInfo (AsyncInfoWrapper);
You can’t perform that action at this time.
0 commit comments