@@ -167,9 +167,6 @@ int CeedGetKernel_Hip(Ceed ceed, hipModule_t module, const char *name, hipFuncti
167167// Run HIP kernel
168168// ------------------------------------------------------------------------------
169169int 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// ------------------------------------------------------------------------------
180177int 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// ------------------------------------------------------------------------------
192186int 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