m4rs-mt / ILGPU

ILGPU JIT Compiler for high-performance .Net GPU programs
http://www.ilgpu.net
Other
1.41k stars 120 forks source link

Better error messages when kernel program failed to run. #1124

Closed 12345swordy closed 12 months ago

12345swordy commented 1 year ago

Kernel code in question I found out the problem. However I wish the exception also contain the source code generated as part of the error message, so I don't have to waste time trying to get the source generated from the kernel function, in order to figure out what the error message generated from.

MoFtZ commented 12 months ago

@12345swordy as part of the exception thrown by ILGPU, there is an inner exception that contains details like the file and line number where the error occurred.