Skip to content

Initialize slang capabilities#596

Merged
skallweitNV merged 10 commits into
mainfrom
dev/skallweit/initialize-capabilities
Dec 5, 2025
Merged

Initialize slang capabilities#596
skallweitNV merged 10 commits into
mainfrom
dev/skallweit/initialize-capabilities

Conversation

@skallweitNV
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Contributor

@jkwak-work jkwak-work left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't know that slang-rhi has a list of capability.
Does it mean we should modify slang-rhi side include/slang-rhi/capabilities.h whenever we changes the capability on Slang repo?

Comment thread include/slang-rhi/capabilities.h Outdated
@skallweitNV
Copy link
Copy Markdown
Collaborator Author

I didn't know that slang-rhi has a list of capability. Does it mean we should modify slang-rhi side include/slang-rhi/capabilities.h whenever we changes the capability on Slang repo?

I opened shader-slang/slang#7005 for that. It would be neat if slang shipped with a header file defining all available capabilities. Currently I have to update that list manually ..

@skallweitNV skallweitNV force-pushed the dev/skallweit/initialize-capabilities branch from 2fb6571 to 5272fb0 Compare December 5, 2025 08:08
Copy link
Copy Markdown
Contributor

@ccummingsNV ccummingsNV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comment, but otherwise LGTM

Comment thread src/cuda/cuda-device.cpp
if (m_ctx.optixContext->getCooperativeVectorSupport())
{
addFeature(Feature::CooperativeVector);
// addCapability(Capability::optix_coopvec);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not clear to me why this is here but commented out - maybe delete or say why?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. This is commented out because when setting that capability in a session that is used to compile a compute kernel it fails in slang. Guess the reason is that this capability is invalid in a compute/CUDA-only context, but why slang doesn't just ignore it is to be answered. Because there are other capabilities that have no meaning in certain entry point types for example, which all seem to work fine.

@skallweitNV skallweitNV merged commit f57004c into main Dec 5, 2025
23 checks passed
@skallweitNV skallweitNV deleted the dev/skallweit/initialize-capabilities branch December 5, 2025 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants