Xilinx / blockchainacceleration

https://xilinx.github.io/blockchainacceleration/
Other
45 stars 30 forks source link

Unrecognized platform Xilinx #7

Open developeralgo8888 opened 2 years ago

developeralgo8888 commented 2 years ago

when trying launch ethereum mining on C1100

# xbmgmt examine -d 0000:03:00.0

----------------------------------------------------
1/1 [0000:03:00.0] : xilinx_u55n_gen3x4_xdma_base_1
----------------------------------------------------
Flash properties
  Type                 : spi
  Serial Number        : XFL10ODSICBB

Device properties
  Type                 : u55n
  Name                 : C1100 PQ U55
  Config Mode          : 7
  Max Power            : 75W

Flashable partitions running on FPGA
  Platform             : xilinx_u55n_gen3x4_xdma_base_1
  SC Version           : 7.1.12
  Platform UUID        : 9964C49C-DB53-EB6C-69B6-FD2086401583
  Interface UUID       : FCBF34C6-8850-4574-FD28-1F638E4382A3

Flashable partitions installed in system
  Platform             : xilinx_u55n_gen3x4_xdma_base_1
  SC Version           : 7.1.12
  Platform UUID        : 9964C49C-DB53-EB6C-69B6-FD2086401583

This is the error i am getting

# ./build.sh mine 0x883E82C4B5C04Eeced96f463262813370ef94743  dev86box35  stratum+tcp://us1.ethermine.org:5555

mine
account:             0x883E82C4B5C04Eeced96f463262813370ef94743
name:                 dev86box35
mining pool address:  stratum+tcp://us1.ethermine.org:5555

ethminer 0.19.0-8+commit.cd75c13d
Build: linux/release/gnu

Unrecognized platform Xilinx
CUDA Error : No CUDA driver found
Error: No usable mining devices found

What is the solution ? i am not able to mine on the card , the platform does not seem to be recognized even though all tests on the card and platform are fine

developeralgo8888 commented 2 years ago

i am not sure if it might be Xilinx XRT not recognizing the platform installed on the FPGA or the platform/device type used to compile xclbin files . Since the C1100 card is device type u55n but i see in the blockchainacceleration code device = u55n_gen3x4.

my platform installed on the FPGA Card and the System are the same:

Flashable partitions running on FPGA
  Platform             : xilinx_u55n_gen3x4_xdma_base_1
  SC Version           : 7.1.12
  Platform UUID        : 9964C49C-DB53-EB6C-69B6-FD2086401583
  Interface UUID       : FCBF34C6-8850-4574-FD28-1F638E4382A3

Flashable partitions installed in system
  Platform             : xilinx_u55n_gen3x4_xdma_base_1
  SC Version           : 7.1.12
  Platform UUID        : 9964C49C-DB53-EB6C-69B6-FD2086401583

Not sure why xilinx XRT is failing to recognize its own platform .

developeralgo8888 commented 2 years ago

Fixed it by recompiling it with the patch applied , checked everything after successful compile but it still can't mine . it crashes badly after the dag is imported and starts mining then crashes with invalid result

developeralgo8888 commented 2 years ago

It crashes after starting to mining , just after finishing to load the Dag and Kernel xclbins .


i 09:19:00 ethminer Job: dd4a73a8… block 13855504 us1.ethermine.org [[2606:4700:90:0:b886:9f1:5c3e:5711]:4444]
 m 09:19:02 ethminer 0:01 A0 131.44 Kh - cl0 131.44
 i 09:19:02 ethminer Job: 3485785e… block 13855505 us1.ethermine.org [[2606:4700:90:0:b886:9f1:5c3e:5711]:4444]
 i 09:19:02 ethminer Job: 41254a9a… block 13855505 us1.ethermine.org [[2606:4700:90:0:b886:9f1:5c3e:5711]:4444]
 i 09:19:03 ethminer Job: bd335400… block 13855506 us1.ethermine.org [[2606:4700:90:0:b886:9f1:5c3e:5711]:4444]
 i 09:19:03 ethminer Job: 4edb08ae… block 13855506 us1.ethermine.org [[2606:4700:90:0:b886:9f1:5c3e:5711]:4444]

XRT build version: 2.12.427
Build hash: 2719b6027e185000fc49783171631db03fc0ef79
Build date: 2021-10-08 22:06:50
Git branch: 2021.2
PID: 5142
UID: 0
[Wed Dec 22 14:19:05 2021 GMT]
HOST: devbox
EXE: /root/Downloads/ETHTEST/blockchainacceleration/ethminer/build/ethminer/ethminer

[XRT] ERROR: unable to sync BO: Input/output error
terminate called after throwing an instance of 'xrt_xocl::error'
  what():  event 830 never submitted
Header Change

While the test.log shows the following:

ethminer 0.19.0-9+commit.ca776c09 Build: linux/release/gnu

Header Change
clear done 
Need 3 rounds to generate DAG dataset of 4940889728 Bytes.
cache size: 77200832 Byte
INFO: Importing ./dag_gen_kernel.xclbin
Loading: './dag_gen_kernel.xclbin'
dag size: 4940889728 Byte
INFO: Importing ./ethash_kernel.xclbin
Loading: './ethash_kernel.xclbin'
device[0]'s DAG is finished
device[1]'s DAG is finished
device[2]'s DAG is finished
Header Change
Header Change
Header Change
developeralgo8888 commented 2 years ago

Can't mine it keeps crashing . The Hashrate i am seeing in the brief 2 minutes that it tries to mine is 76 MH/s for 3 x C1100 .

Is anyone getting stable >50 MH/s @ <150W per card that xilinx is advertising to sell this Varium C1100 cards or its just false advertising ? Each of my cards have upto 225W supplied even though it will only use a maximum of 150W per card. They got hot pretty quickly and shut down ? am missing something ?

i decided to crankup cooling with 5 x 5000 RPM heavy duty GPU server fans which are loud as hell to try and cool the 3 x C1100 cards and see if that helps .

Any idea ?

developeralgo8888 commented 2 years ago

i was able to cool the cards but can't mine on more than 1 card. I have 3 x Xilinx Varium C1100 cards for my project and it can only mine on 1 card at 66 to 70 MH/s . Do i need to change anything for this to work on multiple Xilinx varium C1100 FPGA .

It crashes after 5 to 10 minutes even though its cooled well and supplied with 225W per card of which each card uses only upto 150W per card . I have even just tried using 75W only per card and they still crash after about 5 to 10 minutes

The cards have been validated using xilinx xbutil and xbmgmt tools, The OS is able to see all 3 x Xilinx C1100 cards with no issues. I have checked everything possible i can think of.

What might be the issue

developeralgo8888 commented 2 years ago

I have tried running Xilinx ethminer 0.19 and can't seem to get it to mine . i am getting different errors while mining everytime

XRT build version: 2.12.427
Build hash: 2719b6027e185000fc49783171631db03fc0ef79
Build date: 2021-10-08 22:06:50
Git branch: 2021.2
PID: 5096
UID: 0
[Fri Dec 24 21:18:42 2021 GMT]
HOST: devbox
EXE: /Developer/Downloads/DEV_XILINX_FPGA_MINER/blockchainacceleration/ethminer/build/ethminer/ethminer
[XRT] ERROR: unable to sync BO: Input/output error
[XRTdevice[1]'s DAG is finished
] ERROR: Event '13' is unreferenced but not complete
[XRT] ERROR: Operation failed due to earlier error 'unable to sync BO: Input/output error'
 X 16:18:42 cl-0     Exception thrown in Worker thread: OpenCL Error: clEnqueueUnMapMemObject: CL_OUT_OF_RESOURCES (-5)
[XRT] ERROR: unable to sync BO: Input/output error
 i 16:18:42 ethminer Job: f042d8cf… block 13870266 us1.ethermine.org [[2606:4700:90:0:b886:9f1:5c3e:5711]:4444]
 m 16:18:44 ethminer 0:01 A0 0.00 h - cl0 0.00
 i 16:18:44 ethminer Job: 675c7837… block 13870266 us1.ethermine.org [[2606:4700:90:0:b886:9f1:5c3e:5711]:4444]
 i 16:18:46 ethminer Job: cd1e7563… block 13870266 us1.ethermine.org [[2606:4700:90:0:b886:9f1:5c3e:5711]:4444]
 i 16:18:47 ethminer Job: be8f9dc5… block 13870266 us1.ethermine.org [[2606:4700:90:0:b886:9f1:5c3e:5711]:4444]
 i 16:18:48 ethminer Job: f1089fa1… block 13870266 us1.ethermine.org [[2606:4700:90:0:b886:9f1:5c3e:5711]:4444]
 m 16:18:49 ethminer 0:01 A0 0.00 h - cl0 0.00
 i 16:18:50 ethminer Job: 9c89d07d… block 13870266 us1.ethermine.org [[2606:4700:90:0:b886:9f1:5c3e:5711]:4444]
 i 16:18:50 ethminer Job: 031786ad… block 13870267 us1.ethermine.org [[2606:4700:90:0:b886:9f1:5c3e:5711]:4444]
[XRT] ERROR: unable to sync BO: Input/output error
[XRT] ERROR: unable to sync BO: Input/output error
 i 16:18:52 ethminer Job: 9a02c37b… block 13870267 us1.ethermine.org [[2606:4700:90:0:b886:9f1:5c3e:5711]:4444]
 m 16:18:54 ethminer 0:01 A0 0.00 h - cl0 0.00
 i 16:18:54 ethminer Job: 15bea317… block 13870267 us1.ethermine.org [[2606:4700:90:0:b886:9f1:5c3e:5711]:4444]
 i 16:18:56 ethminer Job: 23199972… block 13870267 us1.ethermine.org [[2606:4700:90:0:b886:9f1:5c3e:5711]:4444]
 i 16:18:58 ethminer Job: 5b39309b… block 13870267 us1.ethermine.org [[2606:4700:90:0:b886:9f1:5c3e:5711]:4444]
 m 16:18:59 ethminer 0:01 A0 0.00 h - cl0 0.00
 i 16:19:00 ethminer Job: ec1f92ea… block 13870267 us1.ethermine.org [[2606:4700:90:0:b886:9f1:5c3e:5711]:4444]
[XRT] ERROR: unable to sync BO: Input/output error
terminate called after throwing an instance of 'xrt_xocl::error'
  what():  event 13 never submitted
vt-lib-support commented 2 years ago

Hi @developeralgo8888 , according to the logs, it seems that need to run "xbutil reset" on all your Varium cards before running ethereum mining. Also please notice that although there's 3x Varium C1100 cards in your mining server, the modified ethminer host will not demonstrate each card's hashing rate separately but sum them up and only shows total hashing rate. So the "66~70Mh/s" is actually from 3 cards, not 1 card.

yluo39github commented 2 years ago

Fixed it by recompiling it with the patch applied , checked everything after successful compile but it still can't mine . it crashes badly after the dag is imported and starts mining then crashes with invalid result

Hi,how you fix the "Unrecognized platform Xilinx" I catch the same error