ttg
1.0.0
Template Task Graph (TTG): flowgraph-based programming model for high-performance distributed-memory algorithms
Loading...
Searching...
No Matches
ttg
ttg
devicescratch.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSD-3-Clause
2
#ifndef TTG_DEVICESCRATCH_H
3
#define TTG_DEVICESCRATCH_H
4
5
#include "
ttg/devicescope.h
"
6
#include "
ttg/fwd.h
"
7
#include "
ttg/util/meta.h
"
8
9
namespace
ttg
{
10
11
template
<
typename
T>
12
using
devicescratch
= TTG_IMPL_NS::devicescratch<T>;
13
14
template
<
typename
T>
15
auto
make_scratch
(T* val,
ttg::scope
scope
, std::size_t count = 1) {
16
return
devicescratch<T>
(val,
scope
, count);
17
}
18
19
namespace
meta {
20
21
/* Specialize some traits */
22
23
template
<
typename
T>
24
struct
is_devicescratch
<
ttg
::
devicescratch
<T>> : std::true_type
25
{ };
26
27
template
<
typename
T>
28
struct
is_devicescratch
<
const
ttg
::
devicescratch
<T>> : std::true_type
29
{ };
30
31
template
<
typename
T>
32
struct
is_const
<
ttg
::
devicescratch
<T>> : std::is_const<T>
33
{ };
34
35
}
// namespace meta
36
37
}
// namespace ttg
38
39
#endif
// TTG_DEVICESCRATCH_H
devicescope.h
fwd.h
meta.h
ttg::meta::get
constexpr auto get(typelist< T, RestOfTs... >)
Definition
typelist.h:102
ttg
top-level TTG namespace contains runtime-neutral functionality
Definition
keymap.h:9
ttg::scope
scope
Definition
devicescope.h:6
ttg::make_scratch
auto make_scratch(T *val, ttg::scope scope, std::size_t count=1)
Definition
devicescratch.h:15
ttg::meta::is_const
Definition
meta.h:323
ttg::meta::is_devicescratch
Definition
meta.h:316
ttg_parsec::devicescratch
Definition
devicescratch.h:30
Generated at Tue Nov 25 2025 21:38:21 for
ttg
1.0.0 by
1.9.8