-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
78 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,15 +12,17 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
flux: [ 0.52.0, 0.49.0] | ||
mode: ["FLUX_RPC", "UCX"] | ||
dtl_mode: ["FLUX_RPC", "UCX"] | ||
profiler_mode: ["CALIPER", "NONE"] | ||
test_mode: ["c", "cpp"] #, "python"] | ||
runs-on: ubuntu-20.04 # Docker-based jobs must run on Ubuntu | ||
env: | ||
FLUX_VERSION: ${{ matrix.flux }} | ||
SPACK_DIR: "/home/runner/work/spack" | ||
DYAD_INSTALL_PREFIX: "/home/runner/work/dyad/install" | ||
DYAD_KVS_NAMESPACE: "test" | ||
DYAD_DTL_MODE: ${{ matrix.mode }} | ||
DYAD_DTL_MODE: ${{ matrix.dtl_mode }} | ||
DYAD_PROFILER_MODE: ${{ matrix.profiler_mode }} | ||
DYAD_PATH: "/home/runner/work/dyad/temp" | ||
DYAD_TEST_MODE: ${{ matrix.test_mode }} | ||
steps: | ||
|
@@ -191,11 +193,17 @@ jobs: | |
if [[ $DYAD_DTL_MODE == 'UCX' ]]; then | ||
spack install -j4 [email protected] | ||
fi | ||
if [[ $DYAD_PROFILER_MODE == 'CALIPER' ]]; then | ||
spack install -j4 caliper | ||
fi | ||
mkdir -p ${DYAD_INSTALL_PREFIX} | ||
spack view --verbose symlink ${DYAD_INSTALL_PREFIX} flux-core@${FLUX_VERSION} | ||
if [[ $DYAD_DTL_MODE == 'UCX' ]]; then | ||
spack view --verbose symlink ${DYAD_INSTALL_PREFIX} [email protected] | ||
fi | ||
if [[ $DYAD_PROFILER_MODE == 'CALIPER' ]]; then | ||
spack view --verbose symlink ${DYAD_INSTALL_PREFIX} caliper | ||
fi | ||
- name: Compile DYAD | ||
run: | | ||
echo "Activating spack" | ||
|
@@ -207,9 +215,14 @@ jobs: | |
mkdir build | ||
cd build | ||
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:${DYAD_INSTALL_PREFIX}/lib/pkgconfig | ||
CONFIGURE_FLAGS="-DDYAD_CONTROL_PLANE=FLUX_RPC -DDYAD_DATA_PLANE=FLUX_RPC -DDYAD_PROFILER=NONE" | ||
CONFIGURE_FLAGS="-DDYAD_CONTROL_PLANE=FLUX_RPC -DDYAD_DATA_PLANE=FLUX_RPC" | ||
if [[ $DYAD_DTL_MODE == 'UCX' ]]; then | ||
CONFIGURE_FLAGS="-DDYAD_CONTROL_PLANE=FLUX_RPC -DDYAD_DATA_PLANE=UCX -DDYAD_PROFILER=NONE" | ||
CONFIGURE_FLAGS="-DDYAD_CONTROL_PLANE=FLUX_RPC -DDYAD_DATA_PLANE=UCX" | ||
fi | ||
if [[ $DYAD_PROFILER_MODE == 'CALIPER' ]]; then | ||
CONFIGURE_FLAGS="${CONFIGURE_FLAGS} -DDYAD_PROFILER=CALIPER" | ||
else | ||
CONFIGURE_FLAGS="${CONFIGURE_FLAGS} -DDYAD_PROFILER=NONE" | ||
fi | ||
cmake -DCMAKE_INSTALL_PREFIX=${DYAD_INSTALL_PREFIX} ${CONFIGURE_FLAGS} -DENABLE_DYAD_DEBUG=ON .. | ||
make install -j | ||
|
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
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
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,41 @@ | ||
set(DYAD_PERF_SRC ) | ||
set(DYAD_PERF_PRIVATE_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/dyad_perf.h) | ||
set(DYAD_PERF_PUBLIC_HEADERS ) | ||
|
||
set(CALIPER_PERF_SRC ${CMAKE_CURRENT_SOURCE_DIR}/caliper_perf.cpp) | ||
set(CALIPER_PERF_PRIVATE_HEADERS ) | ||
set(CALIPER_PERF_PUBLIC_HEADERS ) | ||
|
||
set(DEFAULT_PERF_SRC ${CMAKE_CURRENT_SOURCE_DIR}/dyad_perf.c) | ||
set(DEFAULT_PERF_PRIVATE_HEADERS ) | ||
set(DEFAULT_PERF_PUBLIC_HEADERS ) | ||
|
||
if (DYAD_PROFILER STREQUAL "CALIPER") | ||
set(DYAD_PERF_SRC ${DYAD_PERF_SRC} ${CALIPER_PERF_SRC}) | ||
set(DYAD_PERF_PRIVATE_HEADERS ${DYAD_PERF_PRIVATE_HEADERS} ${CALIPER_PERF_PRIVATE_HEADERS}) | ||
set(DYAD_PERF_PUBLIC_HEADERS ${DYAD_PERF_PUBLIC_HEADERS} ${CALIPER_PERF_PUBLIC_HEADERS}) | ||
else () | ||
set(DYAD_PERF_SRC ${DYAD_PERF_SRC} ${DEFAULT_PERF_SRC}) | ||
set(DYAD_PERF_PRIVATE_HEADERS ${DYAD_PERF_PRIVATE_HEADERS} ${DEFAULT_PERF_PRIVATE_HEADERS}) | ||
set(DYAD_PERF_PUBLIC_HEADERS ${DYAD_PERF_PUBLIC_HEADERS} ${DEFAULT_PERF_PUBLIC_HEADERS}) | ||
endif () | ||
|
||
add_library(${PROJECT_NAME}_perf SHARED ${DYAD_PERF_SRC}) | ||
target_link_libraries(${PROJECT_NAME}_perf PUBLIC flux::core flux::optparse) | ||
|
||
if (DYAD_PROFILER STREQUAL "CALIPER") | ||
target_link_libraries(${PROJECT_NAME}_perf PUBLIC caliper) | ||
target_compile_definitions(${PROJECT_NAME}_perf PUBLIC WITH_CALIPER=1) | ||
endif () | ||
|
||
install( | ||
TARGETS ${PROJECT_NAME}_perf | ||
EXPORT ${DYAD_EXPORTED_TARGETS} | ||
LIBRARY DESTINATION ${DYAD_INSTALL_LIB_DIR} | ||
ARCHIVE DESTINATION ${DYAD_INSTALL_LIB_DIR} | ||
RUNTIME DESTINATION ${DYAD_INSTALL_BIN_DIR} | ||
) | ||
|
||
if(NOT ${DYAD_PERF_PUBLIC_HEADERS} STREQUAL "") | ||
dyad_install_headers("${DYAD_PERF_PUBLIC_HEADERS}" ${CMAKE_CURRENT_SOURCE_DIR}) | ||
endif() |