QMCPACK
OMPstd.hpp
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) 2019 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
// -*- C++ -*-
12
/** @file OMPstd.hpp
13
*/
14
15
#ifndef QMCPLUSPLUS_OPENMP_STD_H
16
#define QMCPLUSPLUS_OPENMP_STD_H
17
18
namespace
OMPstd
19
{
20
template
<
typename
T>
21
inline
void
fill_n
(T* x,
size_t
count,
const
T& value)
22
{
23
PRAGMA_OFFLOAD(
"omp for"
)
24
for
(
size_t
id
= 0;
id
< count;
id
++)
25
x[
id
] = value;
26
}
27
}
// namespace OMPstd
28
#endif
OMPstd::fill_n
void fill_n(T *x, size_t count, const T &value)
Definition:
OMPstd.hpp:21
OMPstd
Definition:
OMPstd.hpp:18
src
Platforms
OMPTarget
OMPstd.hpp
Generated on Fri Jun 28 2024 10:45:16 for QMCPACK by
1.8.14