Shamrock
2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
shamalgs
include
shamalgs
details
reduction
reduction.hpp
Go to the documentation of this file.
1
// -------------------------------------------------------//
2
//
3
// SHAMROCK code for hydrodynamics
4
// Copyright (c) 2021-2026 Timothée David--Cléris <tim.shamrock@proton.me>
5
// SPDX-License-Identifier: CeCILL Free Software License Agreement v2.1
6
// Shamrock is licensed under the CeCILL 2.1 License, see LICENSE for more information
7
//
8
// -------------------------------------------------------//
9
10
#pragma once
11
18
19
#include "
shambase/aliases_int.hpp
"
20
#include "
shambase/exception.hpp
"
21
#include "
shambase/memory.hpp
"
22
#include "
shamalgs/primitives/is_all_true.hpp
"
23
#include "
shambackends/DeviceBuffer.hpp
"
24
#include "
shambackends/DeviceQueue.hpp
"
25
#include "
shambackends/DeviceScheduler.hpp
"
26
#include "
shambackends/math.hpp
"
27
#include "
shambackends/sycl.hpp
"
28
#include "
shambackends/vec.hpp
"
29
30
namespace
shamalgs::reduction {
31
32
template
<
class
T>
33
bool
has_nan(sham::DeviceBuffer<T> &buf,
u64
cnt);
34
35
template
<
class
T>
36
bool
has_inf(sham::DeviceBuffer<T> &buf,
u64
cnt);
37
38
template
<
class
T>
39
bool
has_nan_or_inf(sham::DeviceBuffer<T> &buf,
u64
cnt);
40
41
}
// namespace shamalgs::reduction
DeviceBuffer.hpp
DeviceQueue.hpp
DeviceScheduler.hpp
aliases_int.hpp
u64
std::uint64_t u64
64 bit unsigned integer
Definition
aliases_int.hpp:26
exception.hpp
This header file contains utility functions related to exception handling in the code.
is_all_true.hpp
Boolean reduction algorithm for checking if all elements are non-zero.
math.hpp
memory.hpp
sycl.hpp
vec.hpp
Generated on
for Shamrock by
1.15.0