-
Notifications
You must be signed in to change notification settings - Fork 794
Closed
Labels
bugSomething isn't workingSomething isn't workingcompilerCompiler related issueCompiler related issue
Description
Describe the bug
I am trying to configure buildbot with SYCL (for instance, CUDA runtime) and OpenMP (CPU-only, no offload). Tried with two options: --llvm-external-projects openmp and --cmake-opt=-DLLVM_ENABLE_RUNTIMES="openmp"
Using --llvm-external-projects openmp, this option only leads to OpenMP project being enabled.
CUDA_LIB_PATH=${CUDA_HOME} python3 $DPCPP_HOME/llvm/buildbot/configure.py
--shared-libs --cmake-gen "Unix Makefiles" -DCUDAToolkit_ROOT=${CUDA_HOME}
--native_cpu --cuda -t Release --llvm-external-projects openmpWith the above configure option, -- openmp project is enabled but leads to a warning and an error:
CMake Warning at CMakeLists.txt:204 (message):
Using LLVM_ENABLE_PROJECTS=openmp is deprecated now, and will become a
fatal error in the LLVM 21 release. Please use
-DLLVM_ENABLE_RUNTIMES=openmp or see the instructions at
https://openmp.llvm.org/ for building the runtimes.
CMake Error at cmake/modules/LLVMExternalProjectUtils.cmake:471 (add_custom_target):
add_custom_target cannot create target "check-openmp" because another
target with the same name already exists. The existing target is a custom
target created in source directory "/home/abagusetty/today/llvm/openmp".
See documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
runtimes/CMakeLists.txt:263 (llvm_ExternalProject_Add)
runtimes/CMakeLists.txt:557 (runtime_default_target)When I tried with `
CUDA_LIB_PATH=${CUDA_HOME} python3 $DPCPP_HOME/llvm/buildbot/configure.py
--shared-libs --cmake-gen "Unix Makefiles" -DCUDAToolkit_ROOT=${CUDA_HOME}
--native_cpu --cuda -t Release --cmake-opt=-DLLVM_ENABLE_RUNTIMES="openmp"Apparently, OpenMP project is not enabled via the above option
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcompilerCompiler related issueCompiler related issue