Shamrock
2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
shamalgs
include
shamalgs
primitives
is_all_true.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
26
27
#include "
shambackends/DeviceBuffer.hpp
"
28
#include "
shambackends/sycl.hpp
"
29
#include <vector>
30
31
namespace
shamalgs::primitives
{
32
66
template
<
class
T>
67
bool
is_all_true
(sycl::buffer<T> &buf,
u32
cnt);
68
100
template
<
class
T>
101
bool
is_all_true
(sham::DeviceBuffer<T> &buf,
u32
cnt);
102
103
}
// namespace shamalgs::primitives
DeviceBuffer.hpp
u32
std::uint32_t u32
32 bit unsigned integer
Definition
aliases_int.hpp:27
shamalgs::primitives
namespace for primitive algorithm (e.g. sort, scan, reductions, ...)
Definition
append_subset_to.hpp:22
shamalgs::primitives::is_all_true
bool is_all_true(sycl::buffer< T > &buf, u32 cnt)
Check if all elements in a sycl::buffer are non-zero.
Definition
is_all_true.cpp:250
sycl.hpp
Generated on
for Shamrock by
1.15.0