QMCPACK
test_runtime_mem.cpp
Go to the documentation of this file.
1 //////////////////////////////////////////////////////////////////////////////////////
2 // This file is distributed under the University of Illinois/NCSA Open Source License.
3 // See LICENSE file in top directory for details.
4 //
5 // Copyright (c) 2021 QMCPACK developers.
6 //
7 // File developed by: Ye Luo, yeluo@anl.gov, Argonne National Laboratory
8 //
9 // File created by: Ye Luo, yeluo@anl.gov, Argonne National Laboratory
10 //////////////////////////////////////////////////////////////////////////////////////
11 
12 
13 #include "catch.hpp"
14 
15 #include <iostream>
16 #include "config.h"
17 #include "MemoryUsage.h"
18 
19 namespace qmcplusplus
20 {
21 TEST_CASE("OMP runtime memory", "[OMP]")
22 {
23  PRAGMA_OFFLOAD("omp target")
24  {
25  // intentional empty target to initialize offload runtime library.
26  }
27 
28  print_mem("OMP runtime memory", std::cout);
29 }
30 
31 } // namespace qmcplusplus
helper functions for EinsplineSetBuilder
Definition: Configuration.h:43
TEST_CASE("complex_helper", "[type_traits]")
void print_mem(const std::string &title, std::ostream &log)
Definition: MemoryUsage.cpp:30