-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Adding cuda-cuobjdump, cuda-cuxxfilt, and cuda-nvprune recipes #21878
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
3b02e8d
Adding cuda-cccl, cuda-cuobjdump, cuda-cuxxfilt, cuda-nvprune, and cu…
adibbley cab98b3
Fix order for linter
adibbley be4498b
Lib directory should only contain cmake
adibbley c84a90b
Update bld.bat
adibbley db08146
Moving nvrtc to its own PR
adibbley ef04fae
Splitting cuda-cccl into separate PR
adibbley d3cd57e
Apply suggestions from code review
adibbley c1e2031
Apply suggestions from code review
adibbley 187d7a5
Merge branch 'main' into cuda-compilers
jakirkham 95b44b7
Clean up build scripts and cuda-version pinning
adibbley 6fa58a2
Merge branch 'main' into cuda-compilers
adibbley 0db966b
Whitelist nvcuda.dll, display driver file
adibbley d115285
Whitelist not needed here
adibbley File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,3 @@ | ||
| if not exist %PREFIX% mkdir %PREFIX% | ||
|
|
||
| move bin\* %LIBRARY_BIN% |
This file contains hidden or 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,17 @@ | ||
| #!/bin/bash | ||
|
|
||
| # Install to conda style directories | ||
| [[ -d lib64 ]] && mv lib64 lib | ||
|
|
||
| [[ ${target_platform} == "linux-64" ]] && targetsDir="targets/x86_64-linux" | ||
| [[ ${target_platform} == "linux-ppc64le" ]] && targetsDir="targets/ppc64le-linux" | ||
| [[ ${target_platform} == "linux-aarch64" ]] && targetsDir="targets/sbsa-linux" | ||
|
|
||
| for i in `ls`; do | ||
| [[ $i == "build_env_setup.sh" ]] && continue | ||
| [[ $i == "conda_build.sh" ]] && continue | ||
| [[ $i == "metadata_conda_debug.yaml" ]] && continue | ||
|
|
||
| # bin installed in PREFIX | ||
| cp -rv $i ${PREFIX} | ||
| done |
This file contains hidden or 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,53 @@ | ||
| {% set name = "cuda-cuobjdump" %} | ||
| {% set version = "12.0.76" %} | ||
| {% set cuda_version = "12.0" %} | ||
| {% set platform = "linux-x86_64" %} # [linux64] | ||
| {% set platform = "linux-ppc64le" %} # [ppc64le] | ||
| {% set platform = "linux-sbsa" %} # [aarch64] | ||
| {% set platform = "windows-x86_64" %} # [win] | ||
| {% set extension = "tar.xz" %} # [not win] | ||
| {% set extension = "zip" %} # [win] | ||
|
|
||
| package: | ||
| name: {{ name|lower }} | ||
| version: {{ version }} | ||
|
|
||
| source: | ||
| url: https://developer.download.nvidia.com/compute/cuda/redist/cuda_cuobjdump/{{ platform }}/cuda_cuobjdump-{{ platform }}-{{ version }}-archive.{{ extension }} | ||
| sha256: c2b627534d8eedff86b50bbf13c043a3c9a01a048fa6aa40678be5548c96d2a9 # [linux64] | ||
| sha256: 6b57dcc8a448068f0bd6a3c109f7dfbf96725f60c260a122a2c818f9cbe5b81c # [ppc64le] | ||
| sha256: 30744ab5f7ae24d2265bd5167d750907abb2d2f6f62922aeab1fac5aa4030eca # [aarch64] | ||
| sha256: 00688ad84b04df7e6a39e6d4d5fb29fda42d36bdf7e3a432c332ebafbed6fb90 # [win] | ||
|
|
||
| build: | ||
| number: 0 | ||
| skip: true # [osx] | ||
|
|
||
| requirements: | ||
| build: | ||
| - {{ compiler("c") }} | ||
| - {{ compiler("cxx") }} | ||
adibbley marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| host: | ||
| - cuda-version {{ cuda_version }} | ||
| run: | ||
| - {{ pin_compatible("cuda-version", max_pin="x.x") }} | ||
|
|
||
| test: | ||
| commands: | ||
| - test -f $PREFIX/bin/cuobjdump # [linux] | ||
| - if not exist %LIBRARY_BIN%\\cuobjdump.exe exit 1 # [win] | ||
|
|
||
| about: | ||
| home: https://developer.nvidia.com/cuda-toolkit | ||
| license_file: LICENSE | ||
| license: LicenseRef-NVIDIA-End-User-License-Agreement | ||
| license_url: https://docs.nvidia.com/cuda/eula/index.html | ||
| summary: Extracts information from CUDA binary files | ||
| description: | | ||
| Extracts information from CUDA binary files and presents them in human | ||
| readable format. | ||
| doc_url: https://docs.nvidia.com/cuda/index.html | ||
|
|
||
| extra: | ||
| recipe-maintainers: | ||
| - adibbley | ||
This file contains hidden or 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,5 @@ | ||
| if not exist %PREFIX% mkdir %PREFIX% | ||
|
|
||
| move lib\x64\* %LIBRARY_LIB% | ||
| move bin\* %LIBRARY_BIN% | ||
| move include\* %LIBRARY_INC% |
This file contains hidden or 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,23 @@ | ||
| #!/bin/bash | ||
|
|
||
| # Install to conda style directories | ||
| [[ -d lib64 ]] && mv lib64 lib | ||
|
|
||
| [[ ${target_platform} == "linux-64" ]] && targetsDir="targets/x86_64-linux" | ||
| [[ ${target_platform} == "linux-ppc64le" ]] && targetsDir="targets/ppc64le-linux" | ||
| [[ ${target_platform} == "linux-aarch64" ]] && targetsDir="targets/sbsa-linux" | ||
|
|
||
| for i in `ls`; do | ||
| [[ $i == "build_env_setup.sh" ]] && continue | ||
| [[ $i == "conda_build.sh" ]] && continue | ||
| [[ $i == "metadata_conda_debug.yaml" ]] && continue | ||
| if [[ $i == "lib" ]] || [[ $i == "include" ]]; then | ||
| # Headers and libraries are installed to targetsDir | ||
| mkdir -p ${PREFIX}/${targetsDir} | ||
| mkdir -p ${PREFIX}/$i | ||
| cp -rv $i ${PREFIX}/${targetsDir} | ||
| else | ||
| # bin installed in PREFIX | ||
| cp -rv $i ${PREFIX} | ||
| fi | ||
| done |
This file contains hidden or 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,63 @@ | ||
| {% set name = "cuda-cuxxfilt" %} | ||
| {% set version = "12.0.76" %} | ||
adibbley marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| {% set cuda_version = "12.0" %} | ||
| {% set platform = "linux-x86_64" %} # [linux64] | ||
| {% set platform = "linux-ppc64le" %} # [ppc64le] | ||
| {% set platform = "linux-sbsa" %} # [aarch64] | ||
| {% set platform = "windows-x86_64" %} # [win] | ||
| {% set target_name = "x86_64-linux" %} # [linux64] | ||
| {% set target_name = "ppc64le-linux" %} # [ppc64le] | ||
| {% set target_name = "sbsa-linux" %} # [aarch64] | ||
| {% set target_name = "x64" %} # [win] | ||
| {% set extension = "tar.xz" %} # [not win] | ||
| {% set extension = "zip" %} # [win] | ||
|
|
||
| package: | ||
| name: {{ name|lower }} | ||
| version: {{ version }} | ||
|
|
||
| source: | ||
| url: https://developer.download.nvidia.com/compute/cuda/redist/cuda_cuxxfilt/{{ platform }}/cuda_cuxxfilt-{{ platform }}-{{ version }}-archive.{{ extension }} | ||
| sha256: 363502e0743a21f487bac7ebd63ef8dba6cf11a2b16cd82149e0cecc83c24c34 # [linux64] | ||
| sha256: bfd38cadc3066cf28366722e15bd85c298cd7f4ebe4c7852a4149ba2a6b84d2d # [ppc64le] | ||
| sha256: 2f992cc3dabce111cb93caabb599caa868797fee6b37ff53676fadce36701e6f # [aarch64] | ||
| sha256: 0d6276d4a49e7e394b7f8ee150bb6d538297334c7d6b3d1266fa29311ba933f4 # [win] | ||
|
|
||
| build: | ||
| number: 0 | ||
| skip: true # [osx] | ||
|
|
||
| requirements: | ||
| build: | ||
| - {{ compiler("c") }} | ||
| - {{ compiler("cxx") }} | ||
adibbley marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| host: | ||
| - cuda-version {{ cuda_version }} | ||
| run: | ||
| - {{ pin_compatible("cuda-version", max_pin="x.x") }} | ||
|
|
||
| test: | ||
| commands: | ||
| - test -f $PREFIX/bin/cu++filt # [linux] | ||
| - test -f $PREFIX/targets/{{ target_name }}/include/nv_decode.h # [linux] | ||
| - test -f $PREFIX/targets/{{ target_name }}/lib/libcufilt.a # [linux] | ||
| - if not exist %LIBRARY_BIN%\\cu++filt.exe exit 1 # [win] | ||
| - if not exist %LIBRARY_INC%\\nv_decode.h exit 1 # [win] | ||
| - if not exist %LIBRARY_LIB%\\cufilt.lib exit 1 # [win] | ||
|
|
||
| about: | ||
| home: https://developer.nvidia.com/cuda-toolkit | ||
| license_file: LICENSE | ||
| license: LicenseRef-NVIDIA-End-User-License-Agreement | ||
| license_url: https://docs.nvidia.com/cuda/eula/index.html | ||
| summary: cu++filt decodes low-level identifiers that have been mangled by CUDA C++ | ||
| description: | | ||
| cu++filt decodes (demangles) low-level identifiers that have been mangled by | ||
| CUDA C++ into user readable names. For every input alphanumeric word, the | ||
| output of cu++filt is either the demangled name if the name decodes to a CUDA | ||
| C++ name, or the original name itself. | ||
| doc_url: https://docs.nvidia.com/cuda/index.html | ||
|
|
||
| extra: | ||
| recipe-maintainers: | ||
| - adibbley | ||
This file contains hidden or 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,3 @@ | ||
| if not exist %PREFIX% mkdir %PREFIX% | ||
|
|
||
| move bin\* %LIBRARY_BIN% |
This file contains hidden or 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,17 @@ | ||
| #!/bin/bash | ||
|
|
||
| # Install to conda style directories | ||
| [[ -d lib64 ]] && mv lib64 lib | ||
|
|
||
| [[ ${target_platform} == "linux-64" ]] && targetsDir="targets/x86_64-linux" | ||
| [[ ${target_platform} == "linux-ppc64le" ]] && targetsDir="targets/ppc64le-linux" | ||
| [[ ${target_platform} == "linux-aarch64" ]] && targetsDir="targets/sbsa-linux" | ||
|
|
||
| for i in `ls`; do | ||
| [[ $i == "build_env_setup.sh" ]] && continue | ||
| [[ $i == "conda_build.sh" ]] && continue | ||
| [[ $i == "metadata_conda_debug.yaml" ]] && continue | ||
|
|
||
| # bin installed in PREFIX | ||
| cp -rv $i ${PREFIX} | ||
| done |
This file contains hidden or 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,53 @@ | ||
| {% set name = "cuda-nvprune" %} | ||
| {% set version = "12.0.76" %} | ||
adibbley marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| {% set cuda_version = "12.0" %} | ||
| {% set platform = "linux-x86_64" %} # [linux64] | ||
| {% set platform = "linux-ppc64le" %} # [ppc64le] | ||
| {% set platform = "linux-sbsa" %} # [aarch64] | ||
| {% set platform = "windows-x86_64" %} # [win] | ||
| {% set extension = "tar.xz" %} # [not win] | ||
| {% set extension = "zip" %} # [win] | ||
|
|
||
| package: | ||
| name: {{ name|lower }} | ||
| version: {{ version }} | ||
|
|
||
| source: | ||
| url: https://developer.download.nvidia.com/compute/cuda/redist/cuda_nvprune/{{ platform }}/cuda_nvprune-{{ platform }}-{{ version }}-archive.{{ extension }} | ||
| sha256: 51888da85f2a77b09d8e430c764cc5ef06d178dc6acec129e88130e6cb232978 # [linux64] | ||
| sha256: b1f7f8eeccaa9c0bf98fd4b31f182b7677ab692da3e9010d43a9157d18898e50 # [ppc64le] | ||
| sha256: 39eff5df71d45112b606f0f2d03b6be7981c147b941ce7b3f530d24e07c7bc77 # [aarch64] | ||
| sha256: 38860f15bda7bceaf6aff5d088b6cc50260d16036c4c30ec7f3a9d0c3edc3cba # [win] | ||
|
|
||
| build: | ||
| number: 0 | ||
| skip: true # [osx] | ||
|
|
||
| requirements: | ||
| build: | ||
| - {{ compiler("c") }} | ||
| - {{ compiler("cxx") }} | ||
adibbley marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| host: | ||
| - cuda-version {{ cuda_version }} | ||
| run: | ||
| - {{ pin_compatible("cuda-version", max_pin="x.x") }} | ||
|
|
||
| test: | ||
| commands: | ||
| - test -f $PREFIX/bin/nvprune # [unix] | ||
| - if not exist %LIBRARY_BIN%\\nvprune.exe exit 1 # [win] | ||
|
|
||
| about: | ||
| home: https://developer.nvidia.com/cuda-toolkit | ||
| license_file: LICENSE | ||
| license: LicenseRef-NVIDIA-End-User-License-Agreement | ||
| license_url: https://docs.nvidia.com/cuda/eula/index.html | ||
| summary: Prunes host object files and libraries to only contain device code | ||
| description: | | ||
| Prunes host object files and libraries to only contain device code for the | ||
| specified targets. | ||
| doc_url: https://docs.nvidia.com/cuda/index.html | ||
|
|
||
| extra: | ||
| recipe-maintainers: | ||
| - adibbley | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.