MCPcopy Create free account
hub / github.com/AnswerDotAI/gpu.cpp / wait

Function wait

gpu.hpp:978–983  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

976#endif
977
978inline void wait(Context &ctx, std::future<void> &future) {
979 while (future.wait_for(std::chrono::seconds(0)) !=
980 std::future_status::ready) {
981 processEvents(ctx.instance);
982 }
983}
984
985/**
986 * @brief Copies data from a GPU buffer to CPU memory.

Callers 15

toCPUFunction · 0.85
runTestFunction · 0.85
showResultFunction · 0.85
showResultFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
runTestFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
testWGSLFunction · 0.85

Calls 1

processEventsFunction · 0.85

Tested by 15

testResidualFunction · 0.68
testHadamardFunction · 0.68
testMatmulFunction · 0.68
testGeluFunction · 0.68
testLayerNormFunction · 0.68
testSoftmaxFunction · 0.68
ENCODER_FORWARD_GPUFunction · 0.68
ENCODER_BACKWARD_GPUFunction · 0.68
LAYERNORM_FORWARD_GPUFunction · 0.68
LAYERNORM_BACKWARD_GPUFunction · 0.68
MATMUL_FORWARD_GPUFunction · 0.68
MATMUL_BACKWARD_GPUFunction · 0.68