InvokeAI icon indicating copy to clipboard operation
InvokeAI copied to clipboard

[bug]: have two video cards, always defaults to amd card

Open MordesMortes opened this issue 3 years ago • 3 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

OS

Linux

GPU

cuda

VRAM

6GB

What happened?

I commented out lines 168-171 and line 174 in the install script to get invoke AI to install and not try to use my AMD video card as it is a 590 and AMD has decided to drop ROCm support for it

image

during the install it fails at line 201 image

with "hipErrorNoBinaryForGpu: Unable to find code object for all current devices!"

I'm just not finding where else I need to comment out so that I can use my nvidia card... I'm presenting this as a bug as I know having two video cards is an edge case but having the ability to select which video card to run on would be nice

Screenshots

No response

Additional context

No response

Contact Details

[email protected]

MordesMortes avatar Dec 15 '22 15:12 MordesMortes

I had this trouble too, I think they can fix it by changing the lsmod command to only using amd if a nvidia card isnt present.

Eg. like I did with lshw in my script for unraid if [[ $(lshw -C display | grep -i vendor) = AMD ]] && [[ $(lshw -C display | grep -i vendor) != NVIDIA ]] ; then

There is the rare occurrence the amd card is a better card then the nvidia, only way would be to ask the end user what they would like to use if both are detected, but that does break automation. I think defaulting to nividia in this case is the safe bet.

mickr777 avatar Dec 15 '22 21:12 mickr777

I got past the configure_invokeai.py issue as it was renamed Configure_invokeAI.py and that case issue was making it not show up for the script

MordesMortes avatar Dec 16 '22 03:12 MordesMortes

found the issue I ran

inxi -G and got

Graphics: Device-1: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] driver: amdgpu v: kernel Device-2: NVIDIA TU106 [GeForce RTX 2060 Rev. A] driver: vfio v: N/A Device-3: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series] driver: vfio-pci v: N/A Device-4: Linux Foundation USB Webcam gadget type: USB driver: snd-usb-audio Display: x11 server: X.Org v: 21.1.6 driver: X: loaded: amdgpu,nvidia unloaded: modesetting,nouveau dri: radeonsi gpu: amdgpu resolution: 1920x1080~60Hz API: OpenGL v: 4.6 Mesa 22.3.1 renderer: AMD Radeon RX 590 Series

went to /etc/mkinitcpio.conf and added nvidia in before vfio in the MODULES section rebuilt initramfs ( sudo mkinitcpio -P for me it might be update-initramfs -u for you ) rebooted and ran inxi -G again

Device-2: NVIDIA TU106 [GeForce RTX 2060 Rev. A] driver: nvidia v: 525.60.11

ran invokeAI and it picked up my video card

hopefully this helps someone else get it working

MordesMortes avatar Dec 23 '22 05:12 MordesMortes

There has been no activity in this issue for 14 days. If this issue is still being experienced, please reply with an updated confirmation that the issue is still being experienced with the latest release.

github-actions[bot] avatar Mar 14 '23 06:03 github-actions[bot]