[QUESTION]: <title>How can I restore the program after a cuda kernel error?
Question
private static void test(Index1D d, ArrayView
a.Dispose();
return;
}
Environment
- ILGPU version: [e.g., 1.5.1]
- .NET version: [e.g., .NET 8]
- Operating system: [e.g., Windows 10]
- Hardware (if GPU-related): [e.g., NVIDIA GeForce GTX 1080]
Additional context
No response
I don't think it's possible. To be short, cuda device doesn't support any form of exception handling. If an error happened on the device side, there's no way to recover from it. The only solution is to avoid the error from happening before you execute it on the device.