{"id":23207936,"url":"https://github.com/pkestene/cuda-proj-tmpl","last_synced_at":"2025-07-29T22:38:34.030Z","repository":{"id":86494613,"uuid":"218288016","full_name":"pkestene/cuda-proj-tmpl","owner":"pkestene","description":"A minimal cmake based project skeleton for developping a CUDA application","archived":false,"fork":false,"pushed_at":"2024-01-20T23:22:21.000Z","size":42,"stargazers_count":17,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-24T08:47:17.505Z","etag":null,"topics":["cea","cmake","cuda","gpu","gpu-computing","parallel-computing","parallel-programming","template"],"latest_commit_sha":null,"homepage":"","language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pkestene.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}},"created_at":"2019-10-29T13:00:29.000Z","updated_at":"2025-04-19T23:35:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"b5e127fc-d34e-4144-9bf6-bd214e3a1af0","html_url":"https://github.com/pkestene/cuda-proj-tmpl","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/pkestene/cuda-proj-tmpl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkestene%2Fcuda-proj-tmpl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkestene%2Fcuda-proj-tmpl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkestene%2Fcuda-proj-tmpl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkestene%2Fcuda-proj-tmpl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pkestene","download_url":"https://codeload.github.com/pkestene/cuda-proj-tmpl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkestene%2Fcuda-proj-tmpl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267772851,"owners_count":24142095,"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-07-29T02:00:12.549Z","response_time":2574,"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":["cea","cmake","cuda","gpu","gpu-computing","parallel-computing","parallel-programming","template"],"created_at":"2024-12-18T17:26:38.644Z","updated_at":"2025-07-29T22:38:34.008Z","avatar_url":"https://github.com/pkestene.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cuda-proj-tmpl\n\nA minimal cmake based project skeleton for developping a CUDA application\n\n## Download this skeleton\n\n```bash\ngit clone --recursive git@github.com:pkestene/cuda-proj-tmpl.git\n```\n\n## Modern CMake and CUDA\n\nSee https://github.com/CLIUtils/modern_cmake\n\n## Requirements\n\n- cmake version \u003e= 3.18 (when using nvcc)\n- cmake version \u003e= 3.22 (when using nvc++/nvhpc compiler)\n- cuda toolkit\n\n## How to build with nvcc ?\n\n```bash\n# set default CUDA flags passed to nvcc (Nvidia compiler wrapper)\n# at least one hardware architecture flags\nexport CUDAFLAGS=\"-arch=sm_75 --expt-extended-lambda\"\nmkdir build\ncd build\ncmake ..\nmake\n# then you can run the application\n./src/saxpy_cuda\n```\n\nIf you use cmake version \u003e= 3.18, here is a slightly updated version using `CMAKE_CUDA_ARCHITECTURE`\nto pass information about actual GPU hardware target architecture:\n\n```bash\n# set default CUDA flags passed to nvcc (Nvidia compiler wrapper)\n# at least one hardware architecture flags\nexport CUDAFLAGS=\"--expt-extended-lambda\"\nmkdir build\ncd build\ncmake -DCMAKE_CUDA_ARCHITECTURES=\"75\" ..\nmake\n# then you can run the application\n./src/saxpy_cuda\n```\n# How to build with nvc++ (from nvhpc) ?\n\n```bash\n# Warning, cmake 3.22.0 required\nexport CUDAFLAGS=\"--expt-extended-lambda\"\nexport CXX=nvc++\nmkdir build\ncd build\ncmake -DCMAKE_CUDA_HOST_COMPILER=nvc++ -DCMAKE_CUDA_ARCHITECTURES=\"75\" ..\nmake\n# then you can run the application\n./src/saxpy_cuda\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkestene%2Fcuda-proj-tmpl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpkestene%2Fcuda-proj-tmpl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkestene%2Fcuda-proj-tmpl/lists"}