Basilisk CFD
Adaptive Cartesian mesh PDE framework
Loading...
Searching...
No Matches
reduction.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

double cpu_reduction (GLuint *src, size_t offset, size_t nb, const char op)
 
double gpu_reduction (size_t offset, const char op, const RegionParameters *region, size_t nb)
 

Function Documentation

◆ cpu_reduction()

double cpu_reduction ( GLuint src,
size_t  offset,
size_t  nb,
const char  op 
)

Definition at line 3 of file reduction.h.

References a, assert, GL_BUFFER_UPDATE_BARRIER_BIT, GL_C, GL_MAP_READ_BIT, GL_SHADER_STORAGE_BUFFER, glBindBuffer, glMapBufferRange, glMemoryBarrier, glUnmapBuffer, GPUContext, HUGE, i, index, min, op, size, and x.

Referenced by gpu_reduction().

Here is the caller graph for this function:

◆ gpu_reduction()

double gpu_reduction ( size_t  offset,
const char  op,
const RegionParameters region,
size_t  nb 
)

Definition at line 43 of file reduction.h.

References a, a32_hash(), a32_hash_add(), a32_hash_init(), assert, cpu_reduction(), dst, fs, GL_C, GL_DYNAMIC_READ, GL_SHADER_STORAGE_BARRIER_BIT, GL_SHADER_STORAGE_BUFFER, glBindBuffer, glBindBufferBase, glBufferData, glDispatchCompute, glGenBuffers, glGetBufferSubData, glMemoryBarrier, glsl_preproc, glUniform1ui, glUseProgram, gpu_grid, GPUContext, i, j, L0, load_shader(), N, op, s, size, sq(), str_append, swap, x, X0, and Y0.

Here is the call graph for this function: