MCPcopy Create free account

hub / github.com/AnswerDotAI/gpu.cpp / functions

Functions200 in github.com/AnswerDotAI/gpu.cpp

↓ 248 callersFunctioncreateTensor
* @brief Tensor factory function to create a tensor (a Tensor type is simply * an Array with an N-dimensional Shape specification) on the GPU. The t
gpu.hpp:575
↓ 141 callersFunctionLOG
utils/logging.hpp:51
↓ 101 callersFunctiontoString
* @brief Converts NumType to string. */
gpu.hpp:223
↓ 82 callersFunctioncreateKernel
* @brief A factory function to create a kernel on the GPU. The kernel is * created with the given WGSL code, input tensors, output tensor, and * opt
gpu.hpp:1215
↓ 74 callersFunctiontoCPU
* @brief Copies data from a GPU buffer to CPU memory. * @param[in] ctx Context instance to manage the operation * @param[in] tensor Tensor instance
gpu.hpp:997
↓ 57 callersFunctioncdiv
* @brief Ceiling division. */
gpu.hpp:1172
↓ 49 callersFunctionwait
gpu.hpp:978
↓ 48 callersFunctiondispatchKernel
* @brief Asynchronously submits a kernel to the GPU queue for execution. * It also sets up a callback to notify when the kernel has finished executin
gpu.hpp:1429
↓ 30 callersFunctioncreateContext
* @brief Factory function to create a GPU context, which aggregates WebGPU API * handles to interact with the GPU including the instance, adapter, de
gpu.hpp:774
↓ 30 callersFunctionreplaceAll
* @brief simple in-place string replacement helper function for substituting * placeholders in a WGSL string template. * * Note this is not meant t
gpu.hpp:275
↓ 29 callersFunctionsetLogLevel
* @brief Set the log level of the default logger. * @param level The log level to set. */
utils/logging.hpp:107
↓ 26 callersFunctionhalfToFloat
* @brief Converts a 16-bit half-precision float to a 32-bit float. * * Based on Mike Acton's half.c implementation. */
numeric_types/half.hpp:229
↓ 22 callersFunctionprintResult
numeric_types/half.cpp:24
↓ 18 callersFunctiontestRoundTrip
numeric_types/half.cpp:49
↓ 14 callersFunctioncheck
* Convenience function to check if a condition is true, if not log an error * message and exit. * * @param condition: The condition to check. * @p
examples/webgpu_from_scratch/run.cpp:41
↓ 12 callersFunctionhalfFromFloat
* @brief Converts a 32-bit float to a 16-bit half-precision float. * * Based on Mike Acton's half.c implementation. */
numeric_types/half.hpp:106
↓ 10 callersFunctioncheck
* @brief Checks a condition and logs an error message if the condition is * false. * @param[in] condition The condition to check. * @param[in] mess
gpu.hpp:743
↓ 8 callersFunctionrandint
* @brief Populate the array with random integers. * @param a The array to populate. * @param N The number of elements in the array. * @param gen Th
utils/array_utils.hpp:182
↓ 8 callersFunctionrange
* @brief Populate the array with a range of values. This is mostly for testing * purposes. * @param input The array to populate. * @param N The num
utils/array_utils.hpp:150
↓ 7 callersFunctionisclose
* @brief Determine if the values of two arrays are close to each other. * @param a The first array. * @param b The second array. * @param n The num
utils/array_utils.hpp:315
↓ 7 callersFunctionprocessEvents
gpu.hpp:504
↓ 6 callersFunctionsize
* @brief Returns the number of elements in a tensor with the given shape, * which is equal to the product of the dimensions. * @param[in] shape Shap
gpu.hpp:86
↓ 5 callersFunctioncheck
experimental/legacy/audio/run.cpp:72
↓ 5 callersFunctionmatmul_backward
experimental/kernels/ops.cpp:196
↓ 5 callersFunctionmatmul_forward
experimental/kernels/ops.cpp:159
↓ 5 callersFunctionrandn
* @brief Populate the array with random floats, generated from a Gaussian distribution. * @param a The array to populate. * @param N The number of e
utils/array_utils.hpp:213
↓ 5 callersFunctionresetCommandBuffer
* @brief Resets the command buffer in preparation for a kernel dispatch. * Since command buffers are consumed upon submission, this function is used
gpu.hpp:1145
↓ 5 callersFunctiontoGPU
* @brief Copies data from CPU memory to a GPU buffer. The toGPU overloads are * effectively a convenience wrapper around the WebGPU API call * wgpuQ
gpu.hpp:1096
↓ 4 callersFunctionapproximatelyEqual
numeric_types/half.cpp:20
↓ 4 callersFunctionloopUnrolling
Loop-unrolling optimization with regex Note: Be cautious, as it does not correctly recognize comments or lexical tokens.
experimental/wgsl.h:13
↓ 4 callersMethodupdateIcon
()
docs/doxygen-awesome/doxygen-awesome-darkmode-toggle.js:148
↓ 3 callersMethodenableDarkMode
(enable)
docs/doxygen-awesome/doxygen-awesome-darkmode-toggle.js:122
↓ 3 callersFunctiongpt2_forward
experimental/kernels/gpt2_webgpu.cpp:307
↓ 3 callersFunctionlayernorm_backward
experimental/kernels/ops.cpp:121
↓ 3 callersFunctionlayernorm_forward
experimental/kernels/ops.cpp:85
↓ 3 callersFunctionloadKernelCode
examples/shadertui/run.cpp:43
↓ 3 callersFunctionsigmoid
experimental/legacy/audio/run.cpp:20
↓ 3 callersFunctiontranspose
* @brief Transpose a matrix. * @param input The input matrix. * @param output The output matrix. * @param M The number of rows in the input matrix.
utils/array_utils.hpp:268
↓ 2 callersFunctioncreateMatmul
experimental/legacy/transformer/run.cpp:154
↓ 2 callersFunctiongetCurrentTimeInMilliseconds
examples/render/run.cpp:83
↓ 2 callersFunctiongpt2_zero_grad
experimental/kernels/gpt2_webgpu.cpp:455
↓ 2 callersFunctiongpu_alloc
experimental/kernels/gpt2_webgpu.cpp:203
↓ 2 callersFunctionmalloc_and_point_activations
experimental/kernels/gpt2_webgpu.cpp:174
↓ 2 callersFunctionmalloc_and_point_parameters
allocate memory for the parameters and point the individual tensors to the right places
experimental/kernels/gpt2_webgpu.cpp:93
↓ 2 callersMethodonSystemPreferenceChanged
()
docs/doxygen-awesome/doxygen-awesome-darkmode-toggle.js:134
↓ 2 callersFunctionresidual_backward
experimental/kernels/ops.cpp:358
↓ 2 callersFunctionresidual_forward
experimental/kernels/ops.cpp:342
↓ 2 callersFunctionrunTest
examples/matmul/run.cpp:783
↓ 1 callersFunctionFreeTensor
* @brief Frees a tensor resource and updates the tensor pool. * * Only needed if the use case requires manually managing resource lifetimes of * GP
gpu.hpp:705
↓ 1 callersFunctionMatmulShader
Generates KernelCode instance for all matmul kernels - pass in * the template code via `shaderRaw`. * * This is intended to be run ahead of time, s
experimental/legacy/transformer/shaders.h:166
↓ 1 callersFunction__builtin_clz
numeric_types/half.hpp:13
↓ 1 callersFunctionattention_backward
experimental/kernels/ops.cpp:272
↓ 1 callersFunctionattention_forward
experimental/kernels/ops.cpp:235
↓ 1 callersFunctioncheckCPU
examples/matmul/run.cpp:663
↓ 1 callersFunctioncheck_os
(os_name)
setup.py:46
↓ 1 callersFunctioncopy_file
(src, dst)
examples/shadertui/script.py:24
↓ 1 callersFunctioncreateMatmul1
examples/matmul/run.cpp:68
↓ 1 callersFunctioncreateMatmul2
examples/matmul/run.cpp:126
↓ 1 callersFunctioncreateMatmul3
examples/matmul/run.cpp:228
↓ 1 callersFunctioncreateMatmul4
examples/matmul/run.cpp:340
↓ 1 callersFunctioncreateMatmulWithTranspose
examples/matmul/run.cpp:581
↓ 1 callersFunctioncreateMatmulWithVectorization
examples/matmul/run.cpp:459
↓ 1 callersFunctioncreateNoOp
examples/matmul/run.cpp:629
↓ 1 callersFunctioncreateTransformer
experimental/legacy/transformer/run.cpp:112
↓ 1 callersFunctioncreateTranspose1
examples/transpose/run.cpp:31
↓ 1 callersFunctioncreateTranspose2
examples/transpose/run.cpp:81
↓ 1 callersFunctioncrossentropy_forward
experimental/kernels/ops.cpp:398
↓ 1 callersFunctioncrossentropy_softmax_backward
experimental/kernels/ops.cpp:429
↓ 1 callersFunctiondownload_dawn
(os_name)
setup.py:55
↓ 1 callersFunctiondownload_file
(url, output_filename)
setup.py:23
↓ 1 callersFunctionencoder_backward
experimental/kernels/ops.cpp:51
↓ 1 callersFunctionencoder_forward
experimental/kernels/ops.cpp:12
↓ 1 callersFunctionfill_in_activation_sizes
experimental/kernels/gpt2_webgpu.cpp:144
↓ 1 callersFunctionfill_in_parameter_sizes
experimental/kernels/gpt2_webgpu.cpp:69
↓ 1 callersFunctiongelu_backward
experimental/kernels/ops.cpp:326
↓ 1 callersFunctiongelu_forward
experimental/kernels/ops.cpp:311
↓ 1 callersFunctiongetCurrentTimeInMilliseconds
examples/shadertui/run.cpp:36
↓ 1 callersFunctionget_os_name
()
setup.py:8
↓ 1 callersFunctiongpt2_backward
experimental/kernels/gpt2_webgpu.cpp:460
↓ 1 callersFunctiongpt2_build_from_checkpoint
experimental/kernels/gpt2_webgpu.cpp:240
↓ 1 callersFunctiongpt2_free
experimental/kernels/gpt2_webgpu.cpp:610
↓ 1 callersFunctiongpt2_update
experimental/kernels/gpt2_webgpu.cpp:582
↓ 1 callersFunctioninitData
examples/matmul/run.cpp:638
↓ 1 callersFunctioninitData
examples/transpose/run.cpp:105
↓ 1 callersFunctionmain
()
setup.py:106
↓ 1 callersFunctionmatmulf16_forward_cpu
examples/matmul/run.cpp:24
↓ 1 callersMethodonUserPreferenceChanged
()
docs/doxygen-awesome/doxygen-awesome-darkmode-toggle.js:139
↓ 1 callersFunctionpuzzle1
examples/gpu_puzzles/key.cpp:51
↓ 1 callersFunctionpuzzle1
examples/gpu_puzzles/run.cpp:48
↓ 1 callersFunctionpuzzle10
examples/gpu_puzzles/key.cpp:413
↓ 1 callersFunctionpuzzle11
examples/gpu_puzzles/key.cpp:482
↓ 1 callersFunctionpuzzle12
examples/gpu_puzzles/key.cpp:545
↓ 1 callersFunctionpuzzle13
examples/gpu_puzzles/key.cpp:611
↓ 1 callersFunctionpuzzle14
examples/gpu_puzzles/key.cpp:685
↓ 1 callersFunctionpuzzle2
examples/gpu_puzzles/key.cpp:78
↓ 1 callersFunctionpuzzle3
examples/gpu_puzzles/key.cpp:104
↓ 1 callersFunctionpuzzle4
examples/gpu_puzzles/key.cpp:137
↓ 1 callersFunctionpuzzle5
examples/gpu_puzzles/key.cpp:176
↓ 1 callersFunctionpuzzle6
examples/gpu_puzzles/key.cpp:216
↓ 1 callersFunctionpuzzle7
examples/gpu_puzzles/key.cpp:257
next →1–100 of 200, ranked by callers