Files
pytorch/c10
Daniel Galvez 9a38bb8622 [CUDA] Fix truncated error messages in cudaMallocAsync Allocator (#168369)
Previously, these error messages would get truncated when they were hit on device 0 because device is a "char" (actually, an int8_t) and therefore '0' is interpreted as the null byte to terminate a string. Essentially, it is the same issue as https://github.com/pytorch/pytorch/pull/123984.

There's something strange in the TORCH_CHECK_WITH macro that is causing this. I don't feel like figuring out those obscure macro details right now, though.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/168369
Approved by: https://github.com/eqy
2025-11-24 00:03:19 +00:00
..
2025-11-18 14:31:49 +00:00