Skip to content

Commit

Permalink
Merge branch 'branch-23.07' into branch-23.11-merge-23.07
Browse files Browse the repository at this point in the history
  • Loading branch information
mdemoret-nv committed Oct 13, 2023
2 parents e92e698 + 06bda2d commit 8ac2703
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ See the License for the specific language governing permissions and
limitations under the License.
-->

# Morpheus 23.07.03 (11 Oct 2023)

## 🐛 Bug Fixes
- Add pinned libwebp to resolve CVE ([#1236](https://github.com/nv-morpheus/Morpheus/pull/1236)) [@drobison00](https://github.com/drobison00)
- Add libwebp to meta.yaml for CVE 2307 ([#1242](https://github.com/nv-morpheus/Morpheus/pull/1242)) [@drobison00](https://github.com/drobison00)
- [BUG] Fix Control Message Utils & SQL Max Connections Exhaust ([#1243](https://github.com/nv-morpheus/Morpheus/pull/1243)) [@bsuryadevara](https://github.com/bsuryadevara)

# Morpheus 23.07.02 (25 Jul 2023)

## 🐛 Bug Fixes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ services:
target: runtime
args:
- MORPHEUS_CONTAINER=${MORPHEUS_CONTAINER:-nvcr.io/nvidia/morpheus/morpheus}
- MORPHEUS_CONTAINER_VERSION=${MORPHEUS_CONTAINER_VERSION:-v23.11.00-runtime}
- MORPHEUS_CONTAINER_VERSION=${MORPHEUS_CONTAINER_VERSION:-v23.07.00-runtime}
image: dfp_morpheus
container_name: morpheus_pipeline
deploy:
Expand Down
19 changes: 15 additions & 4 deletions morpheus/_lib/modules/module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@

#include <mrc/modules/module_registry_util.hpp>
#include <nlohmann/json.hpp>
#include <pybind11/cast.h> // for object_api::operator(), object::cast
#include <pybind11/pybind11.h> // for arg, init, class_, module_, str_attr_accessor, PYBIND11_MODULE, pybind11
#include <pybind11/pytypes.h>

#include <array> // for array
#include <sstream>
#include <vector>

Expand All @@ -39,11 +42,19 @@ PYBIND11_MODULE(modules, _module)
)pbdoc";

const std::vector<unsigned int> MorpheusModuleVersion{
morpheus_VERSION_MAJOR, morpheus_VERSION_MINOR, morpheus_VERSION_PATCH};
// Get the MRC version that we are registering these modules for. Ideally, this would be able to get it directly
// from <mrc/version.hpp> but that file isnt exported
std::vector<unsigned int> mrc_version;

mrc::modules::ModelRegistryUtil::create_registered_module<DataLoaderModule>(
"DataLoader", "morpheus", MorpheusModuleVersion);
auto mrc_version_list = pybind11::module_::import("mrc").attr("__version__").attr("split")(".").cast<py::list>();

for (const auto& l : mrc_version_list)
{
auto i = py::int_(py::reinterpret_borrow<py::object>(l));
mrc_version.push_back(i.cast<unsigned int>());
}

mrc::modules::ModelRegistryUtil::create_registered_module<DataLoaderModule>("DataLoader", "morpheus", mrc_version);

_module.attr("__version__") =
MORPHEUS_CONCAT_STR(morpheus_VERSION_MAJOR << "." << morpheus_VERSION_MINOR << "." << morpheus_VERSION_PATCH);
Expand Down

0 comments on commit 8ac2703

Please sign in to comment.