Skip to content

create_device always calls NVAPI #104

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

Open
matchang-dt opened this issue Mar 8, 2025 · 2 comments
Open

create_device always calls NVAPI #104

matchang-dt opened this issue Mar 8, 2025 · 2 comments

Comments

@matchang-dt
Copy link

I tried to run Your First Function but I got an error at the following line.

device = spy.create_device(include_paths=[
        pathlib.Path(__file__).parent.absolute(),
])

Exception has occurred: RuntimeError
Failed to initialize NVAPI.
D:\a\sgl\sgl\src\sgl\device\device.cpp(109) in function PipelineCreationAPIDispatcher

My environment is Windows 11pro with AMD Ryzen 7 7730U with Radeon Graphics.
I have the error even if I explicitly specify the type argument as DeviceType.d3d12, DeviceType.vulkan or DeviceType.cpu.

@expipiplus1 expipiplus1 added the bug Something isn't working label Mar 13, 2025
@bmillsNV bmillsNV added this to the Q2 2025 (Spring) milestone Mar 13, 2025
@ccummingsNV
Copy link
Contributor

Hi there. I've been through the code and we currently don't disable NVApi for none-NVidia cards on PC. We're currently working on a significant rewrite of the underlying RHI (which will bring with it CUDA support - yay!) and will make sure this dependency is removed. The fix is probably a few weeks away as yet.

@sleeplessai
Copy link

@ccummingsNV @bmillsNV
Got it, thanks and look fwd to this.

@bmillsNV bmillsNV removed the bug Something isn't working label Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants