Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install headers & morpheus-config.cmake #1448

Merged
Merged
Show file tree
Hide file tree
Changes from 105 commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
bae8984
Making the morpheus project relocatable to support building C++ compo…
mdemoret-nv Jul 27, 2023
bfd3098
Improving the install step
mdemoret-nv Jul 27, 2023
e2cc0bb
Removing -core from utilities
mdemoret-nv Aug 4, 2023
8bc32c1
Update morpheus utils
dagardner-nv Dec 19, 2023
de526c0
Merge branch 'branch-24.03' of github.com:nv-morpheus/Morpheus into d…
dagardner-nv Dec 19, 2023
7ee8b02
Fix merge error
dagardner-nv Dec 19, 2023
ba3cd1f
Track mdd_improve-setup
dagardner-nv Dec 19, 2023
9863c39
Updated mdd_improve-setup branch
dagardner-nv Dec 20, 2023
79263f3
Updated utilities repo
dagardner-nv Dec 26, 2023
f6fa607
Merge branch 'branch-24.03' of github.com:nv-morpheus/Morpheus into d…
dagardner-nv Dec 26, 2023
eb4d62c
Import mrc.core.segment to avoid stubgen error regarding ObjectProper…
dagardner-nv Dec 26, 2023
dab8e20
Remove unused import
dagardner-nv Dec 26, 2023
0b7f31c
Update stage to match type refactor
dagardner-nv Dec 27, 2023
6478686
Update stub file
dagardner-nv Dec 27, 2023
5f021a9
Add test for the external_cpp_stage
dagardner-nv Dec 27, 2023
261b298
Only install the cpython extensions into site-packages, avoids redund…
dagardner-nv Dec 27, 2023
d3f79c6
Ignore _version.py
dagardner-nv Dec 27, 2023
c243209
Add license header, remove redundant lines
dagardner-nv Dec 27, 2023
8d531d5
Yapf issue #984 has been fixed in our current version of yapf. Remove…
dagardner-nv Dec 27, 2023
d90705a
Resolve missing symbols error when performing release builds
dagardner-nv Dec 28, 2023
1aef7f4
Update utils
dagardner-nv Dec 28, 2023
5ebddf8
Separate the initialization of cuda from enabling it
dagardner-nv Dec 28, 2023
fd5f5e8
Build the install target
dagardner-nv Dec 28, 2023
e28b800
Update utils
dagardner-nv Dec 28, 2023
2ea3d4d
Set C++ std to 20, remove commented out code
dagardner-nv Dec 28, 2023
e69d86d
Fix type-o
dagardner-nv Dec 29, 2023
a006b0b
Include the examples dir when searching for C++ source files
dagardner-nv Dec 29, 2023
b373854
Include the utilities repo as it is nescesarry for building C++ stage…
dagardner-nv Dec 29, 2023
031f10f
Relocate commented out calls to 'conda clean' and re-enable, remove o…
dagardner-nv Jan 2, 2024
46cea05
Update CR year for files changed in this PR
dagardner-nv Jan 2, 2024
5c8768c
Remove unneeded prepend
dagardner-nv Jan 2, 2024
0d74656
WIP
dagardner-nv Jan 2, 2024
6b4d082
Add prepend back in
dagardner-nv Jan 2, 2024
decd08e
WIP
dagardner-nv Jan 2, 2024
22a9a7f
Incorporate examples/external_cpp_stage into examples/developer_guide…
dagardner-nv Jan 2, 2024
da68627
Adding stub file
dagardner-nv Jan 2, 2024
561ff00
Update cmake scripts to control where build artifacts are going
dagardner-nv Jan 2, 2024
df00e90
rename morpheus_pass_thru_example to src
dagardner-nv Jan 2, 2024
1708496
Fix package layout
dagardner-nv Jan 3, 2024
e9bb7ca
Add missing __init__.py
dagardner-nv Jan 3, 2024
4201a51
Setup versioneer
dagardner-nv Jan 3, 2024
6144ecf
Move versioneer file
dagardner-nv Jan 3, 2024
23aac56
Restructure the C++ rabbitmq example
dagardner-nv Jan 3, 2024
276922a
Update versioneer excludes
dagardner-nv Jan 3, 2024
c9a7257
WIP: Updarting RabbitMQ stage
dagardner-nv Jan 3, 2024
70faba9
Setup version file
dagardner-nv Jan 3, 2024
379c5e6
Update imports
dagardner-nv Jan 3, 2024
9796a91
Update paths
dagardner-nv Jan 3, 2024
ca83ef7
Update isort config [skip ci]
dagardner-nv Jan 3, 2024
a2c4969
Remove uneeded lint to mrc [no ci]
dagardner-nv Jan 3, 2024
60b7b3e
Initialize variables in definition order, avoids compiler warning
dagardner-nv Jan 3, 2024
72a0f95
Ensure fpic is set for both the rabbitmq libs and the stage, remove o…
dagardner-nv Jan 3, 2024
cc77f66
Update readme
dagardner-nv Jan 3, 2024
7ff5e5c
Updating docs
dagardner-nv Jan 4, 2024
3a7724d
Updating docs
dagardner-nv Jan 4, 2024
28970b0
Update CR year
dagardner-nv Jan 4, 2024
f01cb96
Don't remove the upstream remote as it won't exist [no ci]
dagardner-nv Jan 4, 2024
da183fb
Restore the SKIP_CONDA_ENV_UPDATE feature
dagardner-nv Jan 4, 2024
eb23513
Add missing dep for glog
dagardner-nv Jan 4, 2024
dbf2cda
Restore mistakenly removed line [no ci]
dagardner-nv Jan 4, 2024
c2234f2
Add deps for glog and grpc
dagardner-nv Jan 4, 2024
4cc100c
Add dep for rxcpp
dagardner-nv Jan 4, 2024
9a923a9
Update CR Year
dagardner-nv Jan 4, 2024
097f3af
Update CR Year
dagardner-nv Jan 4, 2024
287892e
Add data_retrieval to build target as git-lfs is needed for several c…
dagardner-nv Jan 4, 2024
c598632
Add setup.py needed when building wheels
dagardner-nv Jan 4, 2024
d8649b3
Install versioneer via conda
dagardner-nv Jan 4, 2024
4c86d39
Remove references to the locally installed versioneer
dagardner-nv Jan 4, 2024
379ec62
Update test path
dagardner-nv Jan 4, 2024
6545cab
Remove version constraint on versioneer
dagardner-nv Jan 4, 2024
f6914a7
Fix CR year
dagardner-nv Jan 4, 2024
f7bb920
Ignore no-member false-errors from pylint regarding versioneer
dagardner-nv Jan 4, 2024
78eebd6
Perform an install
dagardner-nv Jan 4, 2024
917526c
Don't install tests
dagardner-nv Jan 4, 2024
8885c92
Update CR year
dagardner-nv Jan 4, 2024
7f60f9a
Install the python package
dagardner-nv Jan 4, 2024
4888b55
Build the wheel
dagardner-nv Jan 4, 2024
d74d5c0
Set CMAKE_INSTALL_PREFIX
dagardner-nv Jan 5, 2024
831fc61
Update CR Year
dagardner-nv Jan 5, 2024
d78d596
Adopt newly merged changes in PR #61 in the utilities repo
dagardner-nv Jan 5, 2024
56035d8
Merge branch 'branch-24.03' into david-mdd_relocatable-package
dagardner-nv Jan 8, 2024
820c957
Adopt updated utilities repo to pick up morpheus_utils_configure_grpc…
dagardner-nv Jan 8, 2024
28c68be
Update CR year to reflect that this was created in 2023
dagardner-nv Jan 8, 2024
24cfaff
Update _version
dagardner-nv Jan 8, 2024
c34106d
Remove pylint disable comment
dagardner-nv Jan 8, 2024
fd18b8f
Dont copy the utilities repo, instead install it as part of the package
dagardner-nv Jan 8, 2024
f2187e1
Install cmake python utils
dagardner-nv Jan 8, 2024
6761ba9
Install morpheus_utils cmake scripts
dagardner-nv Jan 8, 2024
8abeb58
Remove relative path
dagardner-nv Jan 8, 2024
33169c6
Install cmake libs even when MORPHEUS_PYTHON_INPLACE_BUILD is true, s…
dagardner-nv Jan 8, 2024
1ef7f2e
Fix load command
dagardner-nv Jan 8, 2024
acfba28
Escape the $
dagardner-nv Jan 9, 2024
3256363
Wrap the include in an if statement
dagardner-nv Jan 9, 2024
4c4d818
Specify dependencies in setup.cfg
dagardner-nv Jan 9, 2024
d89862d
Fix version spec
dagardner-nv Jan 9, 2024
156d004
Fix escaping
dagardner-nv Jan 9, 2024
4880dbc
Re-generate conda packages with updated deps
dagardner-nv Jan 10, 2024
09842ab
Merge branch 'branch-24.03' into david-mdd_relocatable-package
dagardner-nv Jan 17, 2024
e15c206
Remove commented out line [no ci]
dagardner-nv Jan 17, 2024
5015467
Limit debug printing to just morpheus [no ci]
dagardner-nv Jan 17, 2024
cc5d39a
Add comment explaining why bootstrapping cuda is now a two-step proce…
dagardner-nv Jan 17, 2024
3c7addb
Don't call morpheus_utils_configure_grpc
dagardner-nv Jan 18, 2024
6954460
Formatting fix
dagardner-nv Jan 18, 2024
2c740ce
Add pkg-config which is needed by mrc's cmake scripts to discover dep…
dagardner-nv Jan 18, 2024
9967192
Remove component
dagardner-nv Jan 18, 2024
0ce546d
Delete unused cmake script
dagardner-nv Jan 22, 2024
28ffe67
Merge branch 'branch-24.03' into david-mdd_relocatable-package
dagardner-nv Jan 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@

"features": {
"ghcr.io/devcontainers/features/docker-from-docker": {},
"ghcr.io/devcontainers/features/dotnet:1": {}
"ghcr.io/devcontainers/features/dotnet:1": {
"version": "6.0",
"installUsingApt": false
}
},

"customizations": {
Expand All @@ -116,7 +119,6 @@
],
"settings": {
"cmake.cmakePath": "/tmp/.current-conda-env/bin/cmake",
"cmake.languageSupport.dotnetPath": "/usr/bin/dotnet",
"C_Cpp.intelliSenseEngine": "disabled",
"python.terminal.activateEnvironment": false
}
Expand Down
104 changes: 57 additions & 47 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: Copyright (c) 2018-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-FileCopyrightText: Copyright (c) 2018-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -13,10 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.


cmake_minimum_required(VERSION 3.25 FATAL_ERROR)


list(APPEND CMAKE_MESSAGE_CONTEXT "morpheus")

# Global options (Keep sorted!)
Expand All @@ -42,19 +40,9 @@ set(MORPHEUS_RAPIDS_VERSION "23.06" CACHE STRING "Sets default versions for RAPI
set(MORPHEUS_CACHE_DIR "${CMAKE_SOURCE_DIR}/.cache" CACHE PATH "Directory to contain all CPM and CCache data")
mark_as_advanced(MORPHEUS_CACHE_DIR)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS ON)
set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
set(CMAKE_INSTALL_RPATH "$ORIGIN")

# Disable compile commands until after dependencies
set(CMAKE_EXPORT_COMPILE_COMMANDS OFF)

enable_testing()

if (MORPHEUS_USE_IWYU AND MORPHEUS_USE_CCACHE)
if(MORPHEUS_USE_IWYU AND MORPHEUS_USE_CCACHE)
message(FATAL_ERROR "MORPHEUS_USE_IWYU and MORPHEUS_USE_CCACHE cannot be set simultaneously")
endif()

Expand All @@ -80,66 +68,88 @@ set(MORPHEUS_UTILS_RAPIDS_VERSION ${MORPHEUS_RAPIDS_VERSION} CACHE STRING "" FOR
# Load morpheus utils and update CMake paths
include(morpheus_utils/load)

# Configure project package manager
morpheus_utils_initialize_package_manager(
MORPHEUS_USE_CONDA
BUILD_SHARED_LIBS
MORPHEUS_USE_CONDA
BUILD_SHARED_LIBS
)

# Configure CUDA architecture
# NOTE: This MUST occur before any 'project' calls because of rapids_cmake requirements.
if (DEFINED MORPHEUS_CUDA_ARCHITECTURES)
# Initialize CUDA
# This is a two-step process. We need to call morpheus_utils_initialize_cuda_arch which in turn calls
# rapids_cuda_init_architectures prior to calling project(). This is because rapids_cuda_init_architectures defines a
# `CMAKE_PROJECT_<PROJECT-NAME>_INCLUDE` hook which is invoked by the project() call. This hook is what allows us to
# set `CMAKE_CUDA_ARCHITECTURES=rapids` when performing a release build which will be expanded to the current list of
# supported architectures by our version of rapids.
#
# After the call to project() we can then call morpheus_utils_enable_cuda() which will set some CUDA+clang settings
# which can only be performed after calling project(), but which must be set prior to calling enable_language(CUDA)
if(DEFINED MORPHEUS_CUDA_ARCHITECTURES)
set(CMAKE_CUDA_ARCHITECTURES "${MORPHEUS_CUDA_ARCHITECTURES}")
endif()

morpheus_utils_initialize_cuda_arch(morpheus)

# Set a default build type if none was specified
rapids_cmake_build_type(Release)
# Project definition
# Note intentionally excluding CUDA from the LANGUAGES list allowing us to set some clang specific settings later when
# we call morpheus_utils_enable_cuda()
project(morpheus
VERSION 24.03.00
LANGUAGES C CXX CUDA)
VERSION 24.03.00
LANGUAGES C CXX
)

# This sets some clang specific settings for CUDA prior to calling enable_language(CUDA)
morpheus_utils_enable_cuda()

rapids_cmake_write_version_file(${CMAKE_BINARY_DIR}/autogenerated/include/morpheus/version.hpp)

# Ccache configuration
# Set a default build type if none was specified
rapids_cmake_build_type(Release)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS ON)
set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
set(CMAKE_INSTALL_RPATH "$ORIGIN")

# Setup cache before dependencies
# Configure CCache if requested
include(environment/init_ccache)

# Disable exporting compile commands for dependencies
set(CMAKE_EXPORT_COMPILE_COMMANDS OFF)

# Create a custom target to allow preparing for style checks
add_custom_target(${PROJECT_NAME}_style_checks
COMMENT "Building dependencies for style checks"
)

# Configure all dependencies
include(dependencies)

####################################
# - Post dependencies setup --------
morpheus_utils_compiler_set_defaults(MORPHEUS_USE_CLANG_TIDY)

# Setup IWYU if enabled
include(environment/init_iwyu)
# Enable for all first party code
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

# To make it easier for CI to find output files, set the default executable suffix to .x if not set
if("${CMAKE_EXECUTABLE_SUFFIX}" STREQUAL "")
set(CMAKE_EXECUTABLE_SUFFIX ".x")
endif()

# Create a custom target to allow preparing for style checks
add_custom_target(${PROJECT_NAME}_style_checks
COMMENT "Building dependencies for style checks"
)


##################################
##### Morpheus Python Setup ######
##################################
# ###################################
# - Post dependencies setup --------
morpheus_utils_compiler_set_defaults(MORPHEUS_USE_CLANG_TIDY)

# Re-enable compile commands
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# Setup IWYU if enabled
include(environment/init_iwyu)

# #################################
# #### Morpheus Python Setup ######
# #################################
morpheus_utils_python_configure()

# Include the main morpheus code
morpheus_utils_create_python_package(morpheus
PROJECT_DIRECTORY "${CMAKE_SOURCE_DIR}"
SOURCE_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/morpheus"
PROJECT_DIRECTORY "${CMAKE_SOURCE_DIR}"
SOURCE_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/morpheus"
)

add_subdirectory(morpheus)
Expand Down Expand Up @@ -174,9 +184,9 @@ if(MORPHEUS_ENABLE_DEBUG_INFO)
morpheus_utils_print_all_targets()

morpheus_utils_print_target_properties(
TARGETS
morpheus morpheus._lib.llm
WRITE_TO_FILE
TARGETS
morpheus
WRITE_TO_FILE
)

morpheus_utils_print_global_properties(
Expand Down
3 changes: 1 addition & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
include versioneer.py
include morpheus/_version.py
recursive-include morpheus/data *
recursive-include morpheus *.so py.typed *.pyi
recursive-include morpheus *.cpython*.so py.typed *.pyi
4 changes: 2 additions & 2 deletions ci/conda/recipes/morpheus/morpheus_build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-FileCopyrightText: Copyright (c) 2022-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 @@ -90,7 +90,7 @@ cmake -B ${BUILD_DIR} \
.

# Build the components
cmake --build ${BUILD_DIR} -j${PARALLEL_LEVEL:-$(nproc)}
cmake --build ${BUILD_DIR} -j${PARALLEL_LEVEL:-$(nproc)} --target install

# Install just the python wheel components
${PYTHON} -m pip install -vv ${BUILD_DIR}/dist/*.whl
7 changes: 2 additions & 5 deletions ci/scripts/common.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 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 All @@ -22,14 +22,11 @@ export PY_ROOT="${MORPHEUS_ROOT}"
export PY_CFG="${PY_ROOT}/setup.cfg"
export PY_DIRS="${PY_ROOT} ci/scripts"

# work-around for known yapf issue https://github.com/google/yapf/issues/984
export YAPF_EXCLUDE_FLAGS="-e versioneer.py -e morpheus/_version.py"

# Determine the commits to compare against. If running in CI, these will be set. Otherwise, diff with main
export BASE_SHA=${CHANGE_TARGET:-${BASE_SHA:-$(${SCRIPT_DIR}/gitutils.py get_merge_target)}}
export COMMIT_SHA=${GIT_COMMIT:-${COMMIT_SHA:-HEAD}}

export CPP_FILE_REGEX='^(\.\/)?(morpheus|tests)\/.*\.(cc|cpp|h|hpp)$'
export CPP_FILE_REGEX='^(\.\/)?(examples|morpheus|tests)\/.*\.(cc|cpp|h|hpp)$'
export PYTHON_FILE_REGEX='^(\.\/)?(?!\.|build|external).*\.(py|pyx|pxd)$'

# Use these options to skip any of the checks
Expand Down
4 changes: 2 additions & 2 deletions ci/scripts/fix_all.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 @@ -105,5 +105,5 @@ fi
# Run yapf
if [[ "${SKIP_YAPF}" == "" ]]; then
echo "Running yapf..."
python3 -m yapf -i --style ${PY_CFG} ${YAPF_EXCLUDE_FLAGS} -r ${PY_MODIFIED_FILES[@]}
python3 -m yapf -i --style ${PY_CFG} -r ${PY_MODIFIED_FILES[@]}
fi
13 changes: 8 additions & 5 deletions ci/scripts/github/common.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-FileCopyrightText: Copyright (c) 2022-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 @@ -71,10 +71,14 @@ function update_conda_env() {
# Deactivate the environment first before updating
conda deactivate

rapids-logger "Checking for updates to conda env"

# Update the packages
rapids-mamba-retry env update -n morpheus --prune -q --file "$1"
if [[ "${SKIP_CONDA_ENV_UPDATE}" == "" ]]; then
rapids-logger "Checking for updates to conda env"


# Update the packages
rapids-mamba-retry env update -n morpheus --prune -q --file "$1"
fi

# Finally, reactivate
conda activate morpheus
Expand Down Expand Up @@ -107,7 +111,6 @@ function fetch_base_branch_gh_api() {

function fetch_base_branch_local() {
rapids-logger "Retrieving base branch from git"
git remote remove upstream
git remote add upstream ${GIT_UPSTREAM_URL}
git fetch upstream --tags
source ${MORPHEUS_ROOT}/ci/scripts/common.sh
Expand Down
7 changes: 4 additions & 3 deletions ci/scripts/github/docs.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-FileCopyrightText: Copyright (c) 2022-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 @@ -40,10 +40,11 @@ ${MORPHEUS_ROOT}/scripts/fetch_data.py fetch docs examples
git submodule update --init --recursive

rapids-logger "Configuring for docs"
cmake -B build -G Ninja ${CMAKE_BUILD_ALL_FEATURES} -DMORPHEUS_PYTHON_BUILD_STUBS=OFF -DMORPHEUS_BUILD_DOCS=ON .
cmake -B build -G Ninja ${CMAKE_BUILD_ALL_FEATURES} -DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} -DMORPHEUS_PYTHON_BUILD_STUBS=OFF -DMORPHEUS_BUILD_DOCS=ON .

rapids-logger "Building docs"
cmake --build build --target morpheus_docs
cmake --build build --parallel ${PARALLEL_LEVEL} --target install
cmake --build build --parallel ${PARALLEL_LEVEL} --target morpheus_docs

rapids-logger "Archiving the docs"
tar cfj "${WORKSPACE_TMP}/docs.tar.bz" build/docs/html
Expand Down
13 changes: 4 additions & 9 deletions ci/scripts/github/test.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-FileCopyrightText: Copyright (c) 2022-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -26,13 +26,7 @@ rapids-dependency-file-generator \

update_conda_env env.yaml

rapids-logger "Check versions"
python3 --version
x86_64-conda-linux-gnu-cc --version
x86_64-conda-linux-gnu-c++ --version
cmake --version
ninja --version
sccache --version
log_toolchain

git submodule update --init --recursive

Expand All @@ -41,6 +35,7 @@ CMAKE_FLAGS="${CMAKE_FLAGS} -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON"
CMAKE_FLAGS="${CMAKE_FLAGS} -DMORPHEUS_PYTHON_BUILD_STUBS=ON"
CMAKE_FLAGS="${CMAKE_FLAGS} -DMORPHEUS_PYTHON_BUILD_WHEEL=OFF"
CMAKE_FLAGS="${CMAKE_FLAGS} -DMORPHEUS_PYTHON_PERFORM_INSTALL=ON"
CMAKE_FLAGS="${CMAKE_FLAGS} -DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX}"
if [[ "${LOCAL_CI}" == "" ]]; then
CMAKE_FLAGS="${CMAKE_FLAGS} -DCCACHE_PROGRAM_PATH=$(which sccache)"
fi
Expand All @@ -49,7 +44,7 @@ rapids-logger "Configuring cmake for Morpheus with ${CMAKE_FLAGS}"
cmake -B build -G Ninja ${CMAKE_FLAGS} .

rapids-logger "Building Morpheus"
cmake --build build --parallel ${PARALLEL_LEVEL}
cmake --build build --parallel ${PARALLEL_LEVEL} --target install

if [[ "${LOCAL_CI}" == "" ]]; then
rapids-logger "sccache usage for morpheus build:"
Expand Down
4 changes: 2 additions & 2 deletions ci/scripts/python_checks.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/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 @@ -59,7 +59,7 @@ if [[ -n "${MORPHEUS_MODIFIED_FILES}" ]]; then

if [[ "${SKIP_YAPF}" == "" ]]; then
# Run yapf. Will return 1 if there are any diffs
YAPF_OUTPUT=`python3 -m yapf --style ${PY_CFG} ${YAPF_EXCLUDE_FLAGS} --diff ${MORPHEUS_MODIFIED_FILES[@]} 2>&1`
YAPF_OUTPUT=`python3 -m yapf --style ${PY_CFG} --diff ${MORPHEUS_MODIFIED_FILES[@]} 2>&1`
mdemoret-nv marked this conversation as resolved.
Show resolved Hide resolved
YAPF_RETVAL=$?
fi

Expand Down
Loading