{"id":21903069,"url":"https://github.com/evanmcclure/macos-m1-gpu-hello-world","last_synced_at":"2026-05-17T18:11:07.950Z","repository":{"id":92954523,"uuid":"484203375","full_name":"evanmcclure/macos-m1-gpu-hello-world","owner":"evanmcclure","description":"Hello World for the M1 GPU on MacOS using Metal","archived":false,"fork":false,"pushed_at":"2023-01-17T01:51:44.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-27T07:09:28.087Z","etag":null,"topics":["apple","cplusplus","cpp","cpp17","gpu","hello-world","learning-by-doing","m1","macos","metal","metal-cpp","ml"],"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/evanmcclure.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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-21T20:59:15.000Z","updated_at":"2023-01-17T01:50:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"cca9e86f-fff4-4256-aa5c-a3d6a636bcc8","html_url":"https://github.com/evanmcclure/macos-m1-gpu-hello-world","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/evanmcclure%2Fmacos-m1-gpu-hello-world","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanmcclure%2Fmacos-m1-gpu-hello-world/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanmcclure%2Fmacos-m1-gpu-hello-world/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanmcclure%2Fmacos-m1-gpu-hello-world/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evanmcclure","download_url":"https://codeload.github.com/evanmcclure/macos-m1-gpu-hello-world/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244918500,"owners_count":20531682,"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":["apple","cplusplus","cpp","cpp17","gpu","hello-world","learning-by-doing","m1","macos","metal","metal-cpp","ml"],"created_at":"2024-11-28T15:25:27.057Z","updated_at":"2026-05-17T18:11:02.919Z","avatar_url":"https://github.com/evanmcclure.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# macos-m1-gpu-hello-world\nA \"Hello World\" program for the M1 GPU on MacOS using Metal, written in C++\n\n## Environment\n\nThis projects builds and runs on my personal MacBook Air M1, 2020, running macOS Ventura 13.1. It requires XCode and XCode Command Line Tools. The required Metal libraries will be downloaded when the program gets built.\n\n**System information:**\n\n```console\n% uname -a\nDarwin Evans-MacBook-Air-2.local 22.2.0 Darwin Kernel Version 22.2.0: Fri Nov 11 02:04:44 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T8103 arm64\n```\n\n**Install XCode and XCode command line tools:**\n\nhttps://github.com/gfx-rs/gfx/issues/2309#issuecomment-506130902\n\n**Compiler information:**\n\n```console\n% which c++\n/usr/bin/c++\n%% c++ --version\nApple clang version 14.0.0 (clang-1400.0.29.202)\nTarget: arm64-apple-darwin22.2.0\nThread model: posix\nInstalledDir: /Library/Developer/CommandLineTools/usr/bin\n```\n\n```console\n% xcode-select --version\nxcode-select version 2396.\n% xcode-select --print-path\n/Applications/Xcode.app/Contents/Developer\n```\n\n```console\n% xcrun --version\nxcrun version 61\n```\n\n## Getting started\n\n```console\nmake clean all\n./a.out\n```\n\n## References\n\n* https://developer.apple.com/metal/cpp/\n* https://developer.apple.com/documentation/metal/gpu_devices_and_work_submission\n* https://larsgeb.github.io/2022/04/20/m1-gpu.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevanmcclure%2Fmacos-m1-gpu-hello-world","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevanmcclure%2Fmacos-m1-gpu-hello-world","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevanmcclure%2Fmacos-m1-gpu-hello-world/lists"}