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

AMD gpu detected as Intel #822

Closed
puttup opened this issue Feb 15, 2025 · 6 comments · Fixed by #848
Closed

AMD gpu detected as Intel #822

puttup opened this issue Feb 15, 2025 · 6 comments · Fixed by #848

Comments

@puttup
Copy link

puttup commented Feb 15, 2025

lspci indicates I have an AMD gpu, while ramalama info detects Intel:

$ lspci | grep -i 'VGA compatible controller'
09:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT] (rev c1)
    "GPUs": {
        "Detected GPUs": [
            {
                "Env": "ONEAPI_DEVICE_SELECTOR",
                "GPU": "Intel GPU",
                "VRAM": "12272 MiB"
            }
        ],
        "INFO": [
            {
                "INFO": "`nvidia-smi` not found. No NVIDIA GPU detected or drivers missing.",
                "Vendor": "NVIDIA"
            },
            {
                "INFO": "No AMD GPU detected or drivers missing.",
                "Vendor": "AMD"
            }
        ]
    }

Fedora 41
ramalama 0.6.0

@rhatdan
Copy link
Member

rhatdan commented Feb 15, 2025

I am seeing similar issues with

$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Raptor Lake-S UHD Graphics (rev 04)
01:00.0 VGA compatible controller: NVIDIA Corporation AD103GLM [RTX 5000 Ada Generation Laptop GPU] (rev a1)
    "GPUs": {
        "Detected GPUs": [
            {
                "Details": "00:02.0 VGA compatible controller: Intel Corporation Raptor Lake-S UHD Graphics (rev 04)",
                "Env": "ONEAPI_DEVICE_SELECTOR",
                "GPU": "Intel GPU",
                "VRAM": "Unknown"
            }
        ],
        "INFO": [
            {
                "INFO": "No NVIDIA GPU detected or drivers missing.",
                "Vendor": "NVIDIA"
            },
            {
                "INFO": "No AMD GPU detected or drivers missing.",
                "Vendor": "AMD"
            }
        ]
    },

@rhatdan
Copy link
Member

rhatdan commented Feb 15, 2025

@cgruver PTAL

Is this caused by:
#749

@rhatdan
Copy link
Member

rhatdan commented Feb 15, 2025

@ericcurtin PTAL

@ericcurtin
Copy link
Collaborator

ericcurtin commented Feb 18, 2025

This GPUDetector code's only functionality is displaying GPU details. It doesn't have any real functionality in RamaLama.

I use nvtop as my generic tool to display all GPU info, I'm not even sure we should have extended RamaLama to do things like this.

rhatdan added a commit to rhatdan/ramalama that referenced this issue Feb 18, 2025
rhatdan added a commit to rhatdan/ramalama that referenced this issue Feb 18, 2025
@cgruver
Copy link
Collaborator

cgruver commented Feb 18, 2025

@ericcurtin @rhatdan Instead of this functionality, should we just modify ramalama to report what it would do with a --dry-run or something?

The GPU detector code has a risk of reporting different info, since it uses different logic from the detector logic in common.py

@rhatdan
Copy link
Member

rhatdan commented Feb 18, 2025

I think we should unify these to be able to report the same thing.

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 a pull request may close this issue.

4 participants