slang icon indicating copy to clipboard operation
slang copied to clipboard

Crash when raytracing used on cuda/ptx

Open jeroen-van-schijndel-otoy opened this issue 1 year ago • 4 comments

building one of the following raytracing examples : https://github.com/shader-slang/slang/blob/master/examples/ray-tracing-pipeline/shaders.slang https://github.com/shader-slang/slang/blob/master/examples/ray-tracing/shaders.slang

segfault when trying to do so with the following commandline ./slangc.exe -target cuda shaders.slang no other useful output is given

this happens on latest master but also in this release https://github.com/shader-slang/slang/releases/download/v2024.0.6/slang-2024.0.6-win64.zip

Building for target spirv glsl or hlsl works fine.

We don't support compiling vertex and fragment shaders to CUDA, which is present in the file.

csyonghe avatar Feb 16 '24 15:02 csyonghe

A error informing the user of that would be appreciated

Hey, @csyonghe why not convert this bug to being a non-crash so that this doesn't trip people up, instead of closing it?

natduca avatar Feb 28 '24 20:02 natduca

Yes, we should fix any crashes, sorry for closing this prematurely.

csyonghe avatar Feb 29 '24 01:02 csyonghe

@ArielG-NV can you take a look at this next sprint?

bmillsNV avatar Jul 25 '24 19:07 bmillsNV

Sure. Should be solvable with the capability system.

ArielG-NV avatar Jul 25 '24 19:07 ArielG-NV

Slang will now diagnose an error on this command, closing.

csyonghe avatar Jul 31 '24 19:07 csyonghe