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

Adding cuda-nvtx recipe #22052

Merged
merged 18 commits into from
Apr 18, 2023
Merged

Adding cuda-nvtx recipe #22052

merged 18 commits into from
Apr 18, 2023

Conversation

adibbley
Copy link
Contributor

@adibbley adibbley commented Feb 16, 2023

Checklist

  • Title of this PR is meaningful: e.g. "Adding my_nifty_package", not "updated meta.yaml".
  • License file is packaged (see here for an example).
  • Source is from official source.
  • Package does not vendor other packages. (If a package uses the source of another package, they should be separate packages or the licenses of all packages need to be packaged).
  • If static libraries are linked in, the license of the static library is packaged.
  • Package does not ship static libraries. If static libraries are needed, follow CFEP-18.
  • Build number is 0.
  • A tarball (url) rather than a repo (e.g. git_url) is used in your recipe (see here for more details).
  • GitHub users listed in the maintainer section have posted a comment confirming they are willing to be listed there.
  • When in trouble, please check our knowledge base documentation before pinging a team.

@conda-forge-webservices
Copy link

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipes/cuda-nvtx) and found it was in an excellent condition.

recipes/cuda-nvtx/meta.yaml Show resolved Hide resolved
recipes/cuda-nvtx/meta.yaml Outdated Show resolved Hide resolved
recipes/cuda-nvtx/meta.yaml Outdated Show resolved Hide resolved
adibbley and others added 2 commits March 15, 2023 17:01
Co-authored-by: Bradley Dice <bdice@bradleydice.com>
recipes/cuda-nvtx/meta.yaml Show resolved Hide resolved
recipes/cuda-nvtx/meta.yaml Outdated Show resolved Hide resolved
recipes/cuda-nvtx/meta.yaml Outdated Show resolved Hide resolved
recipes/cuda-nvtx/meta.yaml Outdated Show resolved Hide resolved
adibbley and others added 5 commits March 22, 2023 09:08
Co-authored-by: Bradley Dice <bdice@bradleydice.com>
- Add target_name
- Add arm-variant
- More explicit tests
- About section in every output
Copy link
Contributor

@bdice bdice left a comment

Choose a reason for hiding this comment

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

Recipe looks fine aside from minor suggestions on doc_url. I haven't checked the package contents yet.

recipes/cuda-nvtx/meta.yaml Outdated Show resolved Hide resolved
recipes/cuda-nvtx/meta.yaml Outdated Show resolved Hide resolved
recipes/cuda-nvtx/meta.yaml Outdated Show resolved Hide resolved
adibbley and others added 2 commits April 6, 2023 18:51
@jakirkham
Copy link
Member

Currently we have nvtx-c, which packages as similar library based on the NVTX repo's C source code.

This in turn is used by nvtx, Python bindings to the C library, which is based on this Python code.

With this PR, we would now have cuda-nvtx, which packages NVTX based on the CTK copy.

This situation is somewhat reminiscent of the CCCL situation we just worked through

Wonder if we should do something to...

  1. resolve conflicts
  2. disambiguate packages
  3. sunset unused components
  4. ?

Would be interested in hearing thoughts from folks here 🙂

@jakirkham
Copy link
Member

cc @shwina (who may also have thoughts on this)

@shwina
Copy link
Contributor

shwina commented Apr 7, 2023

We could change the nvtx Python package to depend on cuda-nvtx? (and do away with nvtx-c)

@bdice
Copy link
Contributor

bdice commented Apr 7, 2023

I support @shwina’s plan.

@jakirkham
Copy link
Member

Generally that seems reasonable. One suggestion would be to introduce a conflict in nvtx-c analogous to what we did for cub ( conda-forge/cub-feedstock#23 )

@adibbley adibbley marked this pull request as ready for review April 12, 2023 22:13
@jakirkham jakirkham requested a review from bdice April 13, 2023 07:31
Copy link
Contributor

@vyasr vyasr left a comment

Choose a reason for hiding this comment

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

One change request.

Also, do we need to make changes to nvtx-c before we merge this? CC @jakirkham

recipes/cuda-nvtx/bld.bat Outdated Show resolved Hide resolved
Copy link
Contributor

@vyasr vyasr left a comment

Choose a reason for hiding this comment

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

Approving assuming the nvtx-c conflict is addressed at some point.

@jakirkham jakirkham requested a review from kkraus14 April 15, 2023 00:22
@kkraus14
Copy link
Contributor

I think we need a repodata patch on nvtx-c to ensure these don't clobber each other and then we can maybe consider making it an alias?

Additionally, what is the relationship and versioning in relation to the GitHub repo https://github.com/NVIDIA/NVTX?

Copy link
Member

@jakirkham jakirkham left a comment

Choose a reason for hiding this comment

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

To avoid clobbering nvtx-c, suggesting that we place the contents here in targets on Windows as we did with cuda-cccl (for a similar reason)

recipes/cuda-nvtx/bld.bat Outdated Show resolved Hide resolved
recipes/cuda-nvtx/meta.yaml Outdated Show resolved Hide resolved
recipes/cuda-nvtx/meta.yaml Outdated Show resolved Hide resolved
adibbley and others added 2 commits April 17, 2023 16:48
Co-authored-by: jakirkham <jakirkham@gmail.com>
Copy link
Member

@jakirkham jakirkham left a comment

Choose a reason for hiding this comment

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

Noticed a clobbering issue regarding headers on Windows CI

In looking into this, it appears cuda-nvtx may not actually be needed on Windows since there are no .dlls in the redist or the package here and the headers are already in cuda-nvtx-dev

Suggesting we disable cuda-nvtx builds on Windows

recipes/cuda-nvtx/meta.yaml Show resolved Hide resolved
Copy link
Member

@jakirkham jakirkham left a comment

Choose a reason for hiding this comment

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

If we drop cuda-nvtx on Windows, there would be some follow up changes needed. Added those below

recipes/cuda-nvtx/meta.yaml Outdated Show resolved Hide resolved
recipes/cuda-nvtx/meta.yaml Outdated Show resolved Hide resolved
Comment on lines +39 to +41
files:
- lib/libnv*.so.* # [linux]
- targets/{{ target_name }}/lib/*.so.* # [linux]
Copy link
Member

Choose a reason for hiding this comment

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

Maybe this is a better approach for the clobbering issue on Windows?

Suggested change
files:
- lib/libnv*.so.* # [linux]
- targets/{{ target_name }}/lib/*.so.* # [linux]
files: [] # [win]
files: # [linux]
- lib/libnv*.so.* # [linux]
- targets/{{ target_name }}/lib/*.so.* # [linux]

@conda-forge-webservices
Copy link

Hi! This is the friendly automated conda-forge-linting service.

I wanted to let you know that I linted all conda-recipes in your PR (recipes/cuda-nvtx) and found some lint.

Here's what I've got...

For recipes/cuda-nvtx:

  • Selectors are suggested to take a <two spaces>#<one space>[<expression>] form. See lines [39]

@conda-forge-webservices
Copy link

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipes/cuda-nvtx) and found it was in an excellent condition.

@jakirkham
Copy link
Member

Resolved the Windows clobbering issues by dropping cuda-nvtx. That package was not needed on Windows anyways (no runtime libraries & headers in cuda-nvtx-dev).

@jakirkham jakirkham merged commit 1af4837 into conda-forge:main Apr 18, 2023
@jakirkham
Copy link
Member

Thanks all! 🙏

Let's follow up on anything else in the feedstock 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

6 participants