Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
reduction.cpp File Reference
Include dependency graph for reduction.cpp:

Go to the source code of this file.

Namespaces

namespace  shamalgs
 namespace to contain everything implemented by shamalgs

Functions

template<class T>
T shamalgs::reduction::sum (sycl::queue &q, sycl::buffer< T > &buf1, u32 start_id, u32 end_id)
template<class T>
T shamalgs::reduction::max (sycl::queue &q, sycl::buffer< T > &buf1, u32 start_id, u32 end_id)
template<class T>
T shamalgs::reduction::min (sycl::queue &q, sycl::buffer< T > &buf1, u32 start_id, u32 end_id)
template<class T>
bool shamalgs::reduction::has_nan (sham::DeviceBuffer< T > &buf, u64 cnt)
template<class T>
bool shamalgs::reduction::has_inf (sham::DeviceBuffer< T > &buf, u64 cnt)
template<class T>
bool shamalgs::reduction::has_nan_or_inf (sham::DeviceBuffer< T > &buf, u64 cnt)

Detailed Description

Author
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)

Definition in file reduction.cpp.

Function Documentation

◆ has_inf()

template<class T>
bool shamalgs::reduction::has_inf ( sham::DeviceBuffer< T > & buf,
u64 cnt )

Definition at line 84 of file reduction.cpp.

◆ has_nan()

template<class T>
bool shamalgs::reduction::has_nan ( sham::DeviceBuffer< T > & buf,
u64 cnt )

Definition at line 61 of file reduction.cpp.

◆ has_nan_or_inf()

template<class T>
bool shamalgs::reduction::has_nan_or_inf ( sham::DeviceBuffer< T > & buf,
u64 cnt )

Definition at line 107 of file reduction.cpp.

◆ max()

template<class T>
T shamalgs::reduction::max ( sycl::queue & q,
sycl::buffer< T > & buf1,
u32 start_id,
u32 end_id )

Definition at line 43 of file reduction.cpp.

◆ min()

template<class T>
T shamalgs::reduction::min ( sycl::queue & q,
sycl::buffer< T > & buf1,
u32 start_id,
u32 end_id )

Definition at line 52 of file reduction.cpp.

◆ sum()

template<class T>
T shamalgs::reduction::sum ( sycl::queue & q,
sycl::buffer< T > & buf1,
u32 start_id,
u32 end_id )

Definition at line 34 of file reduction.cpp.