![:Haha :Haha](./images/smilies/Haha.png)
1.安装ubuntu21.04每日构建版
下载地址:http://cdimage.ubuntu.com/daily-live/cu ... -amd64.iso
2.下载amd显卡驱动(帖主使用amd rx580 2048sp显卡)
下载地址:https://drivers.amd.com/drivers/linux/a ... .04.tar.xz
3.安装opencl驱动
代码: 全选
tar xvfJ amdgpu-pro-20.45-1188099-ubuntu-20.04.tar.xz
cd amdgpu-pro-20.45-1188099-ubuntu-20.04
sudo ./amdgpu-install --no-32 --no-dkms --opencl=legacy -y
代码: 全选
sudo apt install clinfo -y && clinfo
代码: 全选
......
Platform Name AMD Accelerated Parallel Processing
Platform Vendor Advanced Micro Devices, Inc.
Platform Version OpenCL 2.1 AMD-APP (3188.4)
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd cl_amd_event_callback cl_amd_offline_devices
Platform Host timer resolution 1ns
Platform Extensions function suffix AMD
......
Platform Name AMD Accelerated Parallel Processing
Number of devices 1
Device Name Ellesmere
Device Vendor Advanced Micro Devices, Inc.
Device Vendor ID 0x1002
Device Version OpenCL 1.2 AMD-APP (3188.4)
Driver Version 3188.4
Device OpenCL C Version OpenCL C 1.2
Device Type GPU
Device Board Name (AMD) AMD Radeon RX 580 2048SP
Device PCI-e ID (AMD) 0
Device Topology (AMD) PCI-E, 07:00.0
Device Profile FULL_PROFILE
Device Available Yes
Compiler Available Yes
Linker Available Yes
Max compute units 32
SIMD per compute unit (AMD) 4
SIMD width (AMD) 16
SIMD instruction width (AMD) 1
Max clock frequency 1284MHz
Graphics IP (AMD) 8.0
Device Partition (core)
Max number of sub-devices 32
Supported partition types None
Supported affinity domains (n/a)
Max work item dimensions 3
Max work item sizes 1024x1024x1024
Max work group size 256
Preferred work group size (AMD) 256
Max work group size (AMD) 1024
Preferred work group size multiple (kernel) 64
Wavefront width (AMD) 64
Preferred / native vector sizes
char 4 / 4
short 2 / 2
int 1 / 1
long 1 / 1
half 1 / 1 (cl_khr_fp16)
float 1 / 1
double 1 / 1 (cl_khr_fp64)
Half-precision Floating-point support (cl_khr_fp16)
Denormals No
Infinity and NANs No
Round to nearest No
Round to zero No
Round to infinity No
IEEE754-2008 fused multiply-add No
Support is emulated in software No
Single-precision Floating-point support (core)
Denormals No
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Correctly-rounded divide and sqrt operations Yes
Double-precision Floating-point support (cl_khr_fp64)
Denormals Yes
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Address bits 64, Little-Endian
Global memory size 8099319808 (7.543GiB)
Global free memory (AMD) 7891956 (7.526GiB) 6271413 (5.981GiB)
Global memory channels (AMD) 8
Global memory banks per channel (AMD) 16
Global memory bank width (AMD) 256 bytes
Error Correction support No
Max memory allocation 6695332659 (6.236GiB)
Unified memory for Host and Device No
Minimum alignment for any data type 128 bytes
Alignment of base address 2048 bits (256 bytes)
Global Memory cache type Read/Write
Global Memory cache size 16384 (16KiB)
Global Memory cache line size 64 bytes
Image support Yes
Max number of samplers per kernel 16
Max size for 1D images from buffer 134217728 pixels
Max 1D or 2D image array size 2048 images
Base address alignment for 2D image buffers 256 bytes
Pitch alignment for 2D image buffers 256 pixels
Max 2D image size 16384x16384 pixels
Max 3D image size 2048x2048x2048 pixels
Max number of read image args 128
Max number of write image args 8
Local memory type Local
Local memory size 32768 (32KiB)
Local memory size per CU (AMD) 65536 (64KiB)
Local memory banks (AMD) 32
Max number of constant args 8
Max constant buffer size 6695332659 (6.236GiB)
Preferred constant buffer size (AMD) 16384 (16KiB)
Max size of kernel argument 1024
Queue properties
Out-of-order execution No
Profiling Yes
Prefer user sync for interop Yes
Profiling timer resolution 1ns
Profiling timer offset since Epoch (AMD) 1612483249868009378ns (Fri Feb 5 08:00:49 2021)
Execution capabilities
Run OpenCL kernels Yes
Run native kernels No
Thread trace supported (AMD) Yes
Number of async queues (AMD) 2
Max real-time compute queues (AMD) 0
Max real-time compute units (AMD) 0
SPIR versions 1.2
printf() buffer size 4194304 (4MiB)
Built-in kernels (n/a)
Device Extensions cl_khr_fp64 cl_amd_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_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_image2d_from_buffer cl_amd_bus_addressable_memory cl_khr_spir cl_khr_gl_event
......
代码: 全选
wget -c https://github.com/Miners-dev/phoenixminer/releases/download/5.4c/PhoenixMiner_5.4c_Linux.zip
代码: 全选
unzip PhoenixMiner_5.4c_Linux.zip
chmod 0755 -R PhoenixMiner_5.4c_Linux
cd PhoenixMiner_5.4c_Linux
sudo ./start_miner.sh
代码: 全选
2021.02.05:09:04:36.593: main Phoenix Miner 5.5b Linux/gcc - Release build
2021.02.05:09:04:36.593: main Cmd line: -pool ssl://eu1.ethermine.org:5555 -wal 0x39e987c72d3b35da03ba9aca26a9e9f91c16c04c.Rig001
2021.02.05:09:04:36.593: main No CUDA driver found
2021.02.05:09:04:36.626: main OpenCL driver version: 20.45-1188099
2021.02.05:09:04:36.626: main Available GPUs for mining:
2021.02.05:09:04:36.626: main GPU1: AMD Radeon RX 580 2048SP (pcie 7), OpenCL 1.2, 7.5 GB VRAM, 32 CUs
2021.02.05:09:04:36.626: main AMD sysfs monitor initialized
2021.02.05:09:04:36.626: main Eth: Loading pools from epools.txt
2021.02.05:09:04:36.627: main Eth: the pool list contains 6 pools (1 from command-line)
2021.02.05:09:04:36.627: main Eth: primary pool: ssl://eu1.ethermine.org:5555
2021.02.05:09:04:36.627: main Starting GPU mining
2021.02.05:09:04:36.627: main GPU1: fan PWM control mode 2, min 0, max 255
2021.02.05:09:04:36.727: wdog Starting watchdog thread
2021.02.05:09:04:36.727: main Eth: Connecting to ethash pool ssl://eu1.ethermine.org:5555 (proto: EthProxy)
2021.02.05:09:04:36.727: main GPU1: 40C 34% 28W
GPUs power: 28.2 W
2021.02.05:09:04:36.928: main Listening for CDM remote manager at port 3333 in read-only mode
2021.02.05:09:04:36.968: eths Eth: Connected to SSL ethash pool eu1.ethermine.org:5555 (172.65.207.106)
2021.02.05:09:04:37.452: eths Eth: Send: {"id":1,"jsonrpc":"2.0","method":"eth_submitLogin","worker":"eth1.0","params":["0x39e987c72d3b35da03ba9aca26a9e9f91c16c04c.Rig001"]}
2021.02.05:09:04:37.717: eths Eth: Received: {"id":1,"jsonrpc":"2.0","result":true}
2021.02.05:09:04:37.717: eths Eth: Send: {"id":5,"jsonrpc":"2.0","method":"eth_getWork","params":[]}
2021.02.05:09:04:38.605: eths Eth: Received: {"id":0,"jsonrpc":"2.0","result":["0x2a0b7ae14223c412f132496b893ecbfbabf94111d8d249138c1ad51d45298720","0x3cf8670019e79b15fd95c8b49f22fa2f0437367023efaec218c4449988d41ea1","0x0000000112e0be826d694b2e62d01511f12a6061fbaec8bc02357593e70e52ba","0xb3f335"]}
2021.02.05:09:04:38.606: eths Eth: New job #2a0b7ae1 from ssl://eu1.ethermine.org:5555; diff: 4000MH
2021.02.05:09:04:38.606: GPU1 GPU1: Starting up... (0)
2021.02.05:09:04:38.606: GPU1 GPU1: Generating ethash light cache for epoch #393
2021.02.05:09:04:39.395: eths Eth: Received: {"id":0,"jsonrpc":"2.0","result":["0xdcc61cf3da83f056d7961e07db443852916af2fd59ebeb7d2cd0709119c3f9ea","0x3cf8670019e79b15fd95c8b49f22fa2f0437367023efaec218c4449988d41ea1","0x0000000112e0be826d694b2e62d01511f12a6061fbaec8bc02357593e70e52ba","0xb3f335"]}
2021.02.05:09:04:39.395: eths Eth: New job #dcc61cf3 from ssl://eu1.ethermine.org:5555; diff: 4000MH
2021.02.05:09:04:40.687: GPU1 Light cache generated in 2.1 s (31.3 MB/s)
2021.02.05:09:04:41.018: GPU1 GPU1: Free VRAM: 7.532 GB; used: 0.017 GB
2021.02.05:09:04:41.018: GPU1 GPU1: Allocating DAG (4.09) GB; good for epoch up to #395
2021.02.05:09:04:41.026: GPU1 GPU1: Generating DAG for epoch #393
2021.02.05:09:04:41.737: main Eth speed: 0.000 MH/s, shares: 0/0/0, time: 0:00
2021.02.05:09:04:42.559: GPU1 GPU1: DAG 14%
......