-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing dependencies on installed config
- Loading branch information
1 parent
f33b08b
commit 3a2b7ce
Showing
2 changed files
with
55 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Copyright (C) The DDC development team, see COPYRIGHT.md file | ||
# | ||
# SPDX-License-Identifier: MIT | ||
|
||
# This file provides different macros that will configure the dependencies with required options. | ||
# They should be used only if DDC is responsible of handling the vendor dependency. | ||
|
||
macro(ddc_configure_benchmark) | ||
option(BENCHMARK_ENABLE_TESTING "Enable testing of the benchmark library." OFF) | ||
option(BENCHMARK_ENABLE_INSTALL "Enable installation of benchmark. (Projects embedding benchmark may want to turn this OFF.)" OFF) | ||
add_subdirectory(vendor/benchmark) | ||
endmacro() | ||
|
||
macro(ddc_configure_googletest) | ||
add_subdirectory(vendor/googletest) | ||
endmacro() | ||
|
||
macro(ddc_configure_kokkos) | ||
if("${Kokkos_ENABLE_CUDA}") | ||
option(Kokkos_ENABLE_CUDA_CONSTEXPR "Whether to activate experimental relaxed constexpr functions" ON) | ||
option(Kokkos_ENABLE_CUDA_RELOCATABLE_DEVICE_CODE "Whether to enable relocatable device code (RDC) for CUDA" ON) | ||
endif() | ||
if("${Kokkos_ENABLE_HIP}") | ||
option(Kokkos_ENABLE_HIP_RELOCATABLE_DEVICE_CODE "Whether to enable relocatable device code (RDC) for HIP" ON) | ||
endif() | ||
add_subdirectory(vendor/kokkos) | ||
endmacro() | ||
|
||
macro(ddc_configure_kokkos_fft) | ||
option(KokkosFFT_ENABLE_HOST_AND_DEVICE "Enable FFT on both host and device" ON) | ||
add_subdirectory(vendor/kokkos-fft) | ||
endmacro() | ||
|
||
macro(ddc_configure_kokkos_kernels) | ||
set(KokkosKernels_ENABLE_ALL_COMPONENTS OFF) | ||
set(KokkosKernels_ENABLE_COMPONENT_BLAS ON) | ||
set(KokkosKernels_ENABLE_COMPONENT_BATCHED ON) | ||
set(KokkosKernels_ENABLE_COMPONENT_LAPACK OFF) | ||
set(KokkosKernels_ENABLE_TPL_BLAS OFF) | ||
set(KokkosKernels_ENABLE_TPL_LAPACK OFF) | ||
add_subdirectory(vendor/kokkos-kernels) | ||
endmacro() |