-
Notifications
You must be signed in to change notification settings - Fork 593
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
hello_triangle sample does not display anything on my Alienware laptop #935
Comments
gpu selection is part of the framework and as such not implemented in the (hpp)hello_triangle sample. You can use it with any other sample though, as they use the sample framework that supports gpu selection. Or if you want to use the hello_triangle sample, simply adjust the the |
That turns out not to be the case. hello_triangle.cpp has code to pick the GPU / physical device here:
It does not consult the framework to see which GPU has been selected by command-line arguments. |
That's exactly what I wrote above. |
Maybe? I would have worded it differently. Maybe |
We don't have plans to add that functionality to the hello_triangle sample. |
I tried to run the hello_triangle sample on my laptop but the window stayed black and did not draw a triangle.
After poking around in gdb I eventually concluded that the hello_triangle sample chooses the wrong GPU . Its log shows the following physical devices.
[info] Found GPU= Intel(R) UHD Graphics 630 (CFL GT2)
[info] Found GPU= NVIDIA GeForce RTX 2070
[info] Found GPU= llvmpipe (LLVM 12.0.0, 256 bits)
I tried to use the --gpu 1 argument to tell it to use the nVidia GPU, but hello_triangle still picked the first GPU (Intel) . When I changed the code to skip the first GPU, then the window successfully displays a triangle.
The text was updated successfully, but these errors were encountered: