{"id":27099528,"url":"https://github.com/puzzlef/vector-multiplication-cuda","last_synced_at":"2026-04-30T15:32:11.091Z","repository":{"id":109078772,"uuid":"375073607","full_name":"puzzlef/vector-multiplication-cuda","owner":"puzzlef","description":"Comparing approaches for CUDA-based vector multiplication.","archived":false,"fork":false,"pushed_at":"2025-04-08T18:00:13.000Z","size":223,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-05T15:28:36.446Z","etag":null,"topics":["algorithm","cuda","map","multiply","operation","pagerank","primitive"],"latest_commit_sha":null,"homepage":"https://gist.github.com/wolfram77/4ef16ab9699ac03a617b8731dd240e1f","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/puzzlef.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-08T16:20:25.000Z","updated_at":"2025-04-08T18:00:17.000Z","dependencies_parsed_at":"2023-04-21T13:55:07.304Z","dependency_job_id":null,"html_url":"https://github.com/puzzlef/vector-multiplication-cuda","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":"puzzlef/vector-multiplication-openmp","purl":"pkg:github/puzzlef/vector-multiplication-cuda","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puzzlef%2Fvector-multiplication-cuda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puzzlef%2Fvector-multiplication-cuda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puzzlef%2Fvector-multiplication-cuda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puzzlef%2Fvector-multiplication-cuda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/puzzlef","download_url":"https://codeload.github.com/puzzlef/vector-multiplication-cuda/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puzzlef%2Fvector-multiplication-cuda/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32469344,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["algorithm","cuda","map","multiply","operation","pagerank","primitive"],"created_at":"2025-04-06T12:35:59.866Z","updated_at":"2026-04-30T15:32:11.087Z","avatar_url":"https://github.com/puzzlef.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"Comparing approaches for *CUDA-based* **vector multiplication**.\n\nIn each of the experiments given below, we multiply two floating-point vectors\n`x` and `y`, with number of **elements** from `10^6` to `10^9` using OpenMP.\nEach element count is attempted with various approaches, running each approach 5\ntimes to get a good time measure. Multiplication here represents any\nmemory-aligned independent operation, or a `map()` operation.\n\n\u003cbr\u003e\n\n\n### Adjusting Launch config\n\nIn this experiment ([adjust-launch]), we multiply two floating-point vectors `x`\nand `y` using CUDA. Each element count is attempted with various **CUDA launch**\n**configs**. Results indicate that a **grid_limit** of `16384/32768`, and a\n**block_size** of `128/256` to be suitable for both **float** and **double**.\nUsing a **grid_limit** of `MAX` and a **block_size** of `256` could be a decent\nchoice.\n\n[adjust-launch]: https://github.com/puzzlef/vector-multiplication-cuda/tree/adjust-launch\n\n\u003cbr\u003e\n\n\n### Adjusting Thread duty\n\nIn this experiment ([adjust-duty]), we compare various *per-thread duty numbers*\nfor CUDA-based vector multiplication. Each element count is attempted with\nvarious CUDA launch configs and per-thread duties. Results indicate no\nsignificant difference between [adjust-launch] approach, and this one.\n\n[adjust-duty]: https://github.com/puzzlef/vector-multiplication-cuda/tree/adjust-duty\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n\n## References\n\n- [CUDA by Example :: Jason Sanders, Edward Kandrot](https://www.slideshare.net/SubhajitSahu/cuda-by-example-notes)\n- [Git pulling a branch from another repository?](https://stackoverflow.com/a/46289324/1413259)\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n\n[![](https://i.imgur.com/azEBS7Y.png)](https://www.youtube.com/watch?v=vTdodyhhjww)\n[![ORG](https://img.shields.io/badge/org-puzzlef-green?logo=Org)](https://puzzlef.github.io)\n[![DOI](https://zenodo.org/badge/375073607.svg)](https://zenodo.org/badge/latestdoi/375073607)\n![](https://ga-beacon.deno.dev/G-KD28SG54JQ:hbAybl6nQFOtmVxW4if3xw/github.com/puzzlef/vector-multiplication-cuda)\n\n[Prof. Dip Sankar Banerjee]: https://sites.google.com/site/dipsankarban/\n[Prof. Kishore Kothapalli]: https://faculty.iiit.ac.in/~kkishore/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpuzzlef%2Fvector-multiplication-cuda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpuzzlef%2Fvector-multiplication-cuda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpuzzlef%2Fvector-multiplication-cuda/lists"}