10#include "../base/base_uses.f90"
13 USE dlaf_fortran,
ONLY: dlaf_create_grid_from_blacs, &
16 dlaf_free_all_grids, &
24 CHARACTER(len=*),
PARAMETER,
PRIVATE :: moduleN =
'cp_dlaf_utils_api'
38 CHARACTER(len=*),
PARAMETER :: routinen =
'cp_dlaf_initialize'
42 CALL timeset(routinen, handle)
44 CALL dlaf_initialize()
56 CHARACTER(len=*),
PARAMETER :: routinen =
'cp_dlaf_finalize'
60 CALL timeset(routinen, handle)
75 INTEGER,
INTENT(IN) :: blacs_context
77 CHARACTER(len=*),
PARAMETER :: routinen =
'cp_dlaf_create_grid'
81 CALL timeset(routinen, handle)
83 CALL dlaf_create_grid_from_blacs(blacs_context)
85 mark_used(blacs_context)
86 cpabort(
"CP2K compiled without the DLA-Future library.")
99 INTEGER,
INTENT(IN) :: blacs_context
101 CHARACTER(len=*),
PARAMETER :: routinen =
'cp_dlaf_free_grid'
105 CALL timeset(routinen, handle)
107 CALL dlaf_free_grid(blacs_context)
109 mark_used(blacs_context)
110 cpabort(
"CP2K compiled without the DLA-Future library.")
112 CALL timestop(handle)
120 CHARACTER(len=*),
PARAMETER :: routinen =
'cp_dlaf_free_all_grids'
124 CALL timeset(routinen, handle)
126 CALL dlaf_free_all_grids()
128 CALL timestop(handle)
subroutine, public cp_dlaf_create_grid(blacs_context)
Create DLA-Future grid from BLACS context.
subroutine, public cp_dlaf_finalize()
Finalize DLA-Future and pika runtime.
subroutine, public cp_dlaf_free_grid(blacs_context)
Free DLA-Future grid corresponding to BLACS context.
subroutine, public cp_dlaf_free_all_grids()
Free all DLA-Future grids.
subroutine, public cp_dlaf_initialize()
Initialize DLA-Future and pika runtime.