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

nvidia_x11: install optimus ICDs #17

Merged
merged 1 commit into from Sep 8, 2019
Merged

nvidia_x11: install optimus ICDs #17

merged 1 commit into from Sep 8, 2019

Conversation

ghost
Copy link

@ghost ghost commented Sep 6, 2019

Now Vulkan part works. No idea what is wrong with OpenGL

$ __NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only vulkaninfo | fgrep 'GPU id'
                GPU id       : 0 (GeForce MX150)
                GPU id       : 0 (GeForce MX150)
                GPU id       : 0 (GeForce MX150)
                GPU id       : 0 (GeForce MX150)
                GPU id       : 0 (GeForce MX150)
                GPU id       : 0 (GeForce MX150)
GPU id       : 0 (GeForce MX150)
GPU id       : 0 (GeForce MX150)
$ __NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=non_NVIDIA_only vulkaninfo | fgrep 'GPU id'
INTEL-MESA: warning: ../src/intel/vulkan/anv_device.c:1504: FINISHME: Implement pop-free point clipping
                GPU id       : 0 (Intel(R) HD Graphics 620 (Kaby Lake GT2))
                GPU id       : 0 (Intel(R) HD Graphics 620 (Kaby Lake GT2))
                GPU id       : 0 (Intel(R) HD Graphics 620 (Kaby Lake GT2))
                GPU id       : 0 (Intel(R) HD Graphics 620 (Kaby Lake GT2))
                GPU id       : 0 (Intel(R) HD Graphics 620 (Kaby Lake GT2))
                GPU id       : 0 (Intel(R) HD Graphics 620 (Kaby Lake GT2))
GPU id       : 0 (Intel(R) HD Graphics 620 (Kaby Lake GT2))
GPU id       : 0 (Intel(R) HD Graphics 620 (Kaby Lake GT2))

Both work fine. Background is different so its easy to distinct these two

$ __NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only vkcube
$ __NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=non_NVIDIA_only vkcube

That worked too. I'm not sure why nvidia is darker...

$ __NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only vkquake -basedir /tmp/quake
$ __NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=non_NVIDIA_only vkquake -basedir /tmp/quake

Loaded

Fri Sep  6 22:21:50 2019       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 435.21       Driver Version: 435.21       CUDA Version: 10.1     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce MX150       Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   45C    P0    N/A /  N/A |    154MiB /  2002MiB |     32%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1086      G   ...gbim0idpi4fn42-xorg-server-1.20.5/bin/X    80MiB |
|    0     12692    C+G   /home/gnidorah/.nix-profile/bin/vkquake        63MiB |
|    0     13347    C+G   vkcube                                        10MiB |
+-----------------------------------------------------------------------------+

Idle

Fri Sep  6 22:23:07 2019       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 435.21       Driver Version: 435.21       CUDA Version: 10.1     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce MX150       Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   45C    P8    N/A /  N/A |     46MiB /  2002MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1086      G   ...gbim0idpi4fn42-xorg-server-1.20.5/bin/X    46MiB |
+-----------------------------------------------------------------------------+

@ghost ghost mentioned this pull request Sep 6, 2019
10 tasks
@ghost
Copy link
Author

ghost commented Sep 8, 2019

cc @eadwu

@eadwu eadwu merged this pull request into eadwu:nvidia/prime-render-offload Sep 8, 2019
@ghost
Copy link
Author

ghost commented Sep 8, 2019

@eadwu Thank you!

@ghost ghost deleted the nvidia/prime-render-offload branch September 8, 2019 12:15
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.

1 participant