Skip to content

Commit 12d4f80

Browse files
committed
Disallow DPC++ with CMake build type Debug due to a compiler bug (intel/llvm#5754).
1 parent 06cd4e0 commit 12d4f80

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.jenkins/Jenkinsfile-tests

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ pipeline {
198198
}
199199
}
200200
}
201+
/*
201202
stage('build plssvm DPC++ Debug') {
202203
steps {
203204
dir('plssvm') {
@@ -214,6 +215,7 @@ pipeline {
214215
}
215216
}
216217
}
218+
*/
217219
post {
218220
always {
219221
// Process the CTest xml output with the xUnit plugin

src/plssvm/backends/SYCL/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ if("${PLSSVM_SYCL_BACKEND_COMPILER}" STREQUAL "hipSYCL")
7575
message(STATUS "Ignoring specified Intel architectures \"${PLSSVM_INTEL_TARGET_ARCHS}\" in favor of SPIR-V when using hipSYCL!")
7676
endif()
7777
elseif("${PLSSVM_SYCL_BACKEND_COMPILER}" STREQUAL "DPC++")
78+
# TODO: remove if DPC++ bug is fixed
79+
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
80+
message(FATAL_ERROR "The SYCL backend when using DPC++ currently does not support the Debug build type. For more information see: https://github.com/intel/llvm/issues/5754")
81+
endif()
82+
7883
# enable DPC++ SYCL support
7984
target_compile_options(${PLSSVM_SYCL_BACKEND_LIBRARY_NAME} PRIVATE -sycl-std=2020 -fsycl)
8085
target_link_options(${PLSSVM_SYCL_BACKEND_LIBRARY_NAME} PRIVATE -fsycl)

0 commit comments

Comments
 (0)