{"id":20646831,"url":"https://github.com/abaksy/cuda-examples","last_synced_at":"2025-03-09T17:31:25.059Z","repository":{"id":68546567,"uuid":"294402726","full_name":"abaksy/cuda-examples","owner":"abaksy","description":"A repository of examples coded in CUDA C/C++","archived":false,"fork":false,"pushed_at":"2021-05-15T05:31:02.000Z","size":16,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-17T09:46:17.468Z","etag":null,"topics":["cuda"],"latest_commit_sha":null,"homepage":"","language":"Cuda","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/abaksy.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}},"created_at":"2020-09-10T12:26:51.000Z","updated_at":"2025-01-12T13:21:34.000Z","dependencies_parsed_at":"2023-05-10T20:00:47.411Z","dependency_job_id":null,"html_url":"https://github.com/abaksy/cuda-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abaksy%2Fcuda-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abaksy%2Fcuda-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abaksy%2Fcuda-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abaksy%2Fcuda-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abaksy","download_url":"https://codeload.github.com/abaksy/cuda-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242728676,"owners_count":20175935,"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":["cuda"],"created_at":"2024-11-16T16:27:57.748Z","updated_at":"2025-03-09T17:31:25.028Z","avatar_url":"https://github.com/abaksy.png","language":"Cuda","readme":"# cuda-examples\nA repository of examples coded in CUDA C++\nAll examples were compiled using NVCC version 10.1 on Linux v 5.4\n\n## Setup on Linux\n\n1) Install Nvidia drivers for the installed Nvidia GPU. On Ubuntu-based distributions this can be done from the Software \u0026 Updates application\nin the tab listed as \"Additional Drivers\" (make sure to install the **recommended** version of Nvidia drivers)\n\n2) After installing and restarting, verify that the drivers were installed by running \n```\nnvidia-smi\n```\nin a terminal window. The output should list the name of the installed card, along with some usage statistics \n\n3) Install the ```nvcc``` compiler using the package manager\n```\nsudo apt install nvidia-cuda-toolkit\n```\n\n4) Verify the installation using\n```\nnvcc -V\n```\nor \n```\nnvcc --version\n```\n\n## vecadd\n\nCUDA implementation of vector-vector addition, adding vectors of length N, using:\n* One thread per block, N blocks\n* N threads in one block, grid contains only one block\n* M threads in block, N/M blocks\n\n## matadd\n\nCUDA implementation of matrix-matrix addition, adding matrices of size M x N, using:\n* One thread per block, 2D grid of MxN blocks\n* MxN threads in one block, grid contains only one block\n\n## matmul\n\nCUDA implementation of matrix-matrix multiplication, with matrices of size MxN and PxQ (where N = P)\nImplementation using:\n* 2D grid of size MxQ blocks, with 1 thread in each block \n* 2D grid of size MxQ blocks, with N threads in each block and shared memory (block level)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabaksy%2Fcuda-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabaksy%2Fcuda-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabaksy%2Fcuda-examples/lists"}