Skip to content

Commit

Permalink
Merge pull request #474 from nv-morpheus/branch-24.03
Browse files Browse the repository at this point in the history
Forward-merge branch-24.03 into branch-24.06
  • Loading branch information
dagardner-nv committed Apr 16, 2024
2 parents 41afd96 + 84bfffc commit 7b599a3
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 14 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# MRC 24.03.01 (16 Apr 2024)

## 🐛 Bug Fixes

- Add auto register helpers to AsyncSink and AsyncSource ([#473](https://github.com/nv-morpheus/MRC/pull/473)) [@dagardner-nv](https://github.com/dagardner-nv)

# MRC 24.03.00 (7 Apr 2024)

## 🚨 Breaking Changes
Expand Down
26 changes: 14 additions & 12 deletions ci/scripts/cpp_checks.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# SPDX-FileCopyrightText: Copyright (c) 2021-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-FileCopyrightText: Copyright (c) 2021-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -84,19 +84,21 @@ if [[ -n "${MRC_MODIFIED_FILES}" ]]; then
shopt -s extglob
IWYU_MODIFIED_FILES=( "${MRC_MODIFIED_FILES[@]/*.@(h|hpp|cu)/}" )

# Get the list of compiled files relative to this directory
WORKING_PREFIX="${PWD}/"
COMPILED_FILES=( $(jq -r .[].file ${BUILD_DIR}/compile_commands.json | sort -u ) )
COMPILED_FILES=( "${COMPILED_FILES[@]/#$WORKING_PREFIX/}" )
COMBINED_FILES=("${COMPILED_FILES[@]}")
COMBINED_FILES+=("${IWYU_MODIFIED_FILES[@]}")
if [[ -n "${IWYU_MODIFIED_FILES}" ]]; then
# Get the list of compiled files relative to this directory
WORKING_PREFIX="${PWD}/"
COMPILED_FILES=( $(jq -r .[].file ${BUILD_DIR}/compile_commands.json | sort -u ) )
COMPILED_FILES=( "${COMPILED_FILES[@]/#$WORKING_PREFIX/}" )
COMBINED_FILES=("${COMPILED_FILES[@]}")
COMBINED_FILES+=("${IWYU_MODIFIED_FILES[@]}")

# Find the intersection between compiled files and modified files
IWYU_MODIFIED_FILES=( $(printf '%s\0' "${COMBINED_FILES[@]}" | sort -z | uniq -d -z | xargs -0n1) )
# Find the intersection between compiled files and modified files
IWYU_MODIFIED_FILES=( $(printf '%s\0' "${COMBINED_FILES[@]}" | sort -z | uniq -d -z | xargs -0n1) )

NUM_PROC=$(get_num_proc)
IWYU_OUTPUT=`${IWYU_TOOL} -p ${BUILD_DIR} -j ${NUM_PROC} ${IWYU_MODIFIED_FILES[@]} 2>&1`
IWYU_RETVAL=$?
NUM_PROC=$(get_num_proc)
IWYU_OUTPUT=`${IWYU_TOOL} -p ${BUILD_DIR} -j ${NUM_PROC} ${IWYU_MODIFIED_FILES[@]} 2>&1`
IWYU_RETVAL=$?
fi
fi
else
echo "No modified C++ files to check"
Expand Down
10 changes: 8 additions & 2 deletions python/mrc/_pymrc/include/pymrc/asyncio_runnable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#pragma once

#include "pymrc/asyncio_scheduler.hpp"
#include "pymrc/edge_adapter.hpp"
#include "pymrc/node.hpp"
#include "pymrc/utilities/object_wrappers.hpp"

#include <boost/fiber/future/async.hpp>
Expand Down Expand Up @@ -110,7 +112,9 @@ class BoostFutureAwaitableOperation
template <typename T>
class AsyncSink : public mrc::node::WritableProvider<T>,
public mrc::node::ReadableAcceptor<T>,
public mrc::node::SinkChannelOwner<T>
public mrc::node::SinkChannelOwner<T>,
public pymrc::AutoRegSinkAdapter<T>,
public pymrc::AutoRegEgressPort<T>
{
protected:
AsyncSink() :
Expand Down Expand Up @@ -140,7 +144,9 @@ class AsyncSink : public mrc::node::WritableProvider<T>,
template <typename T>
class AsyncSource : public mrc::node::WritableAcceptor<T>,
public mrc::node::ReadableProvider<T>,
public mrc::node::SourceChannelOwner<T>
public mrc::node::SourceChannelOwner<T>,
public pymrc::AutoRegSourceAdapter<T>,
public pymrc::AutoRegIngressPort<T>
{
protected:
AsyncSource() :
Expand Down

0 comments on commit 7b599a3

Please sign in to comment.