Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show adapter info in slang-test #6388

Merged
merged 5 commits into from
Feb 19, 2025

Conversation

cheneym2
Copy link
Collaborator

When -show-adapter-info is provided to slang-test, there is a subsequent pass over all available APIs to ask render-api to show which adapter will be used.

.\slang-test.exe -show-adapter-info
Supported backends: fxc dxc glslang spirv-dis clang visualstudio genericcpp nvrtc llvm spirv-opt tint Check vk,vulkan: Supported
Check dx12,d3d12: Supported
Check dx11,d3d11: Supported
Check cuda: Supported
Check wgpu,webgpu: Supported

Adapter Information for Available APIs:

vk,vulkan:
Using graphics adapter: NVIDIA RTX A3000 Laptop GPU

dx12,d3d12:
Using graphics adapter: NVIDIA RTX A3000 Laptop GPU

dx11,d3d11:
Using graphics adapter: Intel(R) UHD Graphics

cpu:

cuda:

wgpu,webgpu:
Using graphics adapter: default

passed test: 'tests/autodiff/arithmetic-jvp.slang (dx11)' ...

closes #5600

@cheneym2 cheneym2 requested a review from a team as a code owner February 18, 2025 21:02
@cheneym2
Copy link
Collaborator Author

/format

@cheneym2 cheneym2 added the pr: non-breaking PRs without breaking changes label Feb 18, 2025
@slangbot
Copy link
Contributor

🌈 Formatted, please merge the changes from this PR

cheneym2 added a commit to cheneym2/slang that referenced this pull request Feb 18, 2025
@cheneym2 cheneym2 marked this pull request as draft February 18, 2025 21:54
When -show-adapter-info is provided to slang-test, there is a subsequent pass over all available APIs to ask render-api to show which adapter will be used.

> .\slang-test.exe -show-adapter-info
Supported backends: fxc dxc glslang spirv-dis clang visualstudio genericcpp nvrtc llvm spirv-opt tint
Check vk,vulkan: Supported
Check dx12,d3d12: Supported
Check dx11,d3d11: Supported
Check cuda: Supported
Check wgpu,webgpu: Supported

Adapter Information for Available APIs:

vk,vulkan:
Using graphics adapter: NVIDIA RTX A3000 Laptop GPU

dx12,d3d12:
Using graphics adapter: NVIDIA RTX A3000 Laptop GPU

dx11,d3d11:
Using graphics adapter: Intel(R) UHD Graphics

cpu:

cuda:

wgpu,webgpu:
Using graphics adapter: default

passed test: 'tests/autodiff/arithmetic-jvp.slang (dx11)'
...

closes shader-slang#5600
@cheneym2 cheneym2 force-pushed the cheneym2/adapterInfo branch from 11b1b76 to 05b81f0 Compare February 19, 2025 00:03
@cheneym2
Copy link
Collaborator Author

/format

@slangbot
Copy link
Contributor

🌈 Formatted, please merge the changes from this PR

@cheneym2 cheneym2 marked this pull request as ready for review February 19, 2025 00:36
@cheneym2 cheneym2 enabled auto-merge (squash) February 19, 2025 02:30
@cheneym2 cheneym2 merged commit 0959d7e into shader-slang:master Feb 19, 2025
15 of 16 checks passed
@cheneym2 cheneym2 deleted the cheneym2/adapterInfo branch February 19, 2025 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: non-breaking PRs without breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Print out device name when initializing APIs in slang-test
3 participants