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

p16s recognizes but not utilizing eGPU #1128

Open
1 of 3 tasks
130s opened this issue Dec 17, 2024 · 4 comments
Open
1 of 3 tasks

p16s recognizes but not utilizing eGPU #1128

130s opened this issue Dec 17, 2024 · 4 comments
Labels
tool_blender About Blender, modeling software tool_UE5 About Unreal Engine 5.x

Comments

@130s
Copy link
Collaborator

130s commented Dec 17, 2024

As started looking in at #1120 (comment), Ubuntu does recognize eGPU but it doesn't seem to be utilized. As reoprted in #861 (comment), eGPU doesn't seem to start working up at all w/Unreal Engine. Blender is configured to render w/eGPU but I only see the dedicated GPU used.

CoS

  • eGPU is utilized by graphics
  • eGPU config stored as a file
  • eGPU config added to SUCO
@130s
Copy link
Collaborator Author

130s commented Dec 17, 2024

What's the proper step on Ubuntu to utilize eGPU?

I haven't run into a proper article yet, https://gist.github.com/valteu/1c0a9b7288cc3d77a6654a4d22d0ce9f suggests using so-called egpu-switcher, which seems to be originally announced on egpu.io. So downloaded egpu-switcher-amd64 v0.19.0 (latest as of 2024/12).

$ sudo chmod 755 /opt/hertg/egpu-switcher-amd64
$ sudo ln -s /opt/hertg/egpu-switcher-amd64 /usr/bin/egpu-switcher
ln: failed to create symbolic link '/usr/bin/egpu-switcher': File exists
/opt/hertg$ sudo rm /usr/bin/egpu-switcher 
/opt/hertg$ sudo ln -s /opt/hertg/egpu-switcher-amd64 /usr/bin/egpu-switcher
/opt/hertg$ sudo egpu-switcher enable        
[info] no eGPU has been configured yet

Found 3 possible GPU(s)...

1:      Intel Corporation Alder Lake-P Integrated Graphics Controller (i915)
2:      NVIDIA Corporation Device 1fb7 (nvidia)
3:      NVIDIA Corporation Device 2805 (nvidia)

Which one is your external GPU? [1-3]: 

It asks which ones are eGPU?

Based on the following output, 52:00.0 and 52:00.1 can be eGPUs? I assume for now there are two 52:00s as my RTX 4060 is dual (not sure if I'm right).
(UPDATE 20250127) Hence, chose the num 3 above that shows "2805".

$ lspci | grep NVIDIA
03:00.0 3D controller: NVIDIA Corporation Device 1fb7 (rev a1)
52:00.0 VGA compatible controller: NVIDIA Corporation Device 2805 (rev a1)
52:00.1 Audio device: NVIDIA Corporation Device 22bd (rev a1)

Every 2.0s: nvidia-smi                              130s-p16s: Tue Dec 17 12:22:17 2024

Tue Dec 17 12:22:17 2024
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.183.01             Driver Version: 535.183.01   CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA T550 Laptop GPU         Off | 00000000:03:00.0 Off |                  N/A |
| N/A   53C    P0              11W /  30W |    812MiB /  4096MiB |     12%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
|   1  NVIDIA GeForce RTX 4060 Ti     Off | 00000000:52:00.0 Off |                  N/A |
|  0%   32C    P8              10W / 165W |      8MiB / 16380MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+

+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A      3977      G   /usr/lib/xorg/Xorg                          358MiB |
|    0   N/A  N/A      4630      G   /usr/bin/compiz                             165MiB |
|    0   N/A  N/A      4724      G   ...irefox/5437/usr/lib/firefox/firefox      214MiB |
|    1   N/A  N/A      3977      G   /usr/lib/xorg/Xorg                            4MiB |
+---------------------------------------------------------------------------------------+

Rebooting OS now.

@130s
Copy link
Collaborator Author

130s commented Dec 17, 2024

$ nvidia-smi
Tue Dec 17 12:39:43 2024       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.183.01             Driver Version: 535.183.01   CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA T550 Laptop GPU         Off | 00000000:03:00.0 Off |                  N/A |
| N/A   52C    P8               5W /  30W |      4MiB /  4096MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
|   1  NVIDIA GeForce RTX 4060 Ti     Off | 00000000:52:00.0 Off |                  N/A |
|  0%   41C    P3              18W / 165W |   4215MiB / 16380MiB |     24%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    1   N/A  N/A      3327      G   /usr/lib/xorg/Xorg                          535MiB |
|    1   N/A  N/A      3984      G   /usr/bin/compiz                             158MiB |
|    1   N/A  N/A      4082      G   ...irefox/5437/usr/lib/firefox/firefox      178MiB |
|    1   N/A  N/A      6858    C+G   .../Engine/Binaries/Linux/UnrealEditor     3277MiB |
+---------------------------------------------------------------------------------------+

Worked!
All processes in this tool are now using GPU 1, not 0.

Dedicated monitor size changed to 1920x1080 (16x9) for some reason, so manually switched back to 1920x1200 (16x10).

So, I guess what was missing was x.org config, same as the author of egpu-switcher?

@130s
Copy link
Collaborator Author

130s commented Dec 17, 2024

I hadn't had to re-modify /etc/default/grub as instructed at https://gist.github.com/valteu/1c0a9b7288cc3d77a6654a4d22d0ce9f#file-ubuntu_egpu-L16

@130s
Copy link
Collaborator Author

130s commented Dec 22, 2024

@130s 130s added tool_blender About Blender, modeling software tool_UE5 About Unreal Engine 5.x labels Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tool_blender About Blender, modeling software tool_UE5 About Unreal Engine 5.x
Projects
None yet
Development

No branches or pull requests

1 participant