Failed to configure OpenCL GPU

Hi,

I’m trying to make my miner work.

  • Native Ubuntu 16.04.5 (No VM).
  • No monitor attached (command line over ssh).
  • 1 AMD GPU on the mobo (OpenCL drivers installed as instructed).
  • constants.xml edited as instructed (GPU set to OpenCL and only 1 (0) GPU to use).

Tail ending with the following error:

    g3log created log at: Sun Dec 16 11:41:36 2018

[INFO ][ 2049][10:41:36:143][PeerManager ] BEGIN
[INFO ][ 2049][10:41:36:144][SetupLogLevel ] BEGIN
[INFO ][ 2049][10:41:36:144][SetupLogLevel ] END
[INFO ][ 2049][10:41:36:144][PeerManager ] END
[INFO ][ 2049][10:41:36:144][SetState ][Epoch 0] DS State is now POW_SUBMISSION
[INFO ][ 2049][10:41:36:145][SetLookupNodes ] BEGIN
[INFO ][ 2049][10:41:36:149][SetLookupNodes ] END
[INFO ][ 2049][10:41:36:175][Zilliqa ] BEGIN
[INFO ][ 2049][10:41:36:238][Init ] In Guard mode. Up dating DS and Shard guard lists
[INFO ][ 2049][10:41:36:238][ValidateRunTimeEnvironment ] Passed guard mode run time enviornment validation
[INFO ][ 2049][10:41:36:261][UpdateDSGuardlist ] Total number of e ntries in DS guard list: 201
[INFO ][ 2049][10:41:36:320][UpdateShardGuardlist ] Total number of e ntries in shard guard list: 603
[INFO ][ 2049][10:41:36:321][Init ] Adding Priv IPs t o Exclusion List
[INFO ][ 2049][10:41:36:322][Zilliqa ] Current node is n ot a guard node
[INFO ][ 2049][10:41:36:322][Zilliqa ] END
[INFO ][ 2049][10:41:36:322][StartMessagePump ] BEGIN
[INFO ][ 3654][10:41:36:324][Install ] BEGIN
[INFO ][ 3654][10:41:36:325][AddGenesisInfo ] BEGIN
[INFO ][ 3654][10:41:36:325][Init ] BEGIN
[INFO ][ 3654][10:41:36:556][CleanAll ] Reset DB Succeed
[INFO ][ 3654][10:41:36:565][Init ] BEGIN
[INFO ][ 3654][10:41:36:565][InitSoft ] BEGIN
[INFO ][ 3654][10:41:36:565][InitReversibles ] BEGIN
[INFO ][ 3654][10:41:36:565][InitReversibles ] END
[INFO ][ 3654][10:41:36:565][InitTemp ] BEGIN
[INFO ][ 3654][10:41:36:565][InitTemp ] END
[INFO ][ 3654][10:41:36:565][InitSoft ] END
[INFO ][ 3654][10:41:36:607][Init ] END
[INFO ][ 3654][10:41:36:608][InitializeGenesisBlocks ] BEGIN
[INFO ][ 3654][10:41:36:609][Serialize ] BEGIN
[INFO ][ 3654][10:41:36:609][Serialize ] END
[INFO ][ 3654][10:41:36:610][Serialize ] BEGIN
[INFO ][ 3654][10:41:36:610][Serialize ] END
[INFO ][ 3654][10:41:36:610][PutBlock ] Stored DsBlock N um:0
[INFO ][ 3654][10:41:36:610][PutMetadata ] BEGIN
[INFO ][ 3654][10:41:36:610][PutMetadata ] END
[INFO ][ 3654][10:41:36:610][PutBlock ] Stored TxBlock N um:0
[INFO ][ 3654][10:41:36:610][InitializeGenesisBlocks ] END
[INFO ][ 3654][10:41:36:610][AddBlockLink ] [DBS]Stored 0 0 0 54cd7c703b55f4c330ebf5d32708671f9d8aa89fb2b3edf0bac82353cd7c0866
[INFO ][ 3654][10:41:36:610][Init ] END
[INFO ][ 3654][10:41:36:610][AddGenesisInfo ] END
[INFO ][ 3654][10:41:36:611][Prepare ] BEGIN
[INFO ][ 3654][10:41:36:611][UpdateDSBlockRand ] BEGIN
[INFO ][ 3654][10:41:36:611][UpdateDSBlockRand ] Genesis DSBlockch ain
[INFO ][ 3654][10:41:36:611][UpdateDSBlockRand ] END
[INFO ][ 3654][10:41:36:611][UpdateTxBlockRand ] BEGIN
[INFO ][ 3654][10:41:36:611][UpdateTxBlockRand ] Genesis txBlockch ain
[INFO ][ 3654][10:41:36:611][UpdateTxBlockRand ] END
[INFO ][ 3654][10:41:36:611][SetState ][Epoch 1] Node Sta te is now POW_SUBMISSION at epoch 1
[FATAL ]
******* EXIT trigger caused by LOG(FATAL) entry:
"[ 3654][10:41:38:874][InitOpenCL ] Failed to configu re OpenCL GPU, please check hardware
******* STACKDUMP *******
stack dump [1] /home/MyUserName/Desktop/Zilliqa/build/bin/zilliqa() [0x984 3cb]
stack dump [2] /home/MyUserName/Desktop/Zilliqa/build/bin/zilliqa() [0x9a3 505]
stack dump [3] /home/MyUserName/Desktop/Zilliqa/build/bin/zilliqa() [0x9a4 d90]
stack dump [4] /home/MyUserName/Desktop/Zilliqa/build/bin/zilliqa() [0x9a4 f9a]
stack dump [5] /home/MyUserName/Desktop/Zilliqa/build/bin/zilliqa() [0x637 849]
stack dump [6] /home/MyUserName/Desktop/Zilliqa/build/bin/zilliqa() [0x641 fb0]
stack dump [7] /home/MyUserName/Desktop/Zilliqa/build/bin/zilliqa() [0x484 cbc]
stack dump [8] /usr/lib/x86_64-linux-gnu/libstdc++.so.6+0xb8c80 [0x7fd1 969c9c80]
stack dump [9] /lib/x86_64-linux-gnu/libpthread.so.0+0x76ba [0x7fd197b8 76ba]
stack dump [10] /lib/x86_64-linux-gnu/libc.so.6clone+0x6d [0x7fd19612f4 1d]

Exiting after fatal event (FATAL). Fatal type: SIGABRT
Log content flushed sucessfully to sink

"g3log g3FileSink shutdown at: 11:41:38 879766

Hope you guys can help me out.

Try this

Cd ~/Desktop/Zilliqa/build/test/POW
(Edit constant.xml)
./test_POW.sh

Post the result.

1 Like

Running 19 test cases…
No OpenCL platforms found2018/12/16 18:31:02 029842 FATAL [pow.cpp->InitOpenCL:405]
******* EXIT trigger caused by LOG(FATAL) entry:
"[ 1962][17:31:02: 26][InitOpenCL ] Failed to configure OpenCL GPU, please check hardware
******* STACKDUMP *******
stack dump [1] ./Test_POW() [0x96eafb]
stack dump [2] ./Test_POW() [0x44b965]
stack dump [3] ./Test_POW() [0x44d1f0]
stack dump [4] ./Test_POW() [0x44d3fa]
stack dump [5] ./Test_POW() [0x43fea6]
stack dump [6] ./Test_POW() [0x4407ee]
stack dump [7] ./Test_POW() [0x4432f7]
stack dump [8] /usr/lib/x86_64-linux-gnu/libboost_unit_test_framework.so.1.58.0+0x6acb1 [0x7fa496db2cb1]

    stack dump [9]  /usr/lib/x86_64-linux-gnu/libboost_unit_test_framework.so.1.58.0 : boost::execution_monitor::catch_signals(boost::unit_test::callback0<int> const&)+0x156 [0x7fa496d92996]

    stack dump [10]  /usr/lib/x86_64-linux-gnu/libboost_unit_test_framework.so.1.58.0 : boost::execution_monitor::execute(boost::unit_test::callback0<int> const&)+0x23 [0x7fa496d931b3]

    stack dump [11]  /usr/lib/x86_64-linux-gnu/libboost_unit_test_framework.so.1.58.0 : boost::unit_test::unit_test_monitor_t::execute_and_translate(boost::unit_test::test_case const&)+0xc2 [0x7fa496db2de2]

    stack dump [12]  /usr/lib/x86_64-linux-gnu/libboost_unit_test_framework.so.1.58.0 : boost::unit_test::framework_impl::visit(boost::unit_test::test_case const&)+0xae [0x7fa496d9a09e]

    stack dump [13]  /usr/lib/x86_64-linux-gnu/libboost_unit_test_framework.so.1.58.0 : boost::unit_test::traverse_test_tree(boost::unit_test::test_suite const&, boost::unit_test::test_tree_visitor&)+0x5b [0x7fa496dd04cb]

    stack dump [14]  /usr/lib/x86_64-linux-gnu/libboost_unit_test_framework.so.1.58.0 : boost::unit_test::traverse_test_tree(boost::unit_test::test_suite const&, boost::unit_test::test_tree_visitor&)+0x5b [0x7fa496dd04cb]

    stack dump [15]  /usr/lib/x86_64-linux-gnu/libboost_unit_test_framework.so.1.58.0 : boost::unit_test::framework::run(unsigned long, bool)+0x9c6 [0x7fa496d959f6]

    stack dump [16]  /usr/lib/x86_64-linux-gnu/libboost_unit_test_framework.so.1.58.0 : boost::unit_test::unit_test_main(bool (*)(), int, char**)+0xa7 [0x7fa496db1287]
    stack dump [17]  /lib/x86_64-linux-gnu/libc.so.6__libc_start_main+0xf0 [0x7fa493b78830]
    stack dump [18]  ./Test_POW() [0x43ade9]

Exiting after fatal event (FATAL). Fatal type: SIGABRT
Log content flushed sucessfully to sink

"g3log g3FileSink shutdown at: 18:31:02 030203
Log file at: [./zilliqa-00001-log.txt]

exitWithDefaultSignalHandler:229. Exiting due to FATAL, 6

unknown location(0): fatal error in “mining_and_verification”: signal: generated by kill() (or family); uid=1000; pid=1962
/home/jorrian/Desktop/Zilliqa/tests/POW/test_POW.cpp(269): last checkpoint

This may be bug from code, it is not recognize the opencl you had been installed or your installed opencl is not complete. Did you restart the machine once after install it?

similar:

Use ‘cat last.log’ to see the command output
Use ‘tail -f zilliqa-00001-log.txt’ to see the runtime log
b@zilliqa:~/zilliqa/join$ tail -f zilliqa-00001-log.txt
stack dump [6] /home/b/zilliqa/Zilliqa/build/bin/zilliqa() [0x641fa0]
stack dump [7] /home/b/zilliqa/Zilliqa/build/bin/zilliqa() [0x484cac]
stack dump [8] /usr/lib/x86_64-linux-gnu/libstdc++.so.6+0xb8c80 [0x7fd2d7e37c80]
stack dump [9] /lib/x86_64-linux-gnu/libpthread.so.0+0x76ba [0x7fd2d8ff56ba]
stack dump [10] /lib/x86_64-linux-gnu/libc.so.6clone+0x6d [0x7fd2d759d41d]

Exiting after fatal event (FATAL). Fatal type: SIGABRT
Log content flushed sucessfully to sink

Hello there, we are getting several reports (~5) of launch errors with OpenCL native builds. We will be investigating this. Initial suspect is build error for Zilliqa, we will need more build logs to tell.

Hi there, can you run the following in your terminal and paste the resulting logs in this thread? Thanks. We tried building and launching with our AMD hardware and it works.

clinfo

clinfo gives me this:

Number of platforms 0

This would mean that your AMD GPU is not recognised by the driver or the OpenCL driver is not installed properly.

clinfo returns the information of the GPU with OpenCL installed.

Ok thanks, I’ll might try with another AMD GPU.

Did you try follow this for install proper AMD GPU driver on Ubuntu?
https://www.amd.com/en/support/kb/faq/gpu-635

Also some advice from other member

"--pro " i think this one  helped in my case.

 https://www.amd.com/en/support/kb/release-notes/amdgpu-installation 

./amdgpu-pro-install -y  --pro

I did searching online and found this solution, we could try it:

$ sudo apt-get install ocl-icd-opencl-dev opencl-headers
$ wget --referer=http://support.amd.com https://www2.ati.com/drivers/linux/ubuntu/amdgpu-pro-17.50-511655.tar.xz
$ tar -xvf amdgpu-pro-17.50-511655.tar.xz
$ cd amdgpu-pro-17.50-511655
$ sudo ./amdgpu-pro-install --headless --opencl=legacy --compute
$ sudo reboot
1 Like

Hey guys,

dtompichayut and snowsledge, thanks so much for your effort on helping out finding a solution.

As the problem lies at the drive/gpu level I’m giving this a good change.

I’ll try both as soon as I’m back at my test rig and report back here.

snowsledge

Installing the amd driver that way gives a general Ubuntu error and after reboot can’t login into Ubuntu any more, tried different and no install flags but all result in the same.

Moving on to Ubuntu 18.04.1 Desktop and try out the main install instruction, maybe better luck.

Will report back soon.

what happend with configuration.tar.gz, seems like it’s missing launch.sh and only contains the docker one now??

We are not allowing joining for now. Will upload a new configuration file when it is ready.

could you please reply when you have uploaded the new config?

The new configuration is up. You can follow @zilliqaminer Telegram for the latest announcement on testnet status.

Clean install of Ubuntu 16.04 using new config and install following instructions…

Same result just an other day:

g3log created log at: Sat Dec 22 22:16:31 2018
[INFO][19687][18-12-22T21:16:31.118][PeerManager ] BEGIN
[INFO][19687][18-12-22T21:16:31.118][SetupLogLevel ] BEGIN
[INFO][19687][18-12-22T21:16:31.118][SetupLogLevel ] END
[INFO][19687][18-12-22T21:16:31.118][PeerManager ] END
[INFO][19687][18-12-22T21:16:31.118][SetState ][Epoch 0] DS State is now POW_SUBMISSION
[INFO][19687][18-12-22T21:16:31.118][SetLookupNodes ] BEGIN
[INFO][19687][18-12-22T21:16:31.122][SetLookupNodes ] END
[INFO][19687][18-12-22T21:16:31.145][Zilliqa ] BEGIN
[INFO][19687][18-12-22T21:16:31.202][Init ] In Guard mode. Updating DS and Shard guard lists
[INFO][19687][18-12-22T21:16:31.202][ValidateRunTimeEnvironment ] Passed guard mode run time environment validation
[INFO][19687][18-12-22T21:16:31.222][UpdateDSGuardlist ] Total number of entries in DS guard list: 201
[INFO][19687][18-12-22T21:16:31.277][UpdateShardGuardlist ] Total number of entries in shard guard list: 603
[INFO][19687][18-12-22T21:16:31.278][Init ] Adding Priv IPs to Exclusion List
[INFO][19687][18-12-22T21:16:31.278][Zilliqa ] Current node is not a guard node
[INFO][19687][18-12-22T21:16:31.278][Zilliqa ] END
[INFO][19687][18-12-22T21:16:31.278][StartMessagePump ] BEGIN
[INFO][21292][18-12-22T21:16:31.278][Install ] BEGIN
[INFO][21292][18-12-22T21:16:31.278][AddGenesisInfo ] BEGIN
[INFO][21292][18-12-22T21:16:31.278][Init ] BEGIN
[INFO][21292][18-12-22T21:16:31.513][CleanAll ] Reset DB Succeed
[INFO][21292][18-12-22T21:16:31.526][Init ] BEGIN
[INFO][21292][18-12-22T21:16:31.526][InitSoft ] BEGIN
[INFO][21292][18-12-22T21:16:31.527][InitReversibles ] BEGIN
[INFO][21292][18-12-22T21:16:31.527][InitReversibles ] END
[INFO][21292][18-12-22T21:16:31.527][InitTemp ] BEGIN
[INFO][21292][18-12-22T21:16:31.527][InitTemp ] END
[INFO][21292][18-12-22T21:16:31.527][InitSoft ] END
[INFO][21292][18-12-22T21:16:31.565][Init ] END
[INFO][21292][18-12-22T21:16:31.566][InitializeGenesisBlocks ] BEGIN
[INFO][21292][18-12-22T21:16:31.566][Serialize ] BEGIN
[INFO][21292][18-12-22T21:16:31.566][Serialize ] END
[INFO][21292][18-12-22T21:16:31.567][Serialize ] BEGIN
[INFO][21292][18-12-22T21:16:31.567][Serialize ] END
[INFO][21292][18-12-22T21:16:31.567][PutBlock ] Stored DsBlock Num:0
[INFO][21292][18-12-22T21:16:31.567][PutMetadata ] BEGIN
[INFO][21292][18-12-22T21:16:31.567][PutMetadata ] END
[INFO][21292][18-12-22T21:16:31.567][PutBlock ] Stored TxBlock Num:0
[INFO][21292][18-12-22T21:16:31.567][InitializeGenesisBlocks ] END
[INFO][21292][18-12-22T21:16:31.567][AddBlockLink ] [DBS]Stored 0 0 0 ba127538d2c63eec121629011ae8173210589689dca54d1e11904dd82c68e9da
[INFO][21292][18-12-22T21:16:31.567][Init ] END
[INFO][21292][18-12-22T21:16:31.567][AddGenesisInfo ] END
[INFO][21292][18-12-22T21:16:31.567][Prepare ] BEGIN
[INFO][21292][18-12-22T21:16:31.567][UpdateDSBlockRand ] BEGIN
[INFO][21292][18-12-22T21:16:31.567][UpdateDSBlockRand ] Genesis DSBlockchain
[INFO][21292][18-12-22T21:16:31.567][UpdateDSBlockRand ] END
[INFO][21292][18-12-22T21:16:31.567][UpdateTxBlockRand ] BEGIN
[INFO][21292][18-12-22T21:16:31.567][UpdateTxBlockRand ] Genesis txBlockchain
[INFO][21292][18-12-22T21:16:31.567][UpdateTxBlockRand ] END
[INFO][21292][18-12-22T21:16:31.567][SetState ][Epoch 1] Node State is now POW_SUBMISSION at epoch 1
[FATA]
******* EXIT trigger caused by LOG(FATAL) entry:
"[21292][18-12-22T21:16:32.664][InitOpenCL ] Failed to configure OpenCL GPU, please check hardware
******* STACKDUMP *******
stack dump [1] /home/jorrian/Desktop/Zilliqa/build/bin/zilliqa() [0xb995cb]
stack dump [2] /home/jorrian/Desktop/Zilliqa/build/bin/zilliqa() [0xba8d95]
stack dump [3] /home/jorrian/Desktop/Zilliqa/build/bin/zilliqa() [0xbaa190]
stack dump [4] /home/jorrian/Desktop/Zilliqa/build/bin/zilliqa() [0xbaa39a]
stack dump [5] /home/jorrian/Desktop/Zilliqa/build/bin/zilliqa() [0x66fd59]
stack dump [6] /home/jorrian/Desktop/Zilliqa/build/bin/zilliqa() [0x681f10]
stack dump [7] /home/jorrian/Desktop/Zilliqa/build/bin/zilliqa() [0x4af6cc]
stack dump [8] /usr/lib/x86_64-linux-gnu/libstdc++.so.6+0xb8c80 [0x7f08b9ad5c80]
stack dump [9] /lib/x86_64-linux-gnu/libpthread.so.0+0x76ba [0x7f08b92e86ba]
stack dump [10] /lib/x86_64-linux-gnu/libc.so.6clone+0x6d [0x7f08b901e41d]

Exiting after fatal event (FATAL). Fatal type: SIGABRT
Log content flushed sucessfully to sink

"g3log g3FileSink shutdown at: 22:16:32 665074

When I try to install driver this way:

sudo apt-get install ocl-icd-opencl-dev opencl-headers
wget --referer=http://support.amd.com https://www2.ati.com/drivers/linux/ubuntu/amdgpu-pro-17.50-511655.tar.xz
tar -xvf amdgpu-pro-17.50-511655.tar.xz
cd amdgpu-pro-17.50-511655
sudo ./amdgpu-pro-install --headless --opencl=legacy --compute
$ sudo reboot

it ends up with this error see attached picture, when I reboot can’t log in anymore.