无法加载 OpenCL 运行时/或无法加载 xmrig

乔·莫尔纳

我已经从 Ubuntu 16.04 更新到20.04这样做时升级失败了,我最终重新安装了 20.04。幸运的是,我在另一个驱动器上有我的主文件夹,所以它被保存了。还有很多东西需要恢复。我坚持的最后一项是让我的AMD Radeon 580 GPU工作。AMD 不支持 16.04 之后的 Ubuntu 驱动程序。我尝试从下面的页面安装OPENCL而且,我希望我安装了正确的软件。

https://rocmdocs.amd.com/en/latest/Installation_Guide/Installation-Guide.html

同时遵循此视频的建议:https : //www.youtube.com/watch?v=efKjfBkjPlM

目的是在我的计算机空闲时使用xmrig程序进行一些 GPU 加密挖掘

为了检查是否成功完成,我有 rocminfo 和 clinfo 命令。

rocminfo 的结果是:

joe@joeslinux:~$ /opt/rocm/bin/rocminfo

ROCk module is loaded
joe is member of video group
=====================    
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:                    AMD Ryzen Threadripper 1950X 16-Core Processor
  Marketing Name:          AMD Ryzen Threadripper 1950X 16-Core Processor
  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):   3400                               
  BDFID:                   0                                  
  Internal Node ID:        0                                  
  Compute Unit:            32                                 
  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:                    65778612(0x3ebb3b4) KB             
      Allocatable:             TRUE                               
      Alloc Granule:           4KB                                
      Alloc Alignment:         4KB                                
      Acessible by all:        TRUE                               
    Pool 2                   
      Segment:                 GLOBAL; FLAGS: COARSE GRAINED      
      Size:                    65778612(0x3ebb3b4) KB             
      Allocatable:             TRUE                               
      Alloc Granule:           4KB                                
      Alloc Alignment:         4KB                                
      Acessible by all:        TRUE                               
  ISA Info:                
    N/A                      
*******                  
Agent 2                  
*******                  
  Name:                    gfx803                             
  Marketing Name:          Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
  Vendor Name:             AMD                                
  Feature:                 KERNEL_DISPATCH                    
  Profile:                 BASE_PROFILE                       
  Float Round Mode:        NEAR                               
  Max Queue Number:        128(0x80)                          
  Queue Min Size:          4096(0x1000)                       
  Queue Max Size:          131072(0x20000)                    
  Queue Type:              MULTI                              
  Node:                    1                                  
  Device Type:             GPU                                
  Cache Info:              
    L1:                      16(0x10) KB                        
  Chip ID:                 26591(0x67df)                      
  Cacheline Size:          64(0x40)                           
  Max Clock Freq. (MHz):   1340                               
  BDFID:                   16640                              
  Internal Node ID:        1                                  
  Compute Unit:            36                                 
  SIMDs per CU:            4                                  
  Shader Engines:          4                                  
  Shader Arrs. per Eng.:   1                                  
  WatchPts on Addr. Ranges:4                                  
  Features:                KERNEL_DISPATCH 
  Fast F16 Operation:      FALSE                              
  Wavefront Size:          64(0x40)                           
  Workgroup Max Size:      1024(0x400)                        
  Workgroup Max Size per Dimension:
    x                        1024(0x400)                        
    y                        1024(0x400)                        
    z                        1024(0x400)                        
  Max Waves Per CU:        40(0x28)                           
  Max Work-item Per CU:    2560(0xa00)                        
  Grid Max Size:           4294967295(0xffffffff)             
  Grid Max Size per Dimension:
    x                        4294967295(0xffffffff)             
    y                        4294967295(0xffffffff)             
    z                        4294967295(0xffffffff)             
  Max fbarriers/Workgrp:   32                                 
  Pool Info:               
    Pool 1                   
      Segment:                 GLOBAL; FLAGS: COARSE GRAINED      
      Size:                    8388608(0x800000) KB               
      Allocatable:             TRUE                               
      Alloc Granule:           4KB                                
      Alloc Alignment:         4KB                                
      Acessible by all:        FALSE                              
    Pool 2                   
      Segment:                 GROUP                              
      Size:                    64(0x40) KB                        
      Allocatable:             FALSE                              
      Alloc Granule:           0KB                                
      Alloc Alignment:         0KB                                
      Acessible by all:        FALSE                              
  ISA Info:                
    ISA 1                    
      Name:                    amdgcn-amd-amdhsa--gfx803          
      Machine Models:          HSA_MACHINE_MODEL_LARGE            
      Profiles:                HSA_PROFILE_BASE                   
      Default Rounding Mode:   NEAR                               
      Default Rounding Mode:   NEAR                               
      Fast f16:                TRUE                               
      Workgroup Max Size:      1024(0x400)                        
      Workgroup Max Size per Dimension:
        x                        1024(0x400)                        
        y                        1024(0x400)                        
        z                        1024(0x400)                        
      Grid Max Size:           4294967295(0xffffffff)             
      Grid Max Size per Dimension:
        x                        4294967295(0xffffffff)             
        y                        4294967295(0xffffffff)             
        z                        4294967295(0xffffffff)             
      FBarrier Max Size:       32                                 
*** Done ***             

clinfo 是个陌生人。运行 clinfo,我得到:

joe@joeslinux:~$ clinfo
terminate called after throwing an instance of 'cl::Error'
  what():  clGetPlatformIDs
Aborted (core dumped)

从目录运行它得到了一个不同的错误:

joe@joeslinux:~$ /opt/rocm/opencl/bin/x86_64/clinfo
ERROR: clGetPlatformIDs(-1001)

从目录中使用 sudo 运行它得到了似乎是有效的输出。joe@joeslinux:~$ sudo /opt/rocm/opencl/bin/x86_64/clinfo

Number of platforms:                 1
  Platform Profile:              FULL_PROFILE
  Platform Version:              OpenCL 2.1 AMD-APP (3098.0)
  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 Name:                 AMD Accelerated Parallel Processing
Number of devices:               1
  Device Type:                   CL_DEVICE_TYPE_GPU
  Vendor ID:                     1002h
  Board name:                    Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
  Device Topology:               PCI[ B#65, D#0, F#0 ]
  Max compute units:                 36
  Max work items dimensions:             3
    Max work items[0]:               1024
    Max work items[1]:               1024
    Max work items[2]:               1024
  Max work group size:               256
  Preferred vector width char:           4
  Preferred vector width short:          2
  Preferred vector width int:            1
  Preferred vector width long:           1
  Preferred vector width float:          1
  Preferred vector width double:         1
  Native vector width char:          4
  Native vector width short:             2
  Native vector width int:           1
  Native vector width long:          1
  Native vector width float:             1
  Native vector width double:            1
  Max clock frequency:               1340Mhz
  Address bits:                  64
  Max memory allocation:             7301444403
  Image support:                 Yes
  Max number of images read arguments:       128
  Max number of images write arguments:      8
  Max image 2D width:                16384
  Max image 2D height:               16384
  Max image 3D width:                2048
  Max image 3D height:               2048
  Max image 3D depth:                2048
  Max samplers within kernel:            26591
  Max size of kernel argument:           1024
  Alignment (bits) of base address:      1024
  Minimum alignment (bytes) for any datatype:    128
  Single precision floating point capability
    Denorms:                     No
    Quiet NaNs:                  Yes
    Round to nearest even:           Yes
    Round to zero:               Yes
    Round to +ve and infinity:           Yes
    IEEE754-2008 fused multiply-add:         Yes
  Cache type:                    Read/Write
  Cache line size:               64
  Cache size:                    16384
  Global memory size:                8589934592
  Constant buffer size:              7301444403
  Max number of constant args:           8
  Local memory type:                 Scratchpad
  Local memory size:                 65536
  Max pipe arguments:                16
  Max pipe active reservations:          16
  Max pipe packet size:              3006477107
  Max global variable size:          7301444403
  Max global variable preferred total size:  8589934592
  Max read/write image args:             64
  Max on device events:              1024
  Queue on device max size:          8388608
  Max on device queues:              1
  Queue on device preferred size:        262144
  SVM capabilities:              
    Coarse grain buffer:             Yes
    Fine grain buffer:               Yes
    Fine grain system:               No
    Atomics:                     No
  Preferred platform atomic alignment:       0
  Preferred global atomic alignment:         0
  Preferred local atomic alignment:      0
  Kernel Preferred work group size multiple:     64
  Error correction support:          0
  Unified memory for Host and Device:        0
  Profiling timer resolution:            1
  Device endianess:              Little
  Available:                     Yes
  Compiler available:                Yes
  Execution capabilities:                
    Execute OpenCL kernels:          Yes
    Execute native function:             No
  Queue on Host properties:              
    Out-of-Order:                No
    Profiling :                  Yes
  Queue on Device properties:                
    Out-of-Order:                Yes
    Profiling :                  Yes
  Platform ID:                   0x7fe7119b5d30
  Name:                      gfx803
  Vendor:                    Advanced Micro Devices, Inc.
  Device OpenCL C version:           OpenCL C 2.0 
  Driver version:                3098.0 (HSA1.1,LC)
  Profile:                   FULL_PROFILE
  Version:                   OpenCL 1.2 
  Extensions:                    cl_khr_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_fp16 cl_khr_gl_sharing cl_amd_device_attribute_query cl_amd_media_ops cl_amd_media_ops2 cl_khr_image2d_from_buffer cl_khr_subgroups cl_khr_depth_images cl_amd_copy_buffer_p2p cl_amd_assembly_program 

clinfo 及其文件夹归 1001 所有。我知道这意味着没有所有者 1001。

drwxrwxr-x  5 1001 1001 4096 May 17 22:28 opencl

我将所有者更改为root。然后我再次运行 clinfo 命令,但这没有任何区别。

我试图运行的程序是 xmrig。

这是错误行:

./xmrig ...

* OPENCL       disabled (failed to load OpenCL runtime)

另请注意,我之前没有运行过这个 xmrig 挖矿程序,那是在 16.04 上。当时我使用了不同的矿机。

先感谢您。

乔·莫尔纳

我终于找到了有效的说明!

我尝试从网上找到的许多说明中安装 OpenCl。大多数是沮丧的练习。这是对我有用的那个。https://gist.github.com/kytulendu/3351b5d0b4f947e19df36b1ea3c95cbe

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

无法在OpenCV for Python中加载OpenCL运行时

来自分类Dev

无法在OpenCV for Python中加载OpenCL运行时

来自分类Dev

无法加载SWF文件运行时

来自分类Dev

Symfony 无法加载 TwigRenderer 运行时

来自分类Dev

无法使用运行时或ProcessBuilder执行排序命令

来自分类Dev

无法使用运行时或ProcessBuilder执行排序命令

来自分类Dev

无法加载Swift运行时库(找不到图像)

来自分类Dev

从jar运行时无法加载javafx资源

来自分类Dev

Tomcat作为Windows服务运行时无法加载webapp

来自分类Dev

Tomcat作为Windows服务运行时无法加载webapp

来自分类Dev

从jar运行时无法加载javafx资源

来自分类Dev

首次运行时无法加载 sqlite 数据库

来自分类Dev

OpenCL内核无法编译?

来自分类Dev

无法导入张量流-无法加载本机张量流运行时

来自分类Dev

无法找到或加载设置的主类路径和类路径,但运行时仍出错

来自分类Dev

Crossrider.com-以管理员身份运行时,IE加载项无法正常工作?

来自分类Dev

运行时异常:显示名称为“ Catel.MVVM.Aero”的程序集无法加载

来自分类Dev

使用spark-submit运行时无法加载com.databricks.spark.csv

来自分类Dev

以非root用户身份运行时,Perl模块无法正确加载

来自分类Dev

Flink在运行时无法通过LinkageError加载ProducerRecord类

来自分类Dev

从Visual Studio IDE运行时,项目无法加载图像资产

来自分类Dev

使用spark-submit运行时无法加载com.databricks.spark.csv

来自分类Dev

Apache Spark未加载运行时环境配置,无法提交作业

来自分类Dev

无法加载 AssetBundle,因为“它与较新版本的 Unity 运行时不兼容”

来自分类Dev

cypress 测试运行时无法加载地图和 css 的图块

来自分类Dev

Android 本机运行时无法加载符号,即使它们实际上是在加载的 .so 文件中找到的

来自分类Dev

混合模式程序集是针对运行时的版本“ v2.0.50727”构建的,无法在4.0运行时中加载-研究解决方案不起作用

来自分类Dev

加载javascript文件运行时

来自分类Dev

在运行时动态加载jar?

Related 相关文章

  1. 1

    无法在OpenCV for Python中加载OpenCL运行时

  2. 2

    无法在OpenCV for Python中加载OpenCL运行时

  3. 3

    无法加载SWF文件运行时

  4. 4

    Symfony 无法加载 TwigRenderer 运行时

  5. 5

    无法使用运行时或ProcessBuilder执行排序命令

  6. 6

    无法使用运行时或ProcessBuilder执行排序命令

  7. 7

    无法加载Swift运行时库(找不到图像)

  8. 8

    从jar运行时无法加载javafx资源

  9. 9

    Tomcat作为Windows服务运行时无法加载webapp

  10. 10

    Tomcat作为Windows服务运行时无法加载webapp

  11. 11

    从jar运行时无法加载javafx资源

  12. 12

    首次运行时无法加载 sqlite 数据库

  13. 13

    OpenCL内核无法编译?

  14. 14

    无法导入张量流-无法加载本机张量流运行时

  15. 15

    无法找到或加载设置的主类路径和类路径,但运行时仍出错

  16. 16

    Crossrider.com-以管理员身份运行时,IE加载项无法正常工作?

  17. 17

    运行时异常:显示名称为“ Catel.MVVM.Aero”的程序集无法加载

  18. 18

    使用spark-submit运行时无法加载com.databricks.spark.csv

  19. 19

    以非root用户身份运行时,Perl模块无法正确加载

  20. 20

    Flink在运行时无法通过LinkageError加载ProducerRecord类

  21. 21

    从Visual Studio IDE运行时,项目无法加载图像资产

  22. 22

    使用spark-submit运行时无法加载com.databricks.spark.csv

  23. 23

    Apache Spark未加载运行时环境配置,无法提交作业

  24. 24

    无法加载 AssetBundle,因为“它与较新版本的 Unity 运行时不兼容”

  25. 25

    cypress 测试运行时无法加载地图和 css 的图块

  26. 26

    Android 本机运行时无法加载符号,即使它们实际上是在加载的 .so 文件中找到的

  27. 27

    混合模式程序集是针对运行时的版本“ v2.0.50727”构建的,无法在4.0运行时中加载-研究解决方案不起作用

  28. 28

    加载javascript文件运行时

  29. 29

    在运行时动态加载jar?

热门标签

归档