|
Basilisk CFD
Adaptive Cartesian mesh PDE framework
|
Go to the source code of this file.
Data Structures | |
| struct | GLString |
| struct | RegionParameters |
Macros | |
| #define | GL_C(stmt) |
| #define | tracing_foreach(name, file, line) |
| #define | end_tracing_foreach(name, file, line) |
| #define | realloc_scalar(size) realloc_scalar_gpu (size) |
Variables | ||
| struct { | ||
| GLFWwindow * window | ||
| GLuint * ssbo | ||
| bool fragment_shader | ||
| int current_shader | ||
| int nssbo | ||
| size_t max_ssbo_size | ||
| size_t current_size | ||
| } | GPUContext | |
| GLString | gpu_limits_list [] | |
| file | ||
| line | do | |
| macro2 BEGIN_FOREACH | ( | ) |
Definition at line 230 of file gpu.h.
References _gpu_done_, end_tracing_foreach, S__FILE__, S_LINENO, and tracing_foreach.
Definition at line 81 of file gpu.h.
References error, free(), getShaderLogInfo(), GL_C, GL_COMPILE_STATUS, GL_TRUE, glCompileShader, glCreateShader, glDeleteShader, glGetShaderiv, glShaderSource, gpu_errors(), and x.
Referenced by loadNormalShader().
| macro2 foreach_coarse_level_stencil | ( | int | _level, |
| char | flags, | ||
| Reduce | reductions, | ||
| int | _parallel, | ||
| External * | _externals, | ||
| const char * | _kernel | ||
| ) |
Definition at line 343 of file gpu.h.
References flags, foreach_level_stencil(), reductions, and x.
| macro2 foreach_face_stencil | ( | char | flags, |
| Reduce | reductions, | ||
| const char * | _order, | ||
| int | _parallel, | ||
| External * | _externals, | ||
| const char * | _kernel | ||
| ) |
Definition at line 335 of file gpu.h.
References flags, foreach_stencil_generic(), reductions, and x.
| macro2 foreach_level_or_leaf_stencil | ( | int | _level, |
| char | flags, | ||
| Reduce | reductions, | ||
| int | _parallel, | ||
| External * | _externals, | ||
| const char * | _kernel | ||
| ) |
Definition at line 351 of file gpu.h.
References flags, foreach_level_stencil(), reductions, and x.
| macro2 foreach_level_stencil | ( | int | _level, |
| char | flags, | ||
| Reduce | reductions, | ||
| int | _parallel, | ||
| External * | _externals, | ||
| const char * | _kernel | ||
| ) |
Definition at line 295 of file gpu.h.
References flags, foreach_stencil_generic(), reductions, and x.
Referenced by foreach_coarse_level_stencil(), and foreach_level_or_leaf_stencil().
| macro2 foreach_point_stencil | ( | double | _xp, |
| double | _yp, | ||
| double | _zp, | ||
| char | flags, | ||
| Reduce | reductions, | ||
| int | _parallel, | ||
| External * | _externals, | ||
| const char * | _kernel | ||
| ) |
Definition at line 304 of file gpu.h.
References flags, foreach_stencil_generic(), reductions, and x.
| macro2 foreach_region_stencil | ( | coord | _p, |
| coord | _box[2], | ||
| coord | _n, | ||
| char | flags, | ||
| Reduce | reductions, | ||
| int | _parallel, | ||
| External * | _externals, | ||
| const char * | _kernel | ||
| ) |
Definition at line 315 of file gpu.h.
References flags, foreach_stencil_generic(), reductions, and x.
| macro2 foreach_stencil | ( | char | flags, |
| Reduce | reductions, | ||
| int | _parallel, | ||
| External * | _externals, | ||
| const char * | _kernel | ||
| ) |
Definition at line 288 of file gpu.h.
References flags, foreach_stencil_generic(), reductions, and x.
Referenced by foreach_visible_stencil().
| macro2 foreach_stencil_generic | ( | char | flags, |
| Reduce | reductions, | ||
| int | _parallel, | ||
| External * | _externals, | ||
| const char * | _kernel | ||
| ) |
Definition at line 249 of file gpu.h.
References _attribute, _gpu_done_, baseblock, check_stencil(), end_tracing_foreach, ForeachData::fname, gpu_end_stencil(), scalar::i, i, _Attributes::name, point, s, S__FILE__, s_input, S_LINENO, s_output, tracing_foreach, and x.
Referenced by foreach_face_stencil(), foreach_level_stencil(), foreach_point_stencil(), foreach_region_stencil(), foreach_stencil(), and foreach_vertex_stencil().
| macro2 foreach_vertex_stencil | ( | char | flags, |
| Reduce | reductions, | ||
| int | _parallel, | ||
| External * | _externals, | ||
| const char * | _kernel | ||
| ) |
Definition at line 325 of file gpu.h.
References flags, foreach_stencil_generic(), reductions, and x.
Definition at line 66 of file gpu.h.
References GL_C, GL_INFO_LOG_LENGTH, glGetProgramInfoLog, glGetProgramiv, and x.
Referenced by loadNormalShader().
Definition at line 53 of file gpu.h.
References GL_C, GL_INFO_LOG_LENGTH, glGetShaderInfoLog, glGetShaderiv, and x.
Referenced by createShaderFromString().
Definition at line 467 of file gpu.h.
References cartesian_boundary_level(), free(), l, list, list_prepend(), s, and x.
Referenced by gpu_cartesian_methods(), and gpu_multigrid_methods().
Definition at line 22 of file gpu.h.
References fname, GL_NO_ERROR, glGetError, line, and x.
| bool gpu_end_stencil | ( | ForeachData * | loop, |
| const RegionParameters * | region, | ||
| External * | externals, | ||
| const char * | kernel | ||
| ) |
Definition at line 2045 of file grid.h.
Referenced by foreach_stencil_generic().
Definition at line 2230 of file errors.c.
References buf, fname, free(), line, merge(), source, sout, str_append, x, yy_delete_buffer, yy_scan_string, yylex, and yyunput().
Referenced by createShaderFromString().
Definition at line 43 of file gpu.h.
References free(), GL_C, GL_FRAMEBUFFER, glBindFramebuffer, glDeleteBuffers, glFinish, GPUContext, and x.
Definition at line 109 of file gpu.h.
References createShaderFromString(), free(), fs, getProgramLogInfo(), GL_COMPUTE_SHADER, GL_FALSE, GL_FRAGMENT_SHADER, GL_LINK_STATUS, GL_VERTEX_SHADER, glAttachShader, glCreateProgram, glDeleteProgram, glDeleteShader, glDetachShader, glGetProgramiv, glLinkProgram, and x.
| void printWorkGroupsCapabilities | ( | ) |
Definition at line 201 of file gpu.h.
References GL_MAX_COMPUTE_WORK_GROUP_COUNT, GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS, GL_MAX_COMPUTE_WORK_GROUP_SIZE, glGetIntegeri_v, glGetIntegerv, and x.
Definition at line 461 of file gpu.h.
References realloc_scalar, size, and x.
| line do |
| struct { ... } GPUContext |
Referenced by cpu_reduction(), gpu_free_solver(), and gpu_reduction().
| GLFWwindow* window |