(git:ccc2433)
pilaenv_hack.F
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: GPL-2.0-or-later !
6 !--------------------------------------------------------------------------------------------------!
7 
8 #if defined(__PILAENV_BLOCKSIZE)
9 !
10 ! This function overwrites the one present in Scalapack.....
11 ! most libraries do not provide a good default, but an old value of 32, which leads to poor pdgemm performance
12 ! set -D__PILAENV_BLOCKSIZE=1024 or some number (depending on the hardware, and application), might lead to better performance
13 !
14 ! **************************************************************************************************
15 !> \brief ...
16 !> \param ICTXT ...
17 !> \param PREC ...
18 !> \return ...
19 ! **************************************************************************************************
20 INTEGER FUNCTION pilaenv(ICTXT, PREC)
21  INTEGER :: ICTXT
22  CHARACTER(LEN=1) :: PREC
23 
24  pilaenv = __pilaenv_blocksize
25 END FUNCTION pilaenv
26 #endif
27 
28 ! **************************************************************************************************
29 !> \brief ...
30 ! **************************************************************************************************
31 SUBROUTINE nag_dummy()
32 
33 END SUBROUTINE nag_dummy
subroutine nag_dummy()
...
Definition: pilaenv_hack.F:32