An oneAPI Construction Kit issue.
Got below error when following the guide to create new hal.
ubuntu@VM-0-15-ubuntu:~/projects/refsi_tutorial_part1/build$ REFSI_DEBUG=cmp bin/hello
[CMP] Starting.
terminate called after throwing an instance of 'std::system_error'
what(): Enable multithreading to use std::thread: Operation not permitted
Aborted (core dumped)
how to reproduce:
- compile LLVM (the version I use is llvm-project_18.1.6)
- compile latest main branch of OCK with below command:
$ cmake -GNinja \
-Bbuild-riscv \
-DCA_RISCV_ENABLED=ON \
-DCA_MUX_TARGETS_TO_ENABLE="riscv" \
-DCA_LLVM_INSTALL_DIR=$LLVMInstall \
-DCA_ENABLE_HOST_IMAGE_SUPPORT=OFF \
-DCA_CL_ENABLE_ICD_LOADER=ON \
-DCA_ENABLE_LLVM_OPTIONS_IN_RELEASE=ON \
-DLLVM_CCACHE_BUILD=ON \
-DCMAKE_INSTALL_PREFIX=$PWD/build-riscv/install
$ ninja -C build-riscv install
- copy related files to refsi_tutorial_part1 dir and apply all the patches here, then compile with below command:
$ cd path/to/refsi_tutorial_part1
$ mkdir build
$ cd build
$ cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCLIK_HAL_NAME=refsi_tutorial -DCLIK_EXTERNAL_HAL_DIR=$PWD/../hal_refsi_tutorial $OCK/clik
$ ninja hal_refsi_tutorial clik_runtime_sync clik_runtime_async
$ ninja ClikExamples
Has anyone seen this error before?