webmaster128

OpenCL compilation hangs forever

Discussion created by webmaster128 on Dec 17, 2018
Latest reply on Jan 20, 2019 by webmaster128

Hi all,

 

I am trying to compile this project for an AMD GPU: GitHub - webmaster128/lisk-vanity: A tool to generate short Lisk addresses with GPU support

 

The c.l files are in lisk-vanity/src/opencl at master · webmaster128/lisk-vanity · GitHub  which are concatenated as follows:

lisk-vanity/gpu.rs at 9515c00c01adbc1eb8c68d3b2acf245b99c675ca · webmaster128/lisk-vanity · GitHub

 

Unfortuntly the compilation never terminates.

 

- It works fine for NVIDIA GPU and Apple/Intel CPU
- It shows proper erros when there are syntax errors
- It compiles when I comment out enough code. Which code does not matter.

 

This is how to reproduce on Ubuntu:

 

# Install rust
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly
source $HOME/.cargo/env

git clone https://github.com/webmaster128/lisk-vanity && cd lisk-vanity

export RUSTFLAGS='-L /opt/rocm/opencl/lib/x86_64/'
cargo build
./target/debug/lisk-vanity --gpu --threads 0

 

System/Driver is AMD-ROCm1.9.224+TensorFlow1.10 Ubuntu16.04 x64

Outcomes