Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Wed, 3 Aug 2022 21:43:45 +0900
From: dskshnd@...il.com
To: john-users@...ts.openwall.com
Subject: Using OpenCL with Radeon RX 580

Please allow my poor English.

OS: Linux Mint 20.3 (Una) Cinnamon 64-bit
CPU: AMD Ryzen 9 3900
GPU: AMD Radeon RX 580
Driver: amdgpu-install_22.10.2.50102-1_all.deb
JtR version: 1.9.0-jumbo-1+bleeding-c80015001 2022-07-21 20:14:47 +0200 
[linux-gnu 64-bit x86_64 AVX2 AC]

I could run JtR using OpenCL with AMD Radeon 6600 XT. But I changed the 
graphics card into AMD Radeon RX 580. So I compiled JtR again. But JtR 
couldn't run using OpenCL.
The following is the instructions.

$ mkdir -p ~/src
$ sudo apt-get -y install git build-essential libssl-dev zlib1g-dev
$ sudo apt-get -y install yasm pkg-config libgmp-dev libpcap-dev libbz2-dev
$ sudo apt-get -y install ocl-icd-opencl-dev opencl-headers
$ export ATISTREAMSDKROOT=/opt/rocm
$ cd ~/src
$ git clone https://github.com/openwall/john -b bleeding-jumbo john
$ cd ~/src/john/src
$ ./configure --disable-openmp && make -s clean && make -sj4
$ mv ../run/john ../run/john-non-omp
$ /./configure LDFLAGS=-L/opt/rocm/lib CPPFLAGS='-I opencl 
-I/opt/rocm/include -DOMP_FALLBACK -DOMP_FALLBACK_BINARY="\"john-non-omp\""'
$ make -s clean && make -sj4
$ cd ~/src/john/run/
$ ./john --format=ZIP-opencl --test=0
Device 2: Ellesmere [Radeon RX 580 Series]
Testing: ZIP-opencl, WinZip [PBKDF2-SHA1 OpenCL]... FAILED (cmp_one(1))
$

So I've changed "export ATISTREAMSDKROOT=/opt/rocm" part and "$ 
./configure LDFLAGS=-L ..." part into the following.

$ export ATISTREAMSDKROOT
$ ./configure LDFLAGS=-L/usr/lib/x86_64-linux-gnu CPPFLAGS='-I opencl 
-I/usr/include/CL -DOMP_FALLBACK -DOMP_FALLBACK_BINARY="\"john-non-omp\""'

But the result hasn't changed.

$ ./john --format=ZIP-opencl --test=0
Device 2: Ellesmere [Radeon RX 580 Series]
Testing: ZIP-opencl, WinZip [PBKDF2-SHA1 OpenCL]... FAILED (cmp_one(1))
$

How should I do to resolve this problem?
Please help me.

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.