Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Namespaces | Functions
gen_buffer_index.cpp File Reference

Implements functions to generate and fill buffers with sequential indices. More...

#include "shambase/exception.hpp"
#include "shambackends/DeviceBuffer.hpp"
#include "shambackends/kernel_call.hpp"
+ Include dependency graph for gen_buffer_index.cpp:

Go to the source code of this file.

Namespaces

namespace  shamalgs
 namespace to contain everything implemented by shamalgs
 
namespace  shamalgs::primitives
 namespace for primitive algorithm (e.g. sort, scan, reductions, ...)
 

Functions

void shamalgs::primitives::fill_buffer_index (sham::DeviceBuffer< u32 > &buf, u32 len)
 Fills a buffer with sequential indices, such that buf[i] = i.
 
sham::DeviceBuffer< u32shamalgs::primitives::gen_buffer_index (sham::DeviceScheduler_ptr sched, u32 len)
 Generates a buffer where buf[i] = i.
 

Detailed Description

Implements functions to generate and fill buffers with sequential indices.

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