{"id":13568602,"url":"https://github.com/williamfgc/simple-gemm","last_synced_at":"2025-07-07T05:35:33.224Z","repository":{"id":40424137,"uuid":"479452559","full_name":"williamfgc/simple-gemm","owner":"williamfgc","description":"Collection of simple General Matrix Multiplication - GEMM implementations","archived":false,"fork":false,"pushed_at":"2024-02-26T12:48:43.000Z","size":152,"stargazers_count":13,"open_issues_count":2,"forks_count":8,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-14T02:43:46.738Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Julia","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/williamfgc.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,"publiccode":null,"codemeta":null}},"created_at":"2022-04-08T15:55:14.000Z","updated_at":"2024-06-11T18:07:06.000Z","dependencies_parsed_at":"2024-02-26T14:01:53.985Z","dependency_job_id":null,"html_url":"https://github.com/williamfgc/simple-gemm","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/williamfgc%2Fsimple-gemm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamfgc%2Fsimple-gemm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamfgc%2Fsimple-gemm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamfgc%2Fsimple-gemm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/williamfgc","download_url":"https://codeload.github.com/williamfgc/simple-gemm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241697169,"owners_count":20004965,"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":[],"created_at":"2024-08-01T14:00:28.992Z","updated_at":"2025-03-03T16:24:07.504Z","avatar_url":"https://github.com/williamfgc.png","language":"Julia","readme":"# simple-gemm\nCollection of simple General Matrix Multiplication - GEMM implementations\n\n```\nC = a . A x B + C\nif a = 1 and C = zeros\nC = A x B\n```\n\nA and B are initialized with random numbers\nC is initialized with zeros\n\nArguments are always 3 matrix dimensions: `args = [A_rows, A_cols (= B_rows), B_cols]` \n\n*e.g.* 5 5 5 or 10 10 10\n\nCPU multithreading:\n\n- `GemmDenseThreads`: native Julia Threads implementation\n\n    ```\n    $ cd GemmDenseThreads\n    $ julia -t 4 gemm-dense-threads.jl 5 5 5    \n    ```\n\n- `GemmDenseThreads.py`: native Python Numba Threads implementation\n\n    ```\n    $ cd python/GemmDenseThreads\n    $ NUMBA_NUM_THREADS=4 python3 GemmDenseThreads.py 5 5 5    \n    ```\n\n- `GemmDenseBlas`: uses `LinearAlgebra.jl` (super-fast), if compiled with `OpenBLAS` set `OPENBLAS_NUM_THREADS` \n\n    ```\n    $ cd GemmDenseThreads\n    $ OPENBLAS_NUM_THREADS=4 julia gemm-dense-blas.jl 5 5 5    \n    ```\n\nGPU :\n\n- `GemmDenseCUDA` : uses `CUDA.jl` which uses the optimized `cuBLAS` (very fast) on NVIDIA GPUs\n\n    ```\n    $ cd GemmDenseCUDA\n    $ julia gemm-dense-cuda.jl 5 5 5\n    ```\n    \n# Citation\nIf you find the repository useful, please cite the reference [2023 IPDPSW paper](https://doi.org/10.1109/IPDPSW59300.2023.00068):\n\n```\n@INPROCEEDINGS{10196600,\n  author={Godoy, William F. and Valero-Lara, Pedro and Dettling, T. Elise and Trefftz, Christian and Jorquera, Ian and Sheehy, Thomas and Miller, Ross G. and Gonzalez-Tallada, Marc and Vetter, Jeffrey S. and Churavy, Valentin},\n  booktitle={2023 IEEE International Parallel and Distributed Processing Symposium Workshops (IPDPSW)}, \n  title={Evaluating performance and portability of high-level programming models: Julia, Python/Numba, and Kokkos on exascale nodes}, \n  year={2023},\n  volume={},\n  number={},\n  pages={373-382},\n  doi={10.1109/IPDPSW59300.2023.00068}}\n```\n","funding_links":[],"categories":["Example Implementations 💡"],"sub_categories":["Blogs 🖋️"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilliamfgc%2Fsimple-gemm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwilliamfgc%2Fsimple-gemm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilliamfgc%2Fsimple-gemm/lists"}