{"id":20523828,"url":"https://github.com/christian-rauch/torch_cpp","last_synced_at":"2025-09-10T05:44:54.261Z","repository":{"id":94345619,"uuid":"277536920","full_name":"christian-rauch/torch_cpp","owner":"christian-rauch","description":"CMake wrapper for installing LibTorch (PyTorch C++ API)","archived":false,"fork":false,"pushed_at":"2025-06-17T09:05:20.000Z","size":9,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-17T09:47:43.957Z","etag":null,"topics":["cmake","pytorch"],"latest_commit_sha":null,"homepage":"https://pytorch.org/cppdocs/","language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/christian-rauch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2020-07-06T12:34:02.000Z","updated_at":"2025-06-17T08:51:58.000Z","dependencies_parsed_at":"2025-04-14T03:32:26.805Z","dependency_job_id":"e09b2c7a-e1b5-4f64-a5b4-f538c13c7f51","html_url":"https://github.com/christian-rauch/torch_cpp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/christian-rauch/torch_cpp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christian-rauch%2Ftorch_cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christian-rauch%2Ftorch_cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christian-rauch%2Ftorch_cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christian-rauch%2Ftorch_cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/christian-rauch","download_url":"https://codeload.github.com/christian-rauch/torch_cpp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christian-rauch%2Ftorch_cpp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274418184,"owners_count":25281262,"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","status":"online","status_checked_at":"2025-09-10T02:00:12.551Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cmake","pytorch"],"created_at":"2024-11-15T22:45:45.142Z","updated_at":"2025-09-10T05:44:54.205Z","avatar_url":"https://github.com/christian-rauch.png","language":"CMake","readme":"# LibTorch install script for CMake\n\nThis CMake project is basically an install script for LibTorch (PyTorch C++ API). It downloads the binary archieve and installs headers, libraries and CMake configurations files to the corresponding `INCLUDEDIR`, `LIBDIR` and `DATADIR` directories.\n\nThe package can be used as part of a pure CMake catkin or colcon workspace by including:\n```XML\n  \u003cbuildtool_depend\u003ecmake\u003c/buildtool_depend\u003e\n  \u003cdepend\u003etorch_cpp\u003c/depend\u003e\n  \u003cexport\u003e\n    \u003cbuild_type\u003ecmake\u003c/build_type\u003e\n  \u003c/export\u003e\n```\nin your `package.xml`. The relevant files will then be installed within the workspace target folder (`install` or `devel`).\n\nUsage in a CMake project:\n```CMake\nfind_package(Torch REQUIRED)\ntarget_link_libraries(${PROJECT_NAME} PUBLIC torch)\nset_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 14)\ntarget_link_options(${PROJECT_NAME} PUBLIC ${TORCH_CXX_FLAGS})\n```\n\nIf you get the error `No CMAKE_CUDA_COMPILER could be found.`, then the CUDA compiler `nvcc` cannot be found in the default search paths (`$PATH`). In this case, you have to set the path to `nvcc` manually:\n```sh\nexport CUDACXX=/usr/local/cuda/bin/nvcc\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristian-rauch%2Ftorch_cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchristian-rauch%2Ftorch_cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristian-rauch%2Ftorch_cpp/lists"}