我刚刚完成了Ubuntu20.04的新安装,并尝试在AMD R7 M445上安装用于GPU计算的GPU。我需要它来使用tensorflow的GPU功能。我遵循本教程:安装AMD ROCm - ROCm文档1.0.0文档。不确定ROCm是否支持这个GPU,因为我在几个地方看到了不同的地方。
ROCm版本为3.7.0-20.
Linux内核版本为5.4.0-42-泛型.
当运行命令sudo apt install rocm-dkms时,终端上的输出是:
Secure Boot not enabled on this system. Done. Forcing installation of amdgpu
amdgpu.ko: Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.4.0-42-generic/updates/dkms/
amdttm.ko: Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.4.0-42-generic/updates/dkms/
amdkcl.ko: Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.4.0-42-generic/updates/dkms/
amd-sched.ko: Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.4.0-42-generic/updates/dkms/
depmod....
Backing up initrd.img-5.4.0-42-generic to /boot/initrd.img-5.4.0-42-generic.old-dkms Making new initrd.img-5.4.0-42-generic (If next boot fails, revert to initrd.img-5.4.0-42-generic.old-dkms image) update-initramfs......
DKMS: install completed.运行opt/rocm/bin/rocminfo时得到的输出是:
ROCk module is loaded
Able to open /dev/kfd read-write
=====================
HSA System Attributes
=====================
Runtime Version: 1.1
System Timestamp Freq.: 1000.000000MHz
Sig. Max Wait Duration: 18446744073709551615 (0xFFFFFFFFFFFFFFFF) (timestamp count)
Machine Model: LARGE
System Endianness: LITTLE
==========
HSA Agents
==========
*******
Agent 1
*******
Name: Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
Uuid: CPU-XX
Marketing Name: Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
Vendor Name: CPU
Feature: None specified
Profile: FULL_PROFILE
Float Round Mode: NEAR
Max Queue Number: 0(0x0)
Queue Min Size: 0(0x0)
Queue Max Size: 0(0x0)
Queue Type: MULTI
Node: 0
Device Type: CPU
Cache Info:
L1: 32768(0x8000) KB
Chip ID: 0(0x0)
Cacheline Size: 64(0x40)
Max Clock Freq. (MHz): 3500
BDFID: 0
Internal Node ID: 0
Compute Unit: 4
SIMDs per CU: 0
Shader Engines: 0
Shader Arrs. per Eng.: 0
WatchPts on Addr. Ranges:1
Features: None
Pool Info:
Pool 1
Segment: GLOBAL; FLAGS: KERNARG, FINE GRAINED
Size: 16294032(0xf8a090) KB
Allocatable: TRUE
Alloc Granule: 4KB
Alloc Alignment: 4KB
Accessible by all: TRUE
Pool 2
Segment: GLOBAL; FLAGS: COARSE GRAINED
Size: 16294032(0xf8a090) KB
Allocatable: TRUE
Alloc Granule: 4KB
Alloc Alignment: 4KB
Accessible by all: TRUE
ISA Info:
N/A
*** Done *** 对于/opt/rocm/opencl/bin/clinfo,我得到:
Number of platforms: 1
Platform Profile: FULL_PROFILE
Platform Version: OpenCL 2.0 AMD-APP (3182.0)
Platform Name: AMD Accelerated Parallel Processing
Platform Vendor: Advanced Micro Devices, Inc.
Platform Extensions: cl_khr_icd cl_amd_event_callback
Platform Name: AMD Accelerated Parallel Processing
Number of devices: 0你知道有什么问题吗?我尝试了很多我在网上看到的东西,并更新了我能想到或找到的所有东西(OpenCL,OpenGL)。GPU安装的驱动程序是"amdgpu“。
发布于 2020-09-08 12:17:59
同事有类似于dGPU的笔记本电脑,R7 M445 (我认为是M255),但效果真的很糟糕。它在18.04中甚至无法使用。现在有了20.04,他可以使用它,但它并不比英特尔iGPU好多少。
这是为开放源码AMDGPU (非专业)驱动程序。AMDGPU驱动程序使用16.04.x (x不是最新的),它确实支持一些OpenCL iirc。
关于ROCm -你运气不好。实际上只支持少数卡--主要是北极星(如RX 580)和桌面织女星(例如Vega 64)。旧卡(如R9 270)根本不受支持。dGPUs不受支持(就像您的M445一样),它非常混乱。
https://askubuntu.com/questions/1271761
复制相似问题