MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / clear_cuda_errors

Function clear_cuda_errors

tests/test_tensor_bugs.cpp:19–22  ·  view source on GitHub ↗

Helper to clear CUDA errors

Source from the content-addressed store, hash-verified

17
18// Helper to clear CUDA errors
19inline void clear_cuda_errors() {
20 cudaDeviceSynchronize();
21 cudaGetLastError();
22}
23
24// Helper to check for pending CUDA errors
25inline bool has_cuda_error() {

Callers 15

SetUpMethod · 0.85
TearDownMethod · 0.85
TEST_FFunction · 0.85
SetUpMethod · 0.85
TearDownMethod · 0.85
SetUpMethod · 0.85
TearDownMethod · 0.85
SetUpMethod · 0.85
TearDownMethod · 0.85
SetUpMethod · 0.85
TearDownMethod · 0.85
SetUpMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected