pywhispercpp: Cannot build pywhispercpp due to an error in the OpenMP condition/check in cmake
Following the wiki’s instructions, namely building from source with pip on a CUDA-enabled environment, I run into the error(s):
-- Found Git: /usr/bin/git (found version "2.34.1")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found OpenMP_C: -fopenmp (found version "4.5")
CMake Error at /tmp/pip-build-env-h39djzmn/overlay/local/lib/python3.10/dist-packages/cmake/data/share/cmake-3.31/Modules/FindOpenMP.cmake:644 (if):
if given arguments:
"CMAKE_C_COMPILER_ID" "STREQUAL" "Fujitsu" "OR" "STREQUAL" "IntelLLVM"
Unknown arguments specified
Call Stack (most recent call first):
whisper.cpp/ggml/src/CMakeLists.txt:154 (find_package)
-- Configuring incomplete, errors occurred!
This happens on both the main and the current release tag.
This is an Ubuntu 22.04LTS machine, with CUDA and the relevant developer-related packages installed. For sanity checks, I’ve also installed the OpenMP-related packages:
sudo apt install openmpi-bin openmpi-common libopenmpi-dev libomp-dev
To no avail.
Any pointers?
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 20 (9 by maintainers)
Understood, will install from source and report back.