AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-773403

Joe Molnar's questions

Martin Hope
Joe Molnar
Asked: 2020-05-21 19:41:57 +0800 CST

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

  • 3

我已经从 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 上。那时我使用了不同的矿机。

先感谢您。

drivers graphics opencl amdgpu-pro amdgpu
  • 2 个回答
  • 10802 Views
Martin Hope
Joe Molnar
Asked: 2020-05-14 08:41:43 +0800 CST

从 Ubuntu 16.04 升级到 20.04 后重新连接 raid 10 驱动器 md0

  • 0

我刚刚从Ubuntu 16.04升级到20.04。在我的计算机中,我在raid 10阵列中有 4 X 1TB HHD。它们是sda、sdb、sdc 和 sdd = md0 这个被袭击的驱动器包含我的主目录,在我的例子中是 /home/joe/ 我在 fstab 中有一行:

UUID=f7790191-84f3-4d9b-81b8-43de132244a2 /home           ext4    defaults        0       0

Linux Ubuntu 安装在固态驱动器dev/nvme0n1 上。

这是 blkid 在 16.04 下的输出:

/dev/nvme0n1p1: UUID="1c7b2d4e-d543-4e71-8b05-569a0993e339" TYPE="ext4" PARTUUID="3acfb4f5-01"
/dev/nvme0n1p5: UUID="2403be72-9dca-43b6-a596-044cfd813801" TYPE="swap" PARTUUID="3acfb4f5-05"
/dev/sda: UUID="43468a60-e0d2-6202-4e0c-320120beeee1" UUID_SUB="a49f1c1a-3450-39bc-8efb-67da1ebeacdf" LABEL="joeslinux:0" TYPE="linux_raid_member"
/dev/sdb: UUID="43468a60-e0d2-6202-4e0c-320120beeee1" UUID_SUB="11eb3ea8-74da-18c2-cd0a-bb2454c0cb46" LABEL="joeslinux:0" TYPE="linux_raid_member"
/dev/sdc: UUID="43468a60-e0d2-6202-4e0c-320120beeee1" UUID_SUB="e5b7cd63-974c-b4ed-8061-fc1c405abb08" LABEL="joeslinux:0" TYPE="linux_raid_member"
/dev/sdd1: UUID="82374f03-c484-4420-8693-6ed0a7704b4e" TYPE="ext4" PARTUUID="049ace7e-01"
/dev/sde: UUID="74D8-8B03" TYPE="vfat"
/dev/nvme0n1: PTUUID="3acfb4f5" PTTYPE="dos"

然后我从 Ubuntu 16.04 升级到 20.04。升级中途死机了,需要删除一些与 Python 3 基础包有关的东西。但是,我的计算机无法运行,因此我在该 SSD nvme01n 上进行了 20.04 的全新安装。这样做时,我从物理上断开了 4 个硬盘驱动器,从 sda 到 sdd。我这样做是因为安装程序暗示它想使用我的 sda 作为安装设备,我不能冒险让这种情况发生。

现在我已经干净、成功地安装了 20.04。我认为我在主目录中的所有工作仍然完好无损。但是我目前无法访问它。我没有我的 md0 驱动器。

这是我的新 fdisk -l:

Disk /dev/nvme0n1: 238.49 GiB, 256060514304 bytes, 500118192 sectors
Disk model: SAMSUNG MZVPW256HEGL-000H1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 233AD7D4-8BEC-407D-8096-A2C7BEA37CB7

Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 1050623 1048576 512M EFI System
/dev/nvme0n1p2 1050624 500117503 499066880 238G Linux filesystem

Disk /dev/sda: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: HGST HTS721010A9
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x000680a0

Disk /dev/sdb: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: HGST HTS721010A9
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xd92e9edf

Device     Boot Start        End    Sectors   Size Id Type
/dev/sdb1        2048 1953525167 1953523120 931.5G 83 Linux

Disk /dev/sdc: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: ST1000DM010-2EP1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x76221e63

Disk /dev/sdd: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: ST1000DM010-2EP1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xee260f95

Disk /dev/sdf: 1.84 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: PSZ-HB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x049ace7e

Device     Boot Start        End    Sectors  Size Id Type
/dev/sdf1        2048 3907029167 3907027120  1.8T 83 Linux

(上面省略了 Loop0 到 9。)

我知道 sda sdb sdc 和 sdd 是正确的大小。我还看到了一个与 md0 应该大小相同的新 sdf,即 1.84TiB。这与现实是一致的,所以我知道一切都在那里。

目前我的 blkid 只显示 1 行:

/dev/nvme0n1p2: UUID="ebb08f84-7501-4461-a5c4-c69c3c25d9b0" TYPE="ext4" PARTUUID="3ba58f92-47c7-423a-aad0-459ffe32cae1"

这只是带有操作系统的SSD。令人怀疑的是,UUID 和 PARTUUID 都与旧 16.04 上的相同。这让我担心被袭击的 md0 的 UUID 也发生了变化。

无论如何,我需要关于如何重建raid md0并重新指向我的主文件夹的建议。我不敢激活线路

UUID=f7790191-84f3-4d9b-81b8-43de132244a2 /home           ext4    defaults        0       0

在新的 fstab 中并重新启动。

而且我不敢在不完全了解我在做什么的情况下摆弄 mdadm。

提前感谢您的任何帮助或建议,

boot mount raid hard-drive
  • 1 个回答
  • 165 Views
Martin Hope
Joe Molnar
Asked: 2017-12-20 17:01:03 +0800 CST

安装 Ubuntu,屏幕不按照说明进行操作

  • 1

我按照说明从https://tutorials.ubuntu.com/tutorial/tutorial-install-ubuntu-desktop#0安装 Ubuntu

计算机上的屏幕看起来与说明完全不同。首先,我从 USB 闪存驱动器启动,我拥有的映像是 ubuntu- 16.04.3-desktop-amd64.iso。

安装 Ubuntu 时无法检查下载更新,只能检查安装图形的第三方软件。网页上的说明说我们建议您选择两者。

下一个网页上的说明说我将看到分配驱动器空间,我将在其中擦除磁盘并安装 Ubuntu。相反,我看到安装,安装类型,/dev/sda。

为什么我的屏幕与说明不同?

我被困在一个没有说明指导的步骤上。如果我单击立即安装,对话框会显示:

未定义根文件系统 请从分区菜单中更正此问题。

没有分区菜单,但是有一个新的分区表按钮......,所以我点击相信也许这就是你的意思。(下次请准确。)我得到以下对话框:

您已选择要分区的整个设备。如果您继续创建新的分区表...所有当前分区将被删除。

现在我在/dev/sda“可用空间”下多了一行,我现在点击安装。我得到:

没有定义根文件系统。请从分区菜单中更正此问题。

同样,没有分区菜单之类的东西。为什么说明错误!

我玩了很多次,不能仅仅凭直觉回答。

请我卡住了。而且我什至还没有开始安装 Ubuntu。

system-installation
  • 1 个回答
  • 574 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve