Vast.ai - Using GPU and CPU at same time!
#6
(05-11-2023, 04:31 AM)rodrigo.Brasil Wrote: Show the magic command that will make it works! 

Tested in WSL2 with 20.04 Focal Fossa.
First, remove previous old POCL 1.4 OCD

Code:
sudo apt remove pocl-opencl-icd

Then, install necessary dependencies and packages. Set LLVM to version 12 (latest available in apt search)

Code:
export LLVM_VERSION=12
sudo apt-get install -y python3-dev libpython3-dev build-essential ocl-icd-libopencl1 \
    cmake git pkg-config libclang-${LLVM_VERSION}-dev clang \
    llvm-${LLVM_VERSION} make ninja-build ocl-icd-libopencl1 ocl-icd-dev \
    ocl-icd-opencl-dev libhwloc-dev zlib1g zlib1g-dev clinfo dialog apt-utils \
    libxml2-dev libclang-cpp${LLVM_VERSION}-dev libclang-cpp${LLVM_VERSION} \
    llvm-${LLVM_VERSION}-dev \
    clang-12 git

Clone the POCL from github

Code:
cd ~
git clone https://github.com/pocl/pocl/

Ready to build cmake

Code:
cd ~/pocl
mkdir build && cd build
cmake ..
make
sudo make install

Copy over  ICD to /etc/OpenCL/vendors
Code:
sudo cp /usr/local/etc/OpenCL/vendors/pocl.icd /etc/OpenCL/vendors/pocl.icd

See the result
Code:
clinfo


Example:
Code:
CUDA API (CUDA 12.2)
====================
* Device #1: NVIDIA GeForce GTX 1660 SUPER, 5148/6143 MB, 22MCU

OpenCL API (OpenCL 3.0 PoCL 4.1-pre main-0-ga3e43d58  Linux, Debug+Asserts, RELOC, SPIR, LLVM 12.0.0, SLEEF, POCL_DEBUG) - Platform #1 [The pocl project]
=========================================================================================================================================================
* Device #2: cpu-Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 5046/10156 MB (2048 MB allocatable), 8MCU

Benchmark relevant options:
===========================
* --optimized-kernel-enable

-------------------------------------------------------------
* Hash-Mode 22000 (WPA-PBKDF2-PMKID+EAPOL) [Iterations: 4095]
-------------------------------------------------------------

Speed.#1.........:  228.4 kH/s (96.15ms) @ Accel:16 Loops:1024 Thr:256 Vec:1
Speed.#2.........:    8050 H/s (76.09ms) @ Accel:1024 Loops:512 Thr:1 Vec:8
Speed.#*.........:  236.5 kH/s

Started: Wed Jun 21 17:27:38 2023
Stopped: Wed Jun 21 17:28:25 2023

Reference:
1. https://github.com/pocl/pocl/
2. https://hashcat.net/forum/thread-9601.ht...tel+opencl
Many thanks to @chuckity . Couldn't have get pocl to work if he didn't pointed out to copy over the ICD file.
Reply


Messages In This Thread
RE: Vast.ai - Using GPU and CPU at same time! - by Gyfer - 06-21-2023, 11:51 AM