Skip to content

Commit 235ca12

Browse files
committed
Fix CMake format.
1 parent 5c79895 commit 235ca12

File tree

8 files changed

+88
-83
lines changed

8 files changed

+88
-83
lines changed

CMakeLists.txt

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ if (PLSSVM_ENABLE_STDPAR_BACKEND MATCHES "AUTO" OR PLSSVM_ENABLE_STDPAR_BACKEND)
420420
add_subdirectory(src/plssvm/backends/stdpar)
421421
endif ()
422422

423-
## check for HPX backend
423+
# check for HPX backend
424424
set(PLSSVM_ENABLE_HPX_BACKEND AUTO CACHE STRING "Enable HPX Backend")
425425
set_property(CACHE PLSSVM_ENABLE_HPX_BACKEND PROPERTY STRINGS AUTO ON OFF)
426426
if (PLSSVM_ENABLE_HPX_BACKEND MATCHES "AUTO" OR PLSSVM_ENABLE_HPX_BACKEND)
@@ -455,7 +455,7 @@ if (PLSSVM_ENABLE_SYCL_BACKEND MATCHES "AUTO" OR PLSSVM_ENABLE_SYCL_BACKEND)
455455
add_subdirectory(src/plssvm/backends/SYCL)
456456
endif ()
457457

458-
## check for Kokkos backend
458+
# check for Kokkos backend
459459
set(PLSSVM_ENABLE_KOKKOS_BACKEND AUTO CACHE STRING "Enable SYCL Backend")
460460
set_property(CACHE PLSSVM_ENABLE_KOKKOS_BACKEND PROPERTY STRINGS AUTO ON OFF)
461461
if (PLSSVM_ENABLE_KOKKOS_BACKEND MATCHES "AUTO" OR PLSSVM_ENABLE_KOKKOS_BACKEND)
@@ -691,7 +691,7 @@ list(POP_BACK CMAKE_MESSAGE_INDENT)
691691
option(PLSSVM_ENABLE_FORMATTING "Enable a formatting targets using clang-format." OFF)
692692
if (PLSSVM_ENABLE_FORMATTING)
693693
list(APPEND CMAKE_MESSAGE_INDENT "Formatting: ")
694-
694+
695695
# install library to add a clang-format target
696696
set(PLSSVM_format_VERSION d22c36043bea6ef85f3eb68b823f50703bd1cc21)
697697
find_package(format QUIET)
@@ -813,7 +813,8 @@ string(REPLACE ";" "|" PLSSVM_PLATFORM_NAME_LIST "${PLSSVM_PLATFORM_NAME_LIST}")
813813
string(REPLACE ";" "|" PLSSVM_BACKEND_NAME_LIST "${PLSSVM_BACKEND_NAME_LIST}")
814814
if (TARGET ${PLSSVM_SYCL_BACKEND_LIBRARY_NAME})
815815
string(REPLACE ";" "|" PLSSVM_SYCL_BACKEND_NAME_LIST "${PLSSVM_SYCL_BACKEND_NAME_LIST}")
816-
set(PLSSVM_SYCL_IMPLEMENTATION_TYPE_MANPAGE_ENTRY "
816+
set(PLSSVM_SYCL_IMPLEMENTATION_TYPE_MANPAGE_ENTRY
817+
"
817818
.TP
818819
.B --sycl_implementation_type
819820
choose the SYCL implementation to be used in the SYCL backend: ${PLSSVM_SYCL_BACKEND_NAME_LIST} (default: automatic)
@@ -828,16 +829,18 @@ choose the kernel invocation type when using SYCL as backend: automatic|nd_range
828829
)
829830
endif ()
830831
set(PLSSVM_SYCL_MANPAGE_ENTRY "${PLSSVM_SYCL_KERNEL_INVOCATION_TYPE_MANPAGE_ENTRY}${PLSSVM_SYCL_IMPLEMENTATION_TYPE_MANPAGE_ENTRY}")
831-
## assemble the Kokkos manpage entry
832+
# assemble the Kokkos manpage entry
832833
if (TARGET ${PLSSVM_KOKKOS_BACKEND_LIBRARY_NAME})
833834
string(REPLACE ";" "|" PLSSVM_KOKKOS_BACKEND_AVAILABLE_EXECUTION_SPACES "${PLSSVM_KOKKOS_BACKEND_AVAILABLE_EXECUTION_SPACES}")
834-
set(PLSSVM_KOKKOS_MANPAGE_ENTRY "
835+
set(PLSSVM_KOKKOS_MANPAGE_ENTRY
836+
"
835837
.TP
836838
.B --kokkos_execution_space
837839
choose the Kokkos execution space to be used in the Kokkos backend: automatic|${PLSSVM_KOKKOS_BACKEND_AVAILABLE_EXECUTION_SPACES} (default: automatic)
838-
")
840+
"
841+
)
839842
endif ()
840-
## assemble the performance tracker manpage entry
843+
# assemble the performance tracker manpage entry
841844
if (PLSSVM_ENABLE_PERFORMANCE_TRACKING)
842845
set(PLSSVM_PERFORMANCE_TRACKER_MANPAGE_ENTRY
843846
"
@@ -848,12 +851,8 @@ choose the output YAML file where the performance tracking entries should be sto
848851
)
849852
endif ()
850853

851-
## configure the manpage files
852-
configure_file(
853-
${CMAKE_CURRENT_SOURCE_DIR}/docs/plssvm-train.1.in
854-
${CMAKE_CURRENT_SOURCE_DIR}/docs/plssvm-train.1
855-
@ONLY
856-
)
854+
# configure the manpage files
855+
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/docs/plssvm-train.1.in ${CMAKE_CURRENT_SOURCE_DIR}/docs/plssvm-train.1 @ONLY)
857856
# update manpage entry since plssvm-predict can't recognize the SYCL kernel invocation type
858857
set(PLSSVM_SYCL_MANPAGE_ENTRY "${PLSSVM_SYCL_IMPLEMENTATION_TYPE_MANPAGE_ENTRY}")
859858
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/docs/plssvm-predict.1.in ${CMAKE_CURRENT_SOURCE_DIR}/docs/plssvm-predict.1 @ONLY)
@@ -909,18 +908,18 @@ install(
909908
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/plssvm/cmake
910909
)
911910

912-
## create file containing the build configuration and version information
913-
install(FILES
914-
"${PROJECT_BINARY_DIR}/plssvmConfig.cmake"
915-
"${PROJECT_BINARY_DIR}/plssvmConfigVersion.cmake"
916-
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/plssvm/plssvmCUDATargets.cmake"
917-
"${PROJECT_BINARY_DIR}/plssvmHIPTargets.cmake"
918-
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/plssvm/plssvmOpenCLTargets.cmake"
919-
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/plssvm/plssvmOpenMPTargets.cmake"
920-
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/plssvm/plssvmHPXTargets.cmake"
921-
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/plssvm/plssvmAdaptiveCppTargets.cmake"
922-
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/plssvm/plssvmDPCPPTargets.cmake"
923-
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/plssvm/plssvmKokkosTargets.cmake"
924-
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/plssvm/plssvmstdparTargets.cmake"
925-
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/plssvm/cmake
911+
# create file containing the build configuration and version information
912+
install(
913+
FILES "${PROJECT_BINARY_DIR}/plssvmConfig.cmake"
914+
"${PROJECT_BINARY_DIR}/plssvmConfigVersion.cmake"
915+
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/plssvm/plssvmCUDATargets.cmake"
916+
"${PROJECT_BINARY_DIR}/plssvmHIPTargets.cmake"
917+
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/plssvm/plssvmOpenCLTargets.cmake"
918+
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/plssvm/plssvmOpenMPTargets.cmake"
919+
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/plssvm/plssvmHPXTargets.cmake"
920+
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/plssvm/plssvmAdaptiveCppTargets.cmake"
921+
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/plssvm/plssvmDPCPPTargets.cmake"
922+
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/plssvm/plssvmKokkosTargets.cmake"
923+
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/plssvm/plssvmstdparTargets.cmake"
924+
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/plssvm/cmake
926925
)

cmake/plssvm/plssvmHPXTargets.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
## Authors: Alexander Van Craen, Marcel Breyer, Alexander Strack
2-
## Copyright (C): 2018-today The PLSSVM project - All Rights Reserved
3-
## License: This file is part of the PLSSVM project which is released under the MIT license.
4-
## See the LICENSE.md file in the project root for full license information.
1+
# Authors: Alexander Van Craen, Marcel Breyer, Alexander Strack
2+
# Copyright (C): 2018-today The PLSSVM project - All Rights Reserved
3+
# License: This file is part of the PLSSVM project which is released under the MIT license.
4+
# See the LICENSE.md file in the project root for full license information.
55
########################################################################################################################
66

77
include(CMakeFindDependencyMacro)

cmake/plssvm/plssvmKokkosTargets.cmake

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
## Authors: Alexander Van Craen, Marcel Breyer
2-
## Copyright (C): 2018-today The PLSSVM project - All Rights Reserved
3-
## License: This file is part of the PLSSVM project which is released under the MIT license.
4-
## See the LICENSE.md file in the project root for full license information.
1+
# Authors: Alexander Van Craen, Marcel Breyer
2+
# Copyright (C): 2018-today The PLSSVM project - All Rights Reserved
3+
# License: This file is part of the PLSSVM project which is released under the MIT license.
4+
# See the LICENSE.md file in the project root for full license information.
55
########################################################################################################################
66

77
include(CMakeFindDependencyMacro)
@@ -18,4 +18,4 @@ if (TARGET plssvm::plssvm-Kokkos)
1818
else ()
1919
# set COMPONENT to be NOT found
2020
set(plssvm_Kokkos_FOUND OFF)
21-
endif ()
21+
endif ()

src/plssvm/backends/HPX/CMakeLists.txt

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
## Authors: Alexander Van Craen, Marcel Breyer, Alexander Strack
2-
## Copyright (C): 2018-today The PLSSVM project - All Rights Reserved
3-
## License: This file is part of the PLSSVM project which is released under the MIT license.
4-
## See the LICENSE.md file in the project root for full license information.
1+
# Authors: Alexander Van Craen, Marcel Breyer, Alexander Strack
2+
# Copyright (C): 2018-today The PLSSVM project - All Rights Reserved
3+
# License: This file is part of the PLSSVM project which is released under the MIT license.
4+
# See the LICENSE.md file in the project root for full license information.
55
########################################################################################################################
66

77
list(APPEND CMAKE_MESSAGE_INDENT "HPX: ")
@@ -31,11 +31,7 @@ endif ()
3131
message(CHECK_PASS "found ")
3232

3333
# explicitly set sources
34-
set(PLSSVM_HPX_SOURCES
35-
${CMAKE_CURRENT_LIST_DIR}/detail/utility.cpp
36-
${CMAKE_CURRENT_LIST_DIR}/csvm.cpp
37-
${CMAKE_CURRENT_LIST_DIR}/exceptions.cpp
38-
)
34+
set(PLSSVM_HPX_SOURCES ${CMAKE_CURRENT_LIST_DIR}/detail/utility.cpp ${CMAKE_CURRENT_LIST_DIR}/csvm.cpp ${CMAKE_CURRENT_LIST_DIR}/exceptions.cpp)
3935

4036
# set target properties
4137
set_local_and_parent(PLSSVM_HPX_BACKEND_LIBRARY_NAME plssvm-HPX)

src/plssvm/backends/Kokkos/CMakeLists.txt

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
## Authors: Alexander Van Craen, Marcel Breyer
2-
## Copyright (C): 2018-today The PLSSVM project - All Rights Reserved
3-
## License: This file is part of the PLSSVM project which is released under the MIT license.
4-
## See the LICENSE.md file in the project root for full license information.
1+
# Authors: Alexander Van Craen, Marcel Breyer
2+
# Copyright (C): 2018-today The PLSSVM project - All Rights Reserved
3+
# License: This file is part of the PLSSVM project which is released under the MIT license.
4+
# See the LICENSE.md file in the project root for full license information.
55
########################################################################################################################
66

77
list(APPEND CMAKE_MESSAGE_INDENT "Kokkos: ")
@@ -40,7 +40,7 @@ if (Kokkos_ENABLE_SYCL)
4040
if (NOT ${CMAKE_CXX_COMPILER_ID} MATCHES "IntelLLVM")
4141
message(FATAL_ERROR "For Kokkos::SYCL to work, the compiler must be IntelLLVM, but is ${CMAKE_CXX_COMPILER}!")
4242
endif ()
43-
43+
4444
# set icpx specific compiler flags based on the provided PLSSVM_TARGET_PLATFORMS
4545
set(PLSSVM_KOKKOS_SYCL_FSYCL_TARGETS "")
4646
# cpu targets
@@ -73,34 +73,38 @@ if (Kokkos_ENABLE_SYCL)
7373
list(JOIN PLSSVM_KOKKOS_SYCL_FSYCL_TARGETS "," PLSSVM_KOKKOS_SYCL_FSYCL_TARGETS_STRING)
7474
target_compile_options(${PLSSVM_KOKKOS_BACKEND_LIBRARY_NAME} PRIVATE -sycl-std=2020 -fsycl -fsycl-targets=${PLSSVM_KOKKOS_SYCL_FSYCL_TARGETS_STRING})
7575
target_link_options(${PLSSVM_KOKKOS_BACKEND_LIBRARY_NAME} PRIVATE -fsycl -fsycl-targets=${PLSSVM_KOKKOS_SYCL_FSYCL_TARGETS_STRING})
76-
76+
7777
# add option for IntelLLVM Ahead-of-Time (AOT) compilation
7878
option(PLSSVM_KOKKOS_BACKEND_INTEL_LLVM_ENABLE_AOT "Enables Ahead-of-Time compilation for the Kokkos::SYCL execution space using IntelLLVM." ON)
7979
if (PLSSVM_KOKKOS_BACKEND_INTEL_LLVM_ENABLE_AOT)
8080
message(STATUS "Enabled Ahead-of-Time (AOT) compilation for the Kokkos::SYCL execution space using IntelLLVM.")
8181
target_compile_definitions(${PLSSVM_BASE_LIBRARY_NAME} PRIVATE PLSSVM_KOKKOS_BACKEND_INTEL_LLVM_ENABLE_AOT)
8282
target_compile_definitions(${PLSSVM_KOKKOS_BACKEND_LIBRARY_NAME} PUBLIC PLSSVM_KOKKOS_BACKEND_INTEL_LLVM_ENABLE_AOT)
83-
## set AOT compiler flags
84-
# cpu targets
83+
# set AOT compiler flags
8584
if (DEFINED PLSSVM_CPU_TARGET_ARCHS)
86-
# add target specific flags for AOT
85+
# add CPU target specific flags for AOT
8786
if (PLSSVM_NUM_CPU_TARGET_ARCHS EQUAL 1)
8887
target_compile_options(${PLSSVM_KOKKOS_BACKEND_LIBRARY_NAME} PRIVATE -Xsycl-target-backend=spir64_x86_64 "-march=${PLSSVM_CPU_TARGET_ARCHS}")
8988
target_link_options(${PLSSVM_KOKKOS_BACKEND_LIBRARY_NAME} PRIVATE -Xsycl-target-backend=spir64_x86_64 "-march=${PLSSVM_CPU_TARGET_ARCHS}")
9089
endif ()
9190
endif ()
92-
# nvidia targets
9391
if (DEFINED PLSSVM_NVIDIA_TARGET_ARCHS)
94-
# add target specific flags for AOT
92+
# add NVIDIA GPU target specific flags for AOT
9593
if (NOT PLSSVM_NUM_NVIDIA_TARGET_ARCHS EQUAL 1)
96-
message(SEND_ERROR "IntelLLVM currently only supports a single NVIDIA architecture specification for AOT but ${PLSSVM_NUM_NVIDIA_TARGET_ARCHS} were provided!")
94+
message(
95+
SEND_ERROR
96+
"IntelLLVM currently only supports a single NVIDIA architecture specification for AOT but ${PLSSVM_NUM_NVIDIA_TARGET_ARCHS} were provided!"
97+
)
9798
endif ()
98-
target_compile_options(${PLSSVM_KOKKOS_BACKEND_LIBRARY_NAME} PRIVATE -Xsycl-target-backend=nvptx64-nvidia-cuda --offload-arch=${PLSSVM_NVIDIA_TARGET_ARCHS})
99-
target_link_options(${PLSSVM_KOKKOS_BACKEND_LIBRARY_NAME} PRIVATE -Xsycl-target-backend=nvptx64-nvidia-cuda --offload-arch=${PLSSVM_NVIDIA_TARGET_ARCHS})
99+
target_compile_options(
100+
${PLSSVM_KOKKOS_BACKEND_LIBRARY_NAME} PRIVATE -Xsycl-target-backend=nvptx64-nvidia-cuda --offload-arch=${PLSSVM_NVIDIA_TARGET_ARCHS}
101+
)
102+
target_link_options(
103+
${PLSSVM_KOKKOS_BACKEND_LIBRARY_NAME} PRIVATE -Xsycl-target-backend=nvptx64-nvidia-cuda --offload-arch=${PLSSVM_NVIDIA_TARGET_ARCHS}
104+
)
100105
endif ()
101-
# intel targets
102106
if (DEFINED PLSSVM_INTEL_TARGET_ARCHS)
103-
# add target specific flags for AOT
107+
# add Intel GPU target specific flags for AOT
104108
list(JOIN PLSSVM_INTEL_TARGET_ARCHS "," PLSSVM_INTEL_TARGET_ARCHS_STRING)
105109
target_compile_options(${PLSSVM_KOKKOS_BACKEND_LIBRARY_NAME} PRIVATE -Xsycl-target-backend=spir64_gen "-device ${PLSSVM_INTEL_TARGET_ARCHS_STRING}")
106110
target_link_options(${PLSSVM_KOKKOS_BACKEND_LIBRARY_NAME} PRIVATE -Xsycl-target-backend=spir64_gen "-device ${PLSSVM_INTEL_TARGET_ARCHS_STRING}")
@@ -121,9 +125,11 @@ target_link_libraries(${PLSSVM_ALL_LIBRARY_NAME} INTERFACE ${PLSSVM_KOKKOS_BACKE
121125
# mark backend library as install target
122126
append_local_and_parent(PLSSVM_TARGETS_TO_INSTALL ${PLSSVM_KOKKOS_BACKEND_LIBRARY_NAME})
123127

128+
# ~~~
124129
# assemble Kokkos available execution space string
125130
# also set compile definitions -> can't use KOKKOS_ENABLE_* directly inside the "constexpr_available_execution_space.hpp"
126131
# header since we can't include "Kokkos_Core.hpp" there (transitively used in the base library that doesn't know anything about Kokkos
132+
# ~~~
127133
set(PLSSVM_KOKKOS_BACKEND_AVAILABLE_EXECUTION_SPACES "")
128134
if (Kokkos_ENABLE_CUDA)
129135
target_compile_definitions(${PLSSVM_BASE_LIBRARY_NAME} PUBLIC PLSSVM_KOKKOS_BACKEND_ENABLE_CUDA)
@@ -163,10 +169,14 @@ if (Kokkos_ENABLE_SERIAL)
163169
endif ()
164170
set(PLSSVM_KOKKOS_BACKEND_AVAILABLE_EXECUTION_SPACES "${PLSSVM_KOKKOS_BACKEND_AVAILABLE_EXECUTION_SPACES}" PARENT_SCOPE)
165171

172+
# ~~~
166173
# also set the number of available Kokkos execution spaces to explicitly set the type of the used std::array
167174
# -> necessary if NO Kokkos execution space is available and, therefore, the size of the std::array would be 0 (can't automatically be deduced)
175+
# ~~~
168176
list(LENGTH PLSSVM_KOKKOS_BACKEND_AVAILABLE_EXECUTION_SPACES PLSSVM_KOKKOS_BACKEND_NUM_AVAILABLE_EXECUTION_SPACES)
169-
target_compile_definitions(${PLSSVM_BASE_LIBRARY_NAME} PUBLIC PLSSVM_KOKKOS_BACKEND_NUM_AVAILABLE_EXECUTION_SPACES=${PLSSVM_KOKKOS_BACKEND_NUM_AVAILABLE_EXECUTION_SPACES})
177+
target_compile_definitions(
178+
${PLSSVM_BASE_LIBRARY_NAME} PUBLIC PLSSVM_KOKKOS_BACKEND_NUM_AVAILABLE_EXECUTION_SPACES=${PLSSVM_KOKKOS_BACKEND_NUM_AVAILABLE_EXECUTION_SPACES}
179+
)
170180

171181
# generate summary string
172182
set(PLSSVM_KOKKOS_BACKEND_SUMMARY_STRING_COMPILER " - Kokkos (${PLSSVM_KOKKOS_BACKEND_AVAILABLE_EXECUTION_SPACES}):")
@@ -179,4 +189,4 @@ string(REPLACE " (${PLSSVM_AMD_TARGET_ARCHS})" "" PLSSVM_KOKKOS_BACKEND_SUMMARY_
179189
string(REPLACE " (${PLSSVM_INTEL_TARGET_ARCHS})" "" PLSSVM_KOKKOS_BACKEND_SUMMARY_STRING_ARCHS "${PLSSVM_KOKKOS_BACKEND_SUMMARY_STRING_ARCHS}")
180190
set(PLSSVM_KOKKOS_BACKEND_SUMMARY_STRING "${PLSSVM_KOKKOS_BACKEND_SUMMARY_STRING_COMPILER}${PLSSVM_KOKKOS_BACKEND_SUMMARY_STRING_ARCHS}" PARENT_SCOPE)
181191

182-
list(POP_BACK CMAKE_MESSAGE_INDENT)
192+
list(POP_BACK CMAKE_MESSAGE_INDENT)

src/plssvm/backends/SYCL/DPCPP/CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,12 @@ if (PLSSVM_SYCL_BACKEND_CHECK_FOR_DPCPP_COMPILER)
139139
"DPC++ currently only supports a single NVIDIA architecture specification for AOT but ${PLSSVM_NUM_NVIDIA_TARGET_ARCHS} were provided!"
140140
)
141141
endif ()
142-
target_compile_options(${PLSSVM_SYCL_BACKEND_DPCPP_LIBRARY_NAME} PRIVATE -Xsycl-target-backend=nvptx64-nvidia-cuda --offload-arch=${PLSSVM_NVIDIA_TARGET_ARCHS})
143-
target_link_options(${PLSSVM_SYCL_BACKEND_DPCPP_LIBRARY_NAME} PRIVATE -Xsycl-target-backend=nvptx64-nvidia-cuda --offload-arch=${PLSSVM_NVIDIA_TARGET_ARCHS})
142+
target_compile_options(
143+
${PLSSVM_SYCL_BACKEND_DPCPP_LIBRARY_NAME} PRIVATE -Xsycl-target-backend=nvptx64-nvidia-cuda --offload-arch=${PLSSVM_NVIDIA_TARGET_ARCHS}
144+
)
145+
target_link_options(
146+
${PLSSVM_SYCL_BACKEND_DPCPP_LIBRARY_NAME} PRIVATE -Xsycl-target-backend=nvptx64-nvidia-cuda --offload-arch=${PLSSVM_NVIDIA_TARGET_ARCHS}
147+
)
144148
endif ()
145149
# intel targets
146150
if (DEFINED PLSSVM_INTEL_TARGET_ARCHS)

tests/backends/HPX/CMakeLists.txt

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
1-
## Authors: Alexander Van Craen, Marcel Breyer, Alexander Strack
2-
## Copyright (C): 2018-today The PLSSVM project - All Rights Reserved
3-
## License: This file is part of the PLSSVM project which is released under the MIT license.
4-
## See the LICENSE.md file in the project root for full license information.
1+
# Authors: Alexander Van Craen, Marcel Breyer, Alexander Strack
2+
# Copyright (C): 2018-today The PLSSVM project - All Rights Reserved
3+
# License: This file is part of the PLSSVM project which is released under the MIT license.
4+
# See the LICENSE.md file in the project root for full license information.
55
########################################################################################################################
66

77
find_package(HPX 1.9.0 REQUIRED)
88

9-
## create HPX tests
9+
# create HPX tests
1010
set(PLSSVM_HPX_TEST_NAME HPX_tests)
1111

1212
# list all necessary sources
13-
set(PLSSVM_HPX_TEST_SOURCES
14-
${CMAKE_CURRENT_LIST_DIR}/detail/utility.cpp
15-
${CMAKE_CURRENT_LIST_DIR}/exceptions.cpp
16-
${CMAKE_CURRENT_LIST_DIR}/hpx_csvm.cpp
17-
)
13+
set(PLSSVM_HPX_TEST_SOURCES ${CMAKE_CURRENT_LIST_DIR}/detail/utility.cpp ${CMAKE_CURRENT_LIST_DIR}/exceptions.cpp ${CMAKE_CURRENT_LIST_DIR}/hpx_csvm.cpp)
1814

1915
# add test executable
2016
add_executable(${PLSSVM_HPX_TEST_NAME} ${CMAKE_CURRENT_LIST_DIR}/../../hpx_main.cpp ${PLSSVM_HPX_TEST_SOURCES})

tests/backends/Kokkos/CMakeLists.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
## Authors: Alexander Van Craen, Marcel Breyer
2-
## Copyright (C): 2018-today The PLSSVM project - All Rights Reserved
3-
## License: This file is part of the PLSSVM project which is released under the MIT license.
4-
## See the LICENSE.md file in the project root for full license information.
1+
# Authors: Alexander Van Craen, Marcel Breyer
2+
# Copyright (C): 2018-today The PLSSVM project - All Rights Reserved
3+
# License: This file is part of the PLSSVM project which is released under the MIT license.
4+
# See the LICENSE.md file in the project root for full license information.
55
########################################################################################################################
66

7-
## create Kokkos tests
7+
# create Kokkos tests
88
set(PLSSVM_KOKKOS_TEST_NAME Kokkos_tests)
99

1010
# list all necessary sources
@@ -30,7 +30,7 @@ add_executable(${PLSSVM_KOKKOS_TEST_NAME} ${CMAKE_CURRENT_LIST_DIR}/../../main.c
3030
if (Kokkos_ENABLE_CUDA)
3131
# fix template limit when using Kokkos::Cuda
3232
target_compile_options(${PLSSVM_KOKKOS_TEST_NAME} PRIVATE -Xcudafe --pending_instantiations=0)
33-
33+
3434
# tests won't compile with nvcc
3535
if (NOT PLSSVM_TEST_WITH_REDUCED_LABEL_TYPES)
3636
message(FATAL_ERROR "Due to template instantiation limits within nvcc, only reduced label type tests are currently supported!")
@@ -51,4 +51,4 @@ discover_tests_with_death_test_filter(${PLSSVM_KOKKOS_TEST_NAME})
5151
# add test as coverage dependency
5252
if (TARGET coverage)
5353
add_dependencies(coverage ${PLSSVM_KOKKOS_TEST_NAME})
54-
endif ()
54+
endif ()

0 commit comments

Comments
 (0)