{"id":17091431,"url":"https://github.com/jhurliman/jetson-crosscompile-template","last_synced_at":"2026-04-28T13:35:20.847Z","repository":{"id":214119775,"uuid":"735726245","full_name":"jhurliman/jetson-crosscompile-template","owner":"jhurliman","description":"A starting point for C++/CUDA cross-compilation and debugging for NVIDIA Jetson","archived":false,"fork":false,"pushed_at":"2024-07-24T00:22:11.000Z","size":139,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-23T16:32:56.356Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jhurliman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-26T01:05:01.000Z","updated_at":"2025-03-03T17:39:44.000Z","dependencies_parsed_at":"2025-01-28T22:39:41.203Z","dependency_job_id":null,"html_url":"https://github.com/jhurliman/jetson-crosscompile-template","commit_stats":null,"previous_names":["jhurliman/jetson-crosscompile-template"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/jhurliman/jetson-crosscompile-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhurliman%2Fjetson-crosscompile-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhurliman%2Fjetson-crosscompile-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhurliman%2Fjetson-crosscompile-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhurliman%2Fjetson-crosscompile-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jhurliman","download_url":"https://codeload.github.com/jhurliman/jetson-crosscompile-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhurliman%2Fjetson-crosscompile-template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262172631,"owners_count":23270063,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T13:58:38.933Z","updated_at":"2026-04-28T13:35:15.814Z","avatar_url":"https://github.com/jhurliman.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Remote C++ Development Template for NVIDIA Jetson - jetson-crosscompile-template\n\n\u003cimg src=\"./docs/jetson-crosscompile-logo.png\" width=\"200\" alt=\"Logo\" /\u003e\n\n## Introduction\n\nNVIDIA Jetson devices are great for edge computing, but the development experience of compiling and storing source code on device is not ideal. `jetson-crosscompile-template` simplifies the process of developing high-performance C++ applications for NVIDIA Jetson using clang and CMake in a Linux or WSL development environment with standardized tooling and workflows. A buffer abstraction API is provided that unifies various CUDA and NVMM memory models and provides Tegra, desktop CUDA, and CPU-only implementations to make your code write-once, run-anywhere. This template is designed to be a starting point for your next project, and includes the following features:\n\n## Features\n\n- **Cross-Compiling Support:** Don't waste time compiling on the Jetson. Build and deploy your application from your development machine.\n- **Multiple Deployment Targets:** Easily switch between CPU, CUDA, and Tegra targets.\n- **Remote Debugging:** Remote debugging with gdbserver and VSCode.\n- **Hardware Buffer Abstractions:** RAII wrappers for CUDA and NVMM buffers with Tegra, CUDA desktop, and CPU-only implementations for on and off-device testing.\n- **Modern C++ \u0026 CMake:** Utilizes recent standards in C++ and CMake for efficient development.\n- **Dependency Management:** Easily add and manage dependencies with CPM. Provided scripts fetch the required NVIDIA packages for cross-compiling.\n- **Testing:** Unit testing with Catch2 and CTest.\n- **Linter Support:** Automatic linting with clang-format, cmake-format, and clang-tidy.\n- **Static Analysis:** Static analysis with clang-tidy.\n- **Code Coverage:** Code coverage with llvm-cov and gcovr.\n- **Continuous Integration:** CI with GitHub Actions for automatic linting, building, testing, static analysis, and code coverage.\n\n|                | CPU | CUDA | NVMM |\n| -------------- | :-: | :--: | :--: |\n| GitHub Actions | ✅  |  ❌  |  ❌  |\n| Linux/WSL      | ✅  |  ✅  |  ❌  |\n| Jetson         | ✅  |  ✅  |  ✅  |\n\n_Supported backends for different deployment targets. GitHub Actions can be extended to support CUDA and Tegra targets with [Custom Runners](https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners)._\n\n## Getting Started\n\n1. Clone This Template: Use [this template](https://github.com/jhurliman/jetson-crosscompile-template) to create a new repository, then git clone the new repository to your machine.\n2. Set Up Your Environment: Follow the setup guide [here](docs/GettingStarted.md).\n3. Build and Run: Use the [Makefile](Makefile) to build and run the project, or use the [VSCode Tasks](.vscode/tasks.json) to build, run, and debug.\n\n## How to Contribute\n\nContributions of all kinds are welcome! Use GitHub issues and pull requests for bug reports, feature requests, and code contributions.\n\n## License\n\nThis project is open source and available under the [MIT License](LICENSE). Developed by [John Hurliman](https://jhurliman.org/).\n\n## TODO\n\n- [x] ctest unit test\n- [x] CPM dependency management\n- [x] Add support for more Jetson devices\n- [ ] fix \u003c\u003c\u003c...\u003e\u003e\u003e clang warning for CUDA kernel launch\n- [ ] C++23\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhurliman%2Fjetson-crosscompile-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjhurliman%2Fjetson-crosscompile-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhurliman%2Fjetson-crosscompile-template/lists"}