Skip to content

Commit 9dd589f

Browse files
committed
Remove unused code
1 parent d0fa0f5 commit 9dd589f

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

backends/hip/ceed-hip-compile.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,6 @@ int CeedGetKernel_Hip(Ceed ceed, hipModule_t module, const char *name, hipFuncti
167167
// Run HIP kernel
168168
//------------------------------------------------------------------------------
169169
int CeedRunKernel_Hip(Ceed ceed, hipFunction_t kernel, const int grid_size, const int block_size, void **args) {
170-
Ceed_Hip *data;
171-
172-
CeedCallBackend(CeedGetData(ceed, &data));
173170
CeedCallHip(ceed, hipModuleLaunchKernel(kernel, grid_size, 1, 1, block_size, 1, 1, 0, NULL, args, NULL));
174171
return CEED_ERROR_SUCCESS;
175172
}
@@ -179,9 +176,6 @@ int CeedRunKernel_Hip(Ceed ceed, hipFunction_t kernel, const int grid_size, cons
179176
//------------------------------------------------------------------------------
180177
int CeedRunKernelDim_Hip(Ceed ceed, hipFunction_t kernel, const int grid_size, const int block_size_x, const int block_size_y, const int block_size_z,
181178
void **args) {
182-
Ceed_Hip *data;
183-
184-
CeedCallBackend(CeedGetData(ceed, &data));
185179
CeedCallHip(ceed, hipModuleLaunchKernel(kernel, grid_size, 1, 1, block_size_x, block_size_y, block_size_z, 0, NULL, args, NULL));
186180
return CEED_ERROR_SUCCESS;
187181
}
@@ -191,9 +185,6 @@ int CeedRunKernelDim_Hip(Ceed ceed, hipFunction_t kernel, const int grid_size, c
191185
//------------------------------------------------------------------------------
192186
int CeedRunKernelDimShared_Hip(Ceed ceed, hipFunction_t kernel, const int grid_size, const int block_size_x, const int block_size_y,
193187
const int block_size_z, const int shared_mem_size, void **args) {
194-
Ceed_Hip *data;
195-
196-
CeedCallBackend(CeedGetData(ceed, &data));
197188
CeedCallHip(ceed, hipModuleLaunchKernel(kernel, grid_size, 1, 1, block_size_x, block_size_y, block_size_z, shared_mem_size, NULL, args, NULL));
198189
return CEED_ERROR_SUCCESS;
199190
}

0 commit comments

Comments
 (0)