forked from nv-morpheus/Morpheus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid copy of source data in AddClassificationsStage and FilterDetect…
…ionsStage (nv-morpheus#730) * Adds two new overloads of `MatxUtil::threshold` * Reduces the amount of code in both stages. * `MemoryDescriptor` is no longer an empty struct, and now contains the cuda stream and memory resource. * `DevMemInfo` now holds a `MemoryDescriptor` and a `void*` no longer requiring access to the `rmm::device_buffer` * `MatxUtil::create_seg_ids` now receives a `MemoryDescriptor` Previously we would take a copy of the source tensor and source cudf column because `MatxUtil::threshold` wanted an `rmm::device_buffer`. fixes nv-morpheus#728 Authors: - David Gardner (https://github.com/dagardner-nv) - Michael Demoret (https://github.com/mdemoret-nv) Approvers: - Christopher Harris (https://github.com/cwharris) - Michael Demoret (https://github.com/mdemoret-nv) URL: nv-morpheus#730
- Loading branch information
1 parent
24bce9f
commit 043919a
Showing
30 changed files
with
762 additions
and
240 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
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 was deleted.
Oops, something went wrong.
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,56 @@ | ||
# ============================================================================= | ||
# Copyright (c) 2020-2023, NVIDIA CORPORATION. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | ||
# in compliance with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software distributed under the License | ||
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | ||
# or implied. See the License for the specific language governing permissions and limitations under | ||
# the License. | ||
# ============================================================================= | ||
|
||
list(APPEND CMAKE_MESSAGE_CONTEXT "morpheus_utils") | ||
|
||
# find_package(pybind11 REQUIRED) | ||
|
||
|
||
add_library(morpheus_utils | ||
SHARED | ||
${MORPHEUS_LIB_ROOT}/src/objects/table_info_data.cpp | ||
) | ||
|
||
target_include_directories(morpheus_utils | ||
PUBLIC | ||
"${MORPHEUS_LIB_ROOT}/include" | ||
) | ||
|
||
target_link_libraries(morpheus_utils | ||
PUBLIC | ||
cudf::cudf | ||
PRIVATE | ||
glog::glog | ||
) | ||
|
||
# set_target_properties( | ||
# morpheus_utils | ||
# PROPERTIES | ||
# CUDA_STANDARD 17 | ||
# CUDA_STANDARD_REQUIRED ON | ||
# ) | ||
|
||
install( | ||
TARGETS | ||
morpheus_utils | ||
EXPORT | ||
${PROJECT_NAME}-exports | ||
COMPONENT Wheel | ||
) | ||
|
||
if (MORPHEUS_PYTHON_INPLACE_BUILD) | ||
morpheus_utils_inplace_build_copy(morpheus_utils ${MORPHEUS_LIB_ROOT}) | ||
endif() | ||
|
||
list(POP_BACK CMAKE_MESSAGE_CONTEXT) |
Oops, something went wrong.