Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cuda-build-system-archive-import-examples
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
isgphys
cuda-build-system-archive-import-examples
Commits
44dfb51f
Commit
44dfb51f
authored
3 years ago
by
Kevin Mittman
Browse files
Options
Downloads
Patches
Plain Diff
Add README
Signed-off-by:
Kevin Mittman
<
kmittman@nvidia.com
>
parent
d501830b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+60
-0
60 additions, 0 deletions
README.md
with
60 additions
and
0 deletions
README.md
0 → 100644
+
60
−
0
View file @
44dfb51f
# build-system-archive-import-examples
[

](https://opensource.org/licenses/MIT-license)
[

](https://developercertificate.org)
## Overview
Examples for importing precompiled binary
`tarball`
and
`zip`
archives into various CI/CD build and packaging systems
## Redistrib JSON
Sample script for parsing
`redistrib_${label}.json`
manifests (
[
JSON schema
](
https://developer.download.nvidia.com/compute/redist/redistrib-v2.schema.json
)
).
-
Downloads each archive
-
Validates SHA256 checksums
-
Extracts archives
-
Flattens into a collapsed directory structure
### Usage
```
shell
usage: parse_redist.py
(
-u
URL |
[
-l
LABEL]
[
-p
PRODUCT]
)
[
-o
OUTPUT]
option filters:
[
--component
COMPONENT]
([
--os
OS]
[
--arch
ARCH]
)
option toggles:
[
--no-download
]
[
--no-checksum
]
[
--no-extract
]
[
--no-flatten
]
```
### Example
```
shell
python3 ./parse_redist.py
--product
cuda
--label
11.4.2
```
or equivalent
```
shell
python3 ./parse_redist.py
--url
https://developer.download.nvidia.com/compute/cuda/redist/redistrib_11.4.2.json
```
## CMake
### FindCUDAToolkit
See example
[
cmake/1_FindCUDAToolkit/
](
cmake/1_FindCUDAToolkit/
)
### ExternalProject
See example
[
cmake/2_ExternalProject/
](
cmake/2_ExternalProject/
)
## Bazel
### pkg_tar
See example
[
bazel/1_pkg_tar/
](
bazel/1_pkg_tar/
)
## Contributing
See
[
CONTRIBUTING.md
](
CONTRIBUTING.md
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment