{"id":13809601,"url":"https://github.com/Bruce-Lee-LY/matrix_multiply","last_synced_at":"2025-05-14T08:32:48.201Z","repository":{"id":49979363,"uuid":"499104480","full_name":"Bruce-Lee-LY/matrix_multiply","owner":"Bruce-Lee-LY","description":"Several common methods of matrix multiplication are implemented on CPU and Nvidia GPU using C++11 and CUDA.","archived":false,"fork":false,"pushed_at":"2023-02-08T15:23:45.000Z","size":13,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T23:55:25.018Z","etag":null,"topics":["coppersmith-winograd","cpp11","cpu","cublas","cuda","kahan","matrix-multiply","naive","nvidia","reordering","shared-memory","strassen","tiling"],"latest_commit_sha":null,"homepage":"","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/Bruce-Lee-LY.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}},"created_at":"2022-06-02T11:17:19.000Z","updated_at":"2024-08-04T22:58:04.000Z","dependencies_parsed_at":"2024-02-24T09:12:22.561Z","dependency_job_id":"8c08a807-a962-44fd-8444-845d61a6bf6d","html_url":"https://github.com/Bruce-Lee-LY/matrix_multiply","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/Bruce-Lee-LY%2Fmatrix_multiply","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bruce-Lee-LY%2Fmatrix_multiply/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bruce-Lee-LY%2Fmatrix_multiply/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bruce-Lee-LY%2Fmatrix_multiply/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bruce-Lee-LY","download_url":"https://codeload.github.com/Bruce-Lee-LY/matrix_multiply/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254104866,"owners_count":22015554,"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":["coppersmith-winograd","cpp11","cpu","cublas","cuda","kahan","matrix-multiply","naive","nvidia","reordering","shared-memory","strassen","tiling"],"created_at":"2024-08-04T02:00:32.178Z","updated_at":"2025-05-14T08:32:43.194Z","avatar_url":"https://github.com/Bruce-Lee-LY.png","language":"C++","funding_links":[],"categories":["Learning Resources"],"sub_categories":[],"readme":"# Matrix Multiply\nSeveral common methods of matrix multiplication are implemented on CPU and Nvidia GPU using C++11 and CUDA. The performance benefits of each optimization method were simply tested.\n\n## CPU\n- naive\n- reordering\n- tiling\n- strassen\n- coppersmith-winograd\n\n## Nvidia GPU\n- cublas\n- naive\n- kahan\n- shared_memory\n\n# Compile\n## Environment\n- OS: Linux\n- Cmake Version: \u003e= 3.8\n- GCC Version: \u003e= 4.8\n- CUDA Version: 11.4 (best)\n- CUDA Driver Version: 470.129.06 (best)\n\n## Clone\n```\ngit clone https://github.com/Bruce-Lee-LY/matrix_multiply.git\n```\n\n## Build\n```\ncd matrix_multiply\n./build.sh -t Release -b OFF\n./build.sh -t Debug -b ON\n```\n\n# Run Sample\n```\n./run_sample.sh\n```\n\n# Performance\n- OS: Ubuntu 20.04.4\n- CPU: i5-9400F\n- GPU: NVIDIA GeForce GTX 1080 Ti\n- CUDA Version: 11.4\n- CUDA Driver Version: 470.129.06\n- Matrix (float): A (512 * 512) * B (512 * 512) = C (512 * 512)\n\n## CPU\n|Method|Cost / ms|\n|:-:|:-:|\n|naive|1238.647|\n|reordering|984.445|\n|tiling|1000.095|\n|strassen|57429.407|\n|coppersmith-winograd|77668.238|\n\n## Nvidia GPU\n|Method|Cost / ms|\n|:-:|:-:|\n|cublas|0.100|\n|naive|0.613|\n|kahan|0.616|\n|shared_memory|0.153|\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBruce-Lee-LY%2Fmatrix_multiply","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBruce-Lee-LY%2Fmatrix_multiply","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBruce-Lee-LY%2Fmatrix_multiply/lists"}