如何确认设备是否具备dedicated graphic accelerator与64MB on-board graphic memory?
Hey there! Let's break down how to check if your computer has a dedicated graphics accelerator and sufficient on-board graphic memory—especially to meet 3D Slicer's minimum requirements. I'll focus on the lshw tool you mentioned first (since that's what the tutorial recommended), plus some simpler alternatives to make this easier.
Using the lshw Tool (Linux Systems)
First, open your terminal and run this command (you'll need sudo privileges to get full hardware details):
sudo lshw -C display
Now let's parse the output to answer your questions clearly:
1. Identify if you have a dedicated graphics accelerator
- Look for the
descriptionfield: It'll usually sayVGA compatible controller(your primary display adapter) or3D controller(common for laptop dedicated GPUs). Yes, this "controller" is the core of your graphics card—so don't worry, that's exactly what you're looking for. - Check the
productline:- Dedicated GPUs will have brand-specific models like
NVIDIA GeForce GTX 1650orAMD Radeon RX 6600. - Integrated graphics (not dedicated) will be tied to your CPU, e.g.,
Intel UHD Graphics 620orAMD Radeon Vega 8.
- Dedicated GPUs will have brand-specific models like
- Verify the
driverin theconfigurationsection: Dedicated GPUs use manufacturer-specific drivers likenvidiaoramdgpu, while integrated ones use generic drivers likei915(for Intel).
2. Check on-board graphic memory size
- Locate the
sizefield in the output. For dedicated GPUs, this number is the on-board (built-in) memory of the card. For example,size: 4GiBmeans 4 gigabytes of dedicated on-board VRAM. - For Slicer's requirement, you just need this number to be at least 64MB. Integrated graphics will show a "size" too, but that's shared system RAM—not the dedicated on-board memory Slicer needs.
Alternative Tools (Quick Checks)
If lshw feels too verbose, try these simpler commands:
glxinfo | grep "OpenGL renderer": Shows which GPU your system is currently using. If it lists a dedicated model (e.g.,NVIDIA GeForce GTX 1050), you're good to go.nvidia-smi(NVIDIA only): Directly displays your GPU's total on-board memory underTotal Memory.lspci | grep VGA: Lists all graphics devices in a compact format—you can spot dedicated vs integrated by the model name.
Verifying Slicer's Full Minimum Requirements
Slicer needs 2GB RAM plus a dedicated GPU with 64MB on-board VRAM. Here's how to confirm both:
- Check RAM: Run
free -hand look at theTotalline underMem—make sure it's 2GB or more. - Confirm GPU: Use the
lshwmethod above to find a dedicated GPU withsize≥64MB. - Ensure your system is using the dedicated GPU (some laptops switch between integrated and dedicated automatically, but you can force it via your system's graphics settings if needed).
Example lshw output snippet for a valid dedicated GPU:
*-display
description: VGA compatible controller
product: GP107M [GeForce GTX 1050 Mobile]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:01:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
configuration: driver=nvidia latency=0
resources: irq:137 memory:de000000-deffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:e000(size=128) memory:c0000-dffff
In this case, the product confirms it's a dedicated NVIDIA GPU, and the memory ranges translate to 4GB of on-board VRAM—way more than Slicer's 64MB requirement.
内容的提问来源于stack exchange,提问作者DBinJP

