Skip to content

Commit 6221421

Browse files
committed
Merge branch 'master' into simgrid-external-project-ci
2 parents 2ce85bf + deb1d07 commit 6221421

File tree

352 files changed

+5660
-8024
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

352 files changed

+5660
-8024
lines changed

.clang-format

Lines changed: 0 additions & 67 deletions
This file was deleted.

.github/workflows/build-macos.yml

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
name: Build-macOS
22

33
on:
4-
push:
5-
paths-ignore:
6-
- 'doc/**'
7-
- '**.md'
8-
workflow_run:
9-
workflows: ["clang-format"]
10-
branches: [master]
11-
types:
12-
- completed
4+
# push:
5+
# paths-ignore:
6+
# - 'doc/**'
7+
# - '**.md'
8+
#workflow_run:
9+
# workflows: ["clang-format"]
10+
# branches: [master]
11+
# types:
12+
# - completed
1313

1414
concurrency:
1515
group: ${{ github.workflow }}-${{ github.ref }}
@@ -30,17 +30,12 @@ jobs:
3030
- name: Install gcc
3131
run: |
3232
brew install gcc
33+
- name: debug0
34+
run: |
35+
ls /opt/homebrew/bin/
3336
- name: Install nlohmann-json
3437
run: |
3538
brew install nlohmann-json
36-
#wget https://github.com/nlohmann/json/archive/refs/tags/v3.11.3.tar.gz
37-
#tar -xzf v3.11.3.tar.gz
38-
#cd json-3.11.3
39-
#mkdir build
40-
#cd build
41-
#cmake ..
42-
#make -j4
43-
#sudo make install
4439
- name: Install googletest
4540
run: |
4641
brew install googletest
@@ -53,7 +48,13 @@ jobs:
5348
wget --no-check-certificate https://framagit.org/simgrid/simgrid/-/archive/v3.36/simgrid-v3.36.tar.gz
5449
tar -xf simgrid-v3.36.tar.gz
5550
cd simgrid-v3.36
56-
cmake .
51+
sed -I "" "s/gfortran/gfortran -L./" CMakeLists.txt
52+
mkdir build
53+
cd build
54+
cmake -DCMAKE_CXX_COMPILER=/opt/homebrew/bin/g++-14 -DCMAKE_CXX_COMPILER=/opt/homebrew/bin/g++-14 ..
55+
cp /opt/homebrew/lib/gcc/14/*libgfortran* .
56+
ls
57+
echo "DYLD_LIBRARY_PATH=$(echo $DYLD_LIBRARY_PATH:.)" >> $GITHUB_ENV
5758
make -j4
5859
sudo make install
5960
- name: Source Build and Test

.github/workflows/build.yml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,9 @@ concurrency:
1212
cancel-in-progress: true
1313

1414
jobs:
15-
format:
16-
name: "Code Formatting"
17-
runs-on: ubuntu-latest
18-
if: github.ref == 'refs/heads/master'
19-
20-
steps:
21-
- uses: actions/checkout@v2
22-
- uses: DoozyX/clang-format-lint-action@v0.13
23-
with:
24-
source: '.'
25-
exclude: './doc'
26-
extensions: 'h,cpp'
27-
clangFormatVersion: 13
28-
inplace: True
29-
- uses: EndBug/add-and-commit@v4
30-
with:
31-
message: 'Committing clang-format changes'
32-
env:
33-
GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }}
34-
3515
build:
3616
runs-on: ubuntu-latest
3717
if: ${{ always() }}
38-
needs: format
39-
4018
strategy:
4119
matrix:
4220
include:

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ cmake-build-debug
3333
cmake-build-release
3434
build
3535
.idea
36+
.clang-format
3637

3738
# VSCode
3839
.vscode
@@ -57,8 +58,9 @@ examples/workflow_api/condor-grid-example/wrench-example-condor-grid-universe
5758
*wrench-example*
5859
examples/workflow_api/basic-examples/io-pagecache/wrench-example*
5960

60-
# Generated REST API routes
61+
# Generated REST API routes and data structures
6162
tools/wrench/wrench-daemon/include/routes.h
63+
tools/wrench/wrench-daemon/include/callback-map.h
6264

6365
#JSON
6466
host_utilization_layout.json

CMakeLists.txt

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.2)
1+
cmake_minimum_required(VERSION 3.12)
22
message(STATUS "Cmake version ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}")
33

44
project(wrench CXX)
@@ -7,6 +7,8 @@ project(wrench CXX)
77
add_definitions("-DBOOST_ALLOW_DEPRECATED_HEADERS")
88
#add_definitions("-DBOOST_BIND_GLOBAL_PLACEHOLDERS")
99

10+
11+
1012
# Make Release the default build type
1113
if(NOT CMAKE_BUILD_TYPE)
1214
set(CMAKE_BUILD_TYPE Release)
@@ -25,7 +27,6 @@ if (ENABLE_WRENCH_INTERNAL_EXCEPTIONS)
2527
endif ()
2628

2729
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/conf/cmake/")
28-
message("CMAKE_MODULE_PATH = ${CMAKE_MODULE_PATH}")
2930

3031
# Find Boost
3132
find_package(Boost REQUIRED)
@@ -48,14 +49,32 @@ if (DEFINED SimGrid_PATH)
4849
endif()
4950
find_package(SimGrid REQUIRED)
5051

52+
# Find SimGrid's FS module
53+
if (DEFINED FSMOD_PATH)
54+
if (NOT EXISTS "${FSMOD_PATH}")
55+
message(FATAL_ERROR "The specified FSMOD_PATH doesn't exit")
56+
else()
57+
file(GLOB LIBFSMOD_FILES
58+
"${FSMOD_PATH}/liblibfsmod.so"
59+
"${FSMOD_PATH}/lib/libfsmod.dylib"
60+
)
61+
if (NOT LIBFSMOD_FILES)
62+
message(FATAL_ERROR "The specified FSMOD_PATH doesn't seem to contain a valid FSMod installation")
63+
else()
64+
set(CMAKE_PREFIX_PATH ${FSMOD_PATH} ${CMAKE_PREFIX_PATH})
65+
endif()
66+
endif()
67+
endif()
68+
find_package(FSMod REQUIRED)
69+
5170
# Find nlohmann_json
5271
find_package(nlohmann_json)
5372

5473
set(CMAKE_CXX_STANDARD 17)
5574

5675
# build the version number
5776
set(WRENCH_VERSION_MAJOR "2")
58-
set(WRENCH_VERSION_MINOR "4")
77+
set(WRENCH_VERSION_MINOR "5")
5978
set(WRENCH_VERSION_PATCH "0")
6079
set(WRENCH_VERSION_EXTRA "dev")
6180

@@ -71,7 +90,7 @@ endif ()
7190

7291
message(STATUS "Building WRENCH Version: ${WRENCH_RELEASE_VERSION}")
7392

74-
include_directories(src/wrench/ include/ ${SimGrid_INCLUDE_DIR} ${Boost_INCLUDE_DIR} /usr/include /usr/local/include /opt/local/include)
93+
include_directories(src/wrench/ include/ ${SimGrid_INCLUDE_DIR} ${Boost_INCLUDE_DIR} ${FSMOD_INCLUDE_DIR} /usr/include /usr/local/include /opt/local/include)
7594

7695

7796
# For MacOS's MacPorts
@@ -247,7 +266,6 @@ set(SOURCE_FILES
247266
include/wrench/services/compute/batch/batch_schedulers/BatchScheduler.h
248267
include/wrench/services/compute/batch/batch_schedulers/homegrown/HomegrownBatchScheduler.h
249268
include/wrench/services/storage/storage_helpers/FileTransferThread.h
250-
include/wrench/services/storage/storage_helpers/LogicalFileSystem.h
251269
include/wrench/services/storage/storage_helpers/LogicalFileSystemNoCaching.h
252270
include/wrench/services/storage/storage_helpers/LogicalFileSystemLRUCaching.h
253271
src/wrench/logging/TerminalOutput.cpp
@@ -353,9 +371,6 @@ set(SOURCE_FILES
353371
src/wrench/services/storage/storage_helper_classes/FileLocation.cpp
354372
src/wrench/services/storage/storage_helper_classes/FileTransferThread.cpp
355373
include/wrench/services/storage/storage_helpers/FileTransferThreadMessage.h
356-
src/wrench/services/storage/storage_helper_classes/LogicalFileSystem.cpp
357-
src/wrench/services/storage/storage_helper_classes/LogicalFileSystemNoCaching.cpp
358-
src/wrench/services/storage/storage_helper_classes/LogicalFileSystemLRUCaching.cpp
359374
src/wrench/simgrid_S4U_util/S4U_Daemon.cpp
360375
src/wrench/simgrid_S4U_util/S4U_DaemonActor.cpp
361376
include/wrench/simgrid_S4U_util/S4U_DaemonActor.h
@@ -480,6 +495,7 @@ set(TEST_FILES
480495
test/services/compute_services/batch_standard_and_pilot_jobs/BatchServiceOutputCSVFileTest.cpp
481496
test/services/compute_services/batch_standard_and_pilot_jobs/BatchServiceBatschedQueueWaitTimePredictionTest.cpp
482497
test/services/compute_services/batch_standard_and_pilot_jobs/BatchServiceBatschedContiguityTest.cpp
498+
test/services/compute_services/batch_standard_and_pilot_jobs/BatchServiceResourceInformationTest.cpp
483499
test/services/helper_services/HostStateChangeTest.cpp
484500
test/services/helper_services/AlarmTest.cpp
485501
test/services/storage_services/XRootDStorageService/XRootDStorageServiceBasicFunctionalTest.cpp
@@ -553,7 +569,7 @@ set(TEST_FILES
553569

554570
add_library(wrench STATIC ${SOURCE_FILES})
555571
set_target_properties(wrench PROPERTIES VERSION ${WRENCH_RELEASE_VERSION})
556-
target_link_libraries(wrench ${SimGrid_LIBRARY})
572+
target_link_libraries(wrench ${SimGrid_LIBRARY} ${FSMOD_LIBRARY})
557573

558574
# wrench version
559575
add_custom_command(TARGET wrench PRE_LINK COMMAND ${CMAKE_COMMAND} -DPROJECT_SOURCE_DIR=${PROJECT_SOURCE_DIR} -DWRENCH_RELEASE_VERSION=${WRENCH_RELEASE_VERSION} -P ${CMAKE_HOME_DIRECTORY}/conf/cmake/Version.cmake)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
[![Build Status][build-badge]][build-link]
2-
[![Build-macOS Status][build-macos-badge]][build-macos-link]
32
[![GitHub Release][release-badge]][release-link]
43
[![License: LGPL v3][license-badge]](LICENSE.md)
54
[![Coverage Status][codecov-badge]][codecov-link]
@@ -43,6 +42,7 @@ And, one of the following:
4342
### Required Dependencies
4443

4544
- [SimGrid](https://framagit.org/simgrid/simgrid/) - version 3.36
45+
- [SimGrid File System Module](https://github.com/simgrid/file-system-module) - version 0.2 or higher
4646
- [JSON for Modern C++](https://github.com/nlohmann/json) - version 3.11.0 or higher
4747

4848
### Optional Dependencies

RELEASENOTES.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,16 @@ WRENCH Release Notes
33

44
### current master branch
55

6-
Nothing new yet
6+
Nothing here yet
7+
8+
### wrench 2.4
9+
10+
- Removal of all file system simulation code, which was replaced by calls to
11+
the [SimGrid File System Module (FSMod)](https://github.com/simgrid/file-system-module), which is now a new
12+
software dependency for WRENCH
13+
- API change: all numbers of bytes (file and memory sizes) are now of type `sg_size_t` instead of `double` (due to the use of FSMod above)
14+
- Added REST API functionality and updated all documentation
15+
- Minor code/documentation cleanups
716

817
### wrench 2.3
918

0 commit comments

Comments
 (0)