Skip to content

Commit

Permalink
Fix MatX when building MRC and Morpheus in same environment. (#55)
Browse files Browse the repository at this point in the history
For unknown reasons, when building MRC and Morpheus within the same conda environment, MatX fails to see some c printf macros. Adding `__STDC_FORMAT_MACROS` fixes the issue, though I'm curious as to why this wasn't a problem before. @mdemoret-nv, is there a better way to fix this?

Contributes to nv-morpheus/Morpheus#704

Authors:
  - Christopher Harris (https://github.com/cwharris)

Approvers:
  - Michael Demoret (https://github.com/mdemoret-nv)

URL: #55
  • Loading branch information
cwharris authored Sep 11, 2023
1 parent 403ecdf commit 15894ac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/morpheus_utils/package_config/matx/Configure_matx.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ function(morpheus_utils_configure_matx)
"MATX_INSTALL ON"
)

# Explicitly set this compiletime definition because it is not implicitly set when building MRC
# and Morphues in the same conda environment For more details, see this github pr...
# https://github.com/nv-morpheus/utilities/pull/55
target_compile_definitions(matx INTERFACE __STDC_FORMAT_MACROS)

else()
message(SEND_ERROR
"Unable to add MatX dependency. CUDA Version must be greater than 11.5.
Expand Down

0 comments on commit 15894ac

Please sign in to comment.