-
I believe I managed to build OpenSYCL in library only mode targeting OpenMP with the commands: mkdir -p build
cd build
cmake -DWITH_CUDA_BACKEND=OFF \
-DWITH_ACCELERATED_CPU=OFF \
-DWITH_SSCP_COMPILER=OFF \
-DCMAKE_INSTALL_PREFIX=$(pwd)/install ../
make -j$(nproc --all) install Now I've compiled my binary using my regular toolchain, not syclcc (as I believe should be possible in library-only mode).
I tried linking my binary against Any tips on what might be going wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
If you want to see the compiler invocation with all the flags that it actually invokes, you can use The particular error you are getting is most likely because if the required macro to enable the OpenMP backend is not set, no kernel is actually generated, and then there's nothing that can be invoked at runtime. So tl;dr: |
Beta Was this translation helpful? Give feedback.
syclcc
should also be used in library-only mode. While it is in principle possible to compile SYCL code manually withoutsyclcc
in the library-only case,syclcc
adds a couple of flags to the compiler invocation that are not necessarily intuitive, or require knowledge of Open SYCL header internals:If you want to see the compiler invocation with all the flags that it actually invokes, you can use
--opensycl-dryrun
.The particular error you are getting is m…