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

Function sync_and_check

tests/test_expanded_tensor_ops.cpp:10–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8using namespace lfs::core;
9
10static cudaError_t sync_and_check() {
11 cudaError_t err = cudaDeviceSynchronize();
12 if (err != cudaSuccess)
13 return err;
14 return cudaGetLastError();
15}
16
17static void assert_cuda_ok(const char* step) {
18 cudaError_t err = sync_and_check();

Callers 2

assert_cuda_okFunction · 0.70
TearDownMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected