Skip to content

Commit 5723e14

Browse files
authored
Merge branch 'master' into an/convert_scripts
2 parents 6b3fa6d + df56014 commit 5723e14

File tree

12 files changed

+78
-12
lines changed

12 files changed

+78
-12
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -714,8 +714,11 @@ jobs:
714714
with:
715715
mpi: msmpi
716716
- name: Download dependencies
717-
run: |
718-
choco install openssl --execution-timeout 6000
717+
uses: nick-fields/retry@v3
718+
with:
719+
timeout_minutes: 60
720+
max_attempts: 3
721+
command: choco install openssl --execution-timeout 3600
719722
- name: Setup ccache
720723
uses: Chocobo1/setup-ccache-action@v1
721724
with:
@@ -772,8 +775,11 @@ jobs:
772775
with:
773776
mpi: msmpi
774777
- name: Download dependencies
775-
run: |
776-
choco install openssl --execution-timeout 6000
778+
uses: nick-fields/retry@v3
779+
with:
780+
timeout_minutes: 60
781+
max_attempts: 3
782+
command: choco install openssl --execution-timeout 3600
777783
- name: Setup ccache
778784
uses: Chocobo1/setup-ccache-action@v1
779785
with:

.github/workflows/nightly.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Nightly routine
33
on:
44
schedule:
55
- cron: '0 0 * * *'
6+
workflow_dispatch:
67

78
permissions:
89
issues: write
@@ -17,7 +18,7 @@ jobs:
1718
stale-pr-message: 'This pull request is stale for 2 weeks and is going to be closed'
1819
days-before-pr-stale: 14
1920
days-before-issue-stale: -1
20-
days-before-pr-close: 14
21+
days-before-pr-close: 0
2122
days-before-issue-close: -1
2223
stale-pr-label: 'stale'
2324
operations-per-run: 100

.github/workflows/pages.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,17 @@ jobs:
5151
- name: Install dependencies
5252
run: |
5353
python3 -m pip install -r requirements.txt
54-
- name: Build scoreboard
54+
- name: CMake configure
5555
run: |
56-
python3 scoreboard/main.py
56+
cmake -S . -B build -DUSE_SCOREBOARD=ON
57+
- name: CMake build
58+
run: |
59+
cmake --build build --parallel
5760
- name: Upload artifact
5861
uses: actions/upload-artifact@v4
5962
with:
6063
name: scoreboard
61-
path: ./scoreboard/
64+
path: ./build/scoreboard/html/
6265
deploy-pages:
6366
if: github.ref == 'refs/heads/master'
6467
needs:

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ message( STATUS "PPC step: Setup external projects" )
2424
include(cmake/opencv.cmake)
2525
include(cmake/gtest.cmake)
2626

27+
############################ Scoreboard #############################
28+
29+
message( STATUS "PPC step: Setup scoreboard generator" )
30+
include(cmake/scoreboard.cmake)
31+
add_subdirectory(scoreboard)
32+
2733
############################## Headers ##############################
2834

2935
message( STATUS "PPC step: Setup headers" )

cmake/boost.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# Build Core Boost components
2+
3+
if(NOT USE_SEQ AND NOT USE_MPI AND NOT USE_OMP AND NOT USE_TBB AND NOT USE_STL)
4+
return()
5+
endif()
6+
27
SUBDIRLIST(subdirs ${CMAKE_SOURCE_DIR}/3rdparty/boost/libs)
38
foreach(subd ${subdirs})
49
include_directories(${CMAKE_SOURCE_DIR}/3rdparty/boost/libs/${subd}/include)

cmake/configure.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,15 @@ if( UNIX )
3636
-Wwrite-strings \
3737
-Wswitch-enum \
3838
-Wnull-dereference \
39-
-Wold-style-definition \
4039
-Wswitch-enum \
4140
-Wformat=2 \
42-
-Wmissing-prototypes \
4341
-Wmissing-declarations \
4442
-Wno-c11-extensions")
4543
endif (NOT APPLE)
44+
set(CMAKE_C_FLAGS
45+
"${CMAKE_C_FLAGS} \
46+
-Wold-style-definition \
47+
-Wmissing-prototypes")
4648
set (COMMON_LANGUAGE_RUNTIME "${COMMON_COMPILER_FLAGS} -Werror")
4749

4850
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${COMMON_COMPILER_FLAGS}")

cmake/gtest.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Build googletest components
2+
if(NOT USE_SEQ AND NOT USE_MPI AND NOT USE_OMP AND NOT USE_TBB AND NOT USE_STL)
3+
return()
4+
endif()
5+
26
include_directories(${CMAKE_SOURCE_DIR}/3rdparty/googletest/googletest/include)
37
include(ExternalProject)
48
ExternalProject_Add(ppc_googletest

cmake/opencv.cmake

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Build OpenCV components
22
# core highgui imgcodecs imgproc videoio
3+
4+
if(NOT USE_SEQ AND NOT USE_MPI AND NOT USE_OMP AND NOT USE_TBB AND NOT USE_STL)
5+
return()
6+
endif()
7+
38
include(ExternalProject)
49
include_directories(${CMAKE_SOURCE_DIR}/3rdparty/opencv/include)
510
if(WIN32)
@@ -14,7 +19,8 @@ if(WIN32)
1419
-DBUILD_EXAMPLES=OFF -DBUILD_DOCS=OFF -DWITH_CUDA=OFF -DWITH_OPENCL=OFF -DBUILD_LIST="core,highgui,imgcodecs,imgproc,videoio,"
1520
BUILD_COMMAND "${CMAKE_COMMAND}" --build "${CMAKE_CURRENT_BINARY_DIR}/ppc_opencv/build" --config ${CMAKE_BUILD_TYPE} --parallel
1621
INSTALL_COMMAND "${CMAKE_COMMAND}" --install "${CMAKE_CURRENT_BINARY_DIR}/ppc_opencv/build" --prefix "${CMAKE_CURRENT_BINARY_DIR}/ppc_opencv/install"
17-
TEST_COMMAND "${CMAKE_COMMAND}" -E copy_directory "${CMAKE_CURRENT_BINARY_DIR}/ppc_opencv/build/bin" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")
22+
TEST_COMMAND "${CMAKE_COMMAND}" -E copy_directory "${CMAKE_CURRENT_BINARY_DIR}/ppc_opencv/build/bin" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}" &&
23+
"${CMAKE_COMMAND}" -E copy_directory "${CMAKE_CURRENT_BINARY_DIR}/ppc_opencv/build/bin" "${CMAKE_CURRENT_BINARY_DIR}/ppc_opencv/install/bin")
1824
else()
1925
ExternalProject_Add(ppc_opencv
2026
SOURCE_DIR "${CMAKE_SOURCE_DIR}/3rdparty/opencv"

cmake/scoreboard.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
option(USE_SCOREBOARD OFF)
2+
if( USE_SCOREBOARD )
3+
find_package(Python REQUIRED
4+
COMPONENTS Interpreter)
5+
endif( USE_SCOREBOARD )

modules/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
if(NOT USE_SEQ AND NOT USE_MPI AND NOT USE_OMP AND NOT USE_TBB AND NOT USE_STL)
2+
return()
3+
endif()
4+
15
message(STATUS "Modules")
26

37
SUBDIRLIST(subdirs ${CMAKE_CURRENT_SOURCE_DIR})

0 commit comments

Comments
 (0)