mirror of
https://git.gfz-potsdam.de/naaice/poet.git
synced 2025-12-16 12:54:50 +01:00
Merge branch 'ml/build' into 'main'
Update CMakeLists.txt to conditionally add the bench subdirectory based on the... See merge request naaice/poet!29
This commit is contained in:
commit
c8e2e55c7e
@ -32,7 +32,7 @@ build-poet: # This job runs in the build stage, which runs first.
|
|||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- mkdir -p build && cd build
|
- mkdir -p build && cd build
|
||||||
- cmake -DPOET_ENABLE_TESTING=ON ..
|
- cmake -DPOET_ENABLE_TESTING=ON -DPOET_PREPROCESS_BENCHS=OFF ..
|
||||||
- make -j$(nproc)
|
- make -j$(nproc)
|
||||||
cache:
|
cache:
|
||||||
key: build-$CI_COMMIT_BRANCH
|
key: build-$CI_COMMIT_BRANCH
|
||||||
|
|||||||
@ -20,7 +20,12 @@ find_package(MPI REQUIRED)
|
|||||||
find_package(RRuntime REQUIRED)
|
find_package(RRuntime REQUIRED)
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
add_subdirectory(bench)
|
|
||||||
|
option(POET_PREPROCESS_BENCHS "Preprocess benchmarks" ON)
|
||||||
|
|
||||||
|
if (POET_PREPROCESS_BENCHS)
|
||||||
|
add_subdirectory(bench)
|
||||||
|
endif()
|
||||||
|
|
||||||
# as tug will also pull in doctest as a dependency
|
# as tug will also pull in doctest as a dependency
|
||||||
set(TUG_ENABLE_TESTING OFF CACHE BOOL "" FORCE)
|
set(TUG_ENABLE_TESTING OFF CACHE BOOL "" FORCE)
|
||||||
|
|||||||
@ -73,6 +73,8 @@ following available options:
|
|||||||
- **POET_PHT_ADDITIONAL_INFO**=_boolean_ - enabling the count of accesses to one
|
- **POET_PHT_ADDITIONAL_INFO**=_boolean_ - enabling the count of accesses to one
|
||||||
PHT bucket. Use with caution, as things will get slowed down significantly.
|
PHT bucket. Use with caution, as things will get slowed down significantly.
|
||||||
Defaults to _OFF_.
|
Defaults to _OFF_.
|
||||||
|
- **POET_PREPROCESS_BENCHS**=*boolean* - enables the preprocessing of predefined
|
||||||
|
models/benchmarks. Defaults to *ON*.
|
||||||
|
|
||||||
### Example: Build from scratch
|
### Example: Build from scratch
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user