(git:ccc2433)
grid_gpu_collocate.h
Go to the documentation of this file.
1 /*----------------------------------------------------------------------------*/
2 /* CP2K: A general program to perform molecular dynamics simulations */
3 /* Copyright 2000-2024 CP2K developers group <https://cp2k.org> */
4 /* */
5 /* SPDX-License-Identifier: BSD-3-Clause */
6 /*----------------------------------------------------------------------------*/
7 #ifndef GRID_GPU_COLLOCATE_H
8 #define GRID_GPU_COLLOCATE_H
9 
10 #include "../../offload/offload_runtime.h"
11 #if defined(__OFFLOAD) && !defined(__NO_OFFLOAD_GRID)
12 
13 #include "grid_gpu_task_list.h"
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 /*******************************************************************************
20  * \brief Launches the Cuda kernel that collocates all tasks of one grid level.
21  * \author Ole Schuett
22  ******************************************************************************/
23 void grid_gpu_collocate_one_grid_level(
24  const grid_gpu_task_list *task_list, const int first_task,
25  const int last_task, const enum grid_func func,
26  const grid_gpu_layout *layout, const offloadStream_t stream,
27  const double *pab_blocks_dev, double *grid_dev, int *lp_diff);
28 
29 #ifdef __cplusplus
30 }
31 #endif
32 
33 #endif // defined(__OFFLOAD) && !defined(__NO_OFFLOAD_GRID)
34 #endif
35 // EOF
grid_func