Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
fallbackReduction_usm.cpp File Reference
#include "shambase/exception.hpp"
#include "shamalgs/memory.hpp"
#include "shambackends/math.hpp"
#include "shambackends/sycl.hpp"
#include "shambackends/sycl_utils.hpp"
#include "shambackends/vec.hpp"
#include <stdexcept>
Include dependency graph for fallbackReduction_usm.cpp:

Go to the source code of this file.

Namespaces

namespace  shamalgs
 namespace to contain everything implemented by shamalgs

Functions

template<class T, class BinaryOp>
shamalgs::reduction::details::reduc_internal (const sham::DeviceScheduler_ptr &sched, const sham::DeviceBuffer< T > &buf1, u32 start_id, u32 end_id, BinaryOp &&bop)
template<class T>
shamalgs::reduction::details::sum_usm_fallback (const sham::DeviceScheduler_ptr &sched, const sham::DeviceBuffer< T > &buf1, u32 start_id, u32 end_id)
template<class T>
shamalgs::reduction::details::max_usm_fallback (const sham::DeviceScheduler_ptr &sched, const sham::DeviceBuffer< T > &buf1, u32 start_id, u32 end_id)
template<class T>
shamalgs::reduction::details::min_usm_fallback (const sham::DeviceScheduler_ptr &sched, const sham::DeviceBuffer< T > &buf1, u32 start_id, u32 end_id)

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 fallbackReduction_usm.cpp.

Function Documentation

◆ max_usm_fallback()

template<class T>
T shamalgs::reduction::details::max_usm_fallback ( const sham::DeviceScheduler_ptr & sched,
const sham::DeviceBuffer< T > & buf1,
u32 start_id,
u32 end_id )

Definition at line 66 of file fallbackReduction_usm.cpp.

◆ min_usm_fallback()

template<class T>
T shamalgs::reduction::details::min_usm_fallback ( const sham::DeviceScheduler_ptr & sched,
const sham::DeviceBuffer< T > & buf1,
u32 start_id,
u32 end_id )

Definition at line 78 of file fallbackReduction_usm.cpp.

◆ reduc_internal()

template<class T, class BinaryOp>
T shamalgs::reduction::details::reduc_internal ( const sham::DeviceScheduler_ptr & sched,
const sham::DeviceBuffer< T > & buf1,
u32 start_id,
u32 end_id,
BinaryOp && bop )

Definition at line 28 of file fallbackReduction_usm.cpp.

◆ sum_usm_fallback()

template<class T>
T shamalgs::reduction::details::sum_usm_fallback ( const sham::DeviceScheduler_ptr & sched,
const sham::DeviceBuffer< T > & buf1,
u32 start_id,
u32 end_id )

Definition at line 49 of file fallbackReduction_usm.cpp.