{"id":21526942,"url":"https://github.com/lambdaclass/metal_playground","last_synced_at":"2025-08-18T17:12:41.024Z","repository":{"id":66027165,"uuid":"602566531","full_name":"lambdaclass/metal_playground","owner":"lambdaclass","description":"A repo for learning how to parallelize computations in the GPU using Apple's Metal, in Rust.","archived":false,"fork":false,"pushed_at":"2023-03-17T04:51:37.000Z","size":774,"stargazers_count":10,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-12T23:22:22.261Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lambdaclass.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":"2023-02-16T13:39:51.000Z","updated_at":"2025-04-23T10:34:59.000Z","dependencies_parsed_at":"2025-04-09T23:44:32.201Z","dependency_job_id":null,"html_url":"https://github.com/lambdaclass/metal_playground","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lambdaclass/metal_playground","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdaclass%2Fmetal_playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdaclass%2Fmetal_playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdaclass%2Fmetal_playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdaclass%2Fmetal_playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lambdaclass","download_url":"https://codeload.github.com/lambdaclass/metal_playground/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambdaclass%2Fmetal_playground/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271027687,"owners_count":24687082,"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","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-24T01:47:19.117Z","updated_at":"2025-08-18T17:12:41.017Z","avatar_url":"https://github.com/lambdaclass.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Metal playground in rust\nMade for learning how to parallelize computations in the GPU using Apple's Metal, in Rust, via the [metal](https://crates.io/crates/metal) crate.\n\n## Overview\nThe source code will contain documented examples of use, growing in complexity, aimed at a final objective of parallelize a Fast Fourier Transform algorithm.\n\n### Contents\n1. **dotprod**: learn the basics of Metal and metal-rs, implement a simple dot product between two vectors represented as uint arrays.\n2. **matrixprod**: a more complex example to learn about grid size and thread groups, implement a product between square matrices.\n3. **memory**: example to show how to shared memory between CPU and GPU. This example creates a vector to be modified from the GPU.\n\n## Pre-requisites\n\n- [XCode](https://www.freecodecamp.org/news/how-to-download-and-install-xcode/)\n- [Rust](https://www.rust-lang.org/es/tools/install)\n\n## Running the examples\n\nTo run the examples, use the following command: \n\n`make example EXAMPLE={example}`\n\nTo re-build all the necessary `.metallib` files, you can use \n\n`make compile_metal EXAMPLE={example}`\n\nwhere `{example}` is the name of the example to run in both commands.\n\n## References\n- [Apple's Metal documentation](https://developer.apple.com/documentation/metal): we recommend to start with \"Performing Calculations on a GPU\". Note that these docs are in Swift/Obj-C.\n- [miniSTARK](https://github.com/andrewmilson/ministark): A minimal STARK library built in Rust and gpu-accelerated with Metal.\n- [metal-rs examples](https://github.com/gfx-rs/metal-rs)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambdaclass%2Fmetal_playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flambdaclass%2Fmetal_playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambdaclass%2Fmetal_playground/lists"}