{"id":16073334,"url":"https://github.com/larsgeb/m1-gpu-cpp","last_synced_at":"2025-03-17T17:30:30.762Z","repository":{"id":106140499,"uuid":"483642836","full_name":"larsgeb/m1-gpu-cpp","owner":"larsgeb","description":"Metal Shading Language on Apple M1's GPU for scientific C++.","archived":false,"fork":false,"pushed_at":"2023-10-20T19:36:42.000Z","size":11384,"stargazers_count":88,"open_issues_count":4,"forks_count":18,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-16T13:04:55.541Z","etag":null,"topics":["clang","cpp","cpp17","gpu-acceleration","gpu-computing","m1-mac","metal","metal-cpp","objective-c","scientific-computing"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/larsgeb.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-20T12:20:59.000Z","updated_at":"2025-03-11T21:28:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"ff22cd3a-f3b4-44ed-9f56-688143c7fc5b","html_url":"https://github.com/larsgeb/m1-gpu-cpp","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/larsgeb%2Fm1-gpu-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larsgeb%2Fm1-gpu-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larsgeb%2Fm1-gpu-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larsgeb%2Fm1-gpu-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/larsgeb","download_url":"https://codeload.github.com/larsgeb/m1-gpu-cpp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244077863,"owners_count":20394356,"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":["clang","cpp","cpp17","gpu-acceleration","gpu-computing","m1-mac","metal","metal-cpp","objective-c","scientific-computing"],"created_at":"2024-10-09T08:06:46.776Z","updated_at":"2025-03-17T17:30:29.860Z","avatar_url":"https://github.com/larsgeb.png","language":"C++","readme":"# M1 GPUs for (scientific) computations in C++\n\nIn this repo, I explore the capabilities of the Metal Shading Language \ncombined with C++, specifically for use of accelerating scientific codes.\n\nThis repo accompaines \"Seamless GPU acceleration for C++ based physics using the M1's\nunified processing units, a case study for elastic wave propagation and full-waveform\ninversion\". If you use VSCode, all instructions to compile can be found in `.vscode`.\n\nI also wrote a few blog posts about the work in this repo:\n\n- [Getting started](https://larsgeb.github.io/2022/04/20/m1-gpu.html)\n- [SAXPY and FD](https://larsgeb.github.io/2022/04/22/m1-gpu.html)\n\nHowever, if you just want to try out the code, make sure you install `llvm` \nand `libomp` using brew and Xcode and its command line tools. By cloning the \nrepo and opening it in VSCode you should have all build configurations.\n\nAdditionally, I wrote a preprint (with the actual paper currently in peer-review) on how\nto use MSL for modelling of PDEs [available on arXiv](https://arxiv.org/abs/2206.01791).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flarsgeb%2Fm1-gpu-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flarsgeb%2Fm1-gpu-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flarsgeb%2Fm1-gpu-cpp/lists"}