Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ms-access/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
安装OpenCL ubuntu AMD_Opencl_Ubuntu 14.04_Gpu - Fatal编程技术网

安装OpenCL ubuntu AMD

安装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:

我想安装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: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工作的解决方案是:

  • 如果您有更新的LTS,请使用Ubuntu 14.04。我已经尝试了16.04,fglrx不再得到官方支持。我没有运气使用实验性的AMDGPU-PRO或类似软件。我最终安装了一个新的14.04

  • 你需要一个司机。直接从Ubuntu软件中心安装。您还可以在“附加驱动程序”中安装它。不要从amd.com下载最新的驱动程序。它有编译错误。你最终可能会找到解决办法。但是如果你只想做OpenCL编码,那就回到Ubuntu。安装clinfo,您应该能够找到GPU

  • 请勿在AMD APP SDK 3.0中使用OpenCL库。安装驱动程序时,系统中已经有一个OpenCL库。我以root用户身份安装了sdk3.0,这允许它用SDK附带的lib替换旧的lib。突然,所有OpenCLAPI调用都挂起,包括clinfo。我卸载了SDK,一切都恢复正常。我想这也可能是司机造成的吧?无论如何,如果您需要SDK来编译该文件,您始终可以作为普通用户安装它

  • 现在clinfo应该在工作并享受OpenCL了!顺便说一句,AMD APU在运行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