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

Enable build with statically linked nvimgcodec + hard dependency for dynamic linking #5324

Merged
merged 7 commits into from Feb 21, 2024

Conversation

jantonguirao
Copy link
Contributor

@jantonguirao jantonguirao commented Feb 15, 2024

Category:

New feature (non-breaking change which adds functionality)

Description:

Enables WITH_DYNAMIC_NVIMGCODEC=OFF build, which is used in Jetson build

Additional information:

Affected modules and functionalities:

Build system

Key points relevant for the review:

Tests:

  • Existing tests apply
  • New tests added
    • Python tests
    • GTests
    • Benchmark
    • Other
  • N/A

Checklist

Documentation

  • Existing documentation applies
  • Documentation updated
    • Docstring
    • Doxygen
    • RST
    • Jupyter
    • Other
  • N/A

DALI team only

Requirements

  • Implements new requirements
  • Affects existing requirements
  • N/A

REQ IDs: N/A

JIRA TASK: N/A

@jantonguirao jantonguirao force-pushed the dynamic_nvimgcodec_off branch 5 times, most recently from 9784200 to 17f2a1c Compare February 16, 2024 11:56
@jantonguirao jantonguirao changed the title Dynamic nvimgcodec off Enable build with statically linked nvimgcodec Feb 16, 2024
@jantonguirao jantonguirao marked this pull request as ready for review February 16, 2024 12:02
@jantonguirao jantonguirao force-pushed the dynamic_nvimgcodec_off branch 2 times, most recently from 7b068df to 1e22517 Compare February 16, 2024 16:05
…pendency on python package

Signed-off-by: Joaquin Anton <janton@nvidia.com>
@dali-automaton
Copy link
Collaborator

CI MESSAGE: [12921457]: BUILD STARTED

@jantonguirao jantonguirao changed the title Enable build with statically linked nvimgcodec Enable build with statically linked nvimgcodec + hard dependency for dynamic linking Feb 19, 2024
@dali-automaton
Copy link
Collaborator

CI MESSAGE: [12923923]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [12923923]: BUILD FAILED

@jantonguirao
Copy link
Contributor Author

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [12925672]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [12925672]: BUILD PASSED

@NVIDIA NVIDIA deleted a comment from dali-automaton Feb 20, 2024
Signed-off-by: Joaquin Anton <janton@nvidia.com>
@dali-automaton
Copy link
Collaborator

CI MESSAGE: [12955333]: BUILD STARTED

Signed-off-by: Joaquin Anton <janton@nvidia.com>
@dali-automaton
Copy link
Collaborator

CI MESSAGE: [12955481]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [12955481]: BUILD FAILED

Signed-off-by: Joaquin Anton <janton@nvidia.com>
Signed-off-by: Joaquin Anton <janton@nvidia.com>
@@ -144,6 +144,5 @@ def check_nvimgcodec():
"DALI's experimental image decoder functionality now requires NVIDIA nvImageCodec "
"library to run. You need to install it separately. "
"See https://developer.nvidia.com/nvimgcodec-downloads or simply do "
"`pip install nvidia-nvimgcodec-cu${CUDA_MAJOR_VERSION}` where CUDA_MAJOR_VERSION "
"is your CUDA major version (e.g. 12)."
f"`pip install nvidia-nvimgcodec-cu${__cuda_version__[:2]}`"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -29,12 +29,6 @@
#include "dali/kernels/common/copy.h"
#include "dali/operators/decoder/image/image_factory.h"

#if WITH_DYNAMIC_NVJPEG_ENABLED
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why changing that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had some issues saying that the function was missing during linking. I ended up moving this to a single cc file

Signed-off-by: Joaquin Anton <janton@nvidia.com>
Signed-off-by: Joaquin Anton <janton@nvidia.com>
@dali-automaton
Copy link
Collaborator

CI MESSAGE: [12971329]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [12971329]: BUILD PASSED

@jantonguirao jantonguirao merged commit 30d2a0b into NVIDIA:main Feb 21, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants