安装OpenCL ubuntu AMD
我想安装fglrx并使用GPU。但我没有成功安装它。我正在使用ubuntu 14.04.03 Trusty 此处显示lspci输出:安装OpenCL ubuntu AMD,opencl,ubuntu-14.04,gpu,Opencl,Ubuntu 14.04,Gpu,我想安装fglrx并使用GPU。但我没有成功安装它。我正在使用ubuntu 14.04.03 Trusty 此处显示lspci输出: [thomas@elsa:~]$ lspci | grep -i --color 'vga' 00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06) 01:
[thomas@elsa:~]$ lspci | grep -i --color 'vga'
00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v3/4th
Gen Core Processor Integrated Graphics Controller (rev 06)
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI]
Oland XT [Radeon HD 8670 / R7 250/350]
我已经尝试通过以下方式安装它,并且
我是否遗漏了什么,是否应该安装其他东西
有什么想法吗
非常感谢显示驱动程序:(注意:这不是在AMD GPU上运行OpenCL的要求) 以下是一些其他链接,您可以尝试安装AMD驱动程序: 和 我发现(使用Nvidia驱动程序)X未正确配置时会出现黑屏,因此您必须正确遵循这些步骤 第一个链接说使用
fglrxinfo
检查AMD驱动程序的状态,因此我假设您没有看到黑屏,请检查AMD驱动程序是否正常工作
OpenCL:(仅需要AMD应用程序SDK)
要将AMD GPU与OpenCL一起使用,您不需要显示驱动程序(注意您参考的第一份文档(安装指南)中的部分,其中说明如果Catalyst未安装在第4页(共7页),您只需要OpenCL运行时驱动程序(libOpenCL
——用于在GPU上运行编译的OpenCL代码)标题(用于实际开发和编译OpenCL代码)。这两款产品均随AMD应用程序SDK提供。只需按照安装指南安装SDK(如果不需要GPU显示,请尝试不使用catalyst驱动程序)
检查/opt/AMDAPPSDK-3.0/
是否有二进制文件,它应该包括一个lib
目录,您可以在其中找到libOpenCL.so
和一个include/CL
,您可以在其中找到所有头文件
此外,具有的SDK在SDK的bin
目录中有一个clinfo
二进制文件(至少我在Arch上的安装是这样的),因此运行:
/path/to/AMDAPPSDK/bin/clinfo
检查是否可以检测到您的GPU。以下是我的安装(检测英特尔CPU)的clinfo
命令的一些输出:
我遇到了与AMD A10-6800K相同的问题。我唯一能让OpenCL工作的解决方案是:
面临什么错误/问题?在我在ubuntu上安装fglrx之后,当我重新启动时,我有一个黑屏。我没有忘记做
sudoamdconfig--initial-f
。当我卸载flgrx时,一切恢复正常。我错过了什么?
Number of platforms: 2
Platform Profile: FULL_PROFILE
Platform Version: OpenCL 2.0 AMD-APP (1800.8)
Platform Name: AMD Accelerated Parallel Processing
Platform Vendor: Advanced Micro Devices, Inc.
Platform Extensions: cl_khr_icd cl_amd_event_callback cl_amd_offline_devices
Platform Profile: FULL_PROFILE
Platform Version: OpenCL 1.2 LINUX
Platform Name: Intel(R) OpenCL
Platform Vendor: Intel(R) Corporation
# Some other information
# Information about a platform -- you should see AMD and Xeon
Platform Name: AMD Accelerated Parallel Processing
Number of devices: 1
Device Type: CL_DEVICE_TYPE_CPU
Vendor ID: 1002h
Board name:
Max compute units: 8
Max work items dimensions: 3
Max work items[0]: 1024
Max work items[1]: 1024
Max work items[2]: 1024
Max work group size: 1024
# Rest of information