MCPcopy Create free account
hub / github.com/ComputationalRobotics/XM-code / get_kernel_launch_err

Function get_kernel_launch_err

XM/include/Utils/check.h:79–86  ·  view source on GitHub ↗

capture kernel error

Source from the content-addressed store, hash-verified

77
78// capture kernel error
79inline void get_kernel_launch_err() {
80 cudaError_t err = cudaGetLastError();
81 if (err != cudaSuccess) {
82 std::cerr << "CUDA Error: " << cudaGetErrorString(err) << std::endl;
83 }
84 cudaDeviceSynchronize(); // Ensure all preceding CUDA calls have completed
85 return;
86}
87
88
89#endif

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected