{"id":18421949,"url":"https://github.com/spcl/spatial-collectives","last_synced_at":"2025-04-07T14:32:03.417Z","repository":{"id":206026369,"uuid":"715611881","full_name":"spcl/spatial-collectives","owner":"spcl","description":"Optimized communication collectives for the Cerebras waferscale engine","archived":false,"fork":false,"pushed_at":"2024-06-05T15:49:52.000Z","size":57,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-22T19:45:07.359Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spcl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-11-07T13:47:48.000Z","updated_at":"2025-02-17T15:09:21.000Z","dependencies_parsed_at":"2024-06-05T18:00:07.073Z","dependency_job_id":null,"html_url":"https://github.com/spcl/spatial-collectives","commit_stats":null,"previous_names":["spcl/spatial-collectives"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spcl%2Fspatial-collectives","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spcl%2Fspatial-collectives/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spcl%2Fspatial-collectives/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spcl%2Fspatial-collectives/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spcl","download_url":"https://codeload.github.com/spcl/spatial-collectives/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247669997,"owners_count":20976490,"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-11-06T04:27:24.849Z","updated_at":"2025-04-07T14:32:03.182Z","avatar_url":"https://github.com/spcl.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spatial Collectives\nThis repository contains code to reproduce the key results of the paper \"Near-Optimal Wafer-Scale Reduce\".\n\nThe codes are made to work with SDK version 1.0 and work on the simulator and CS-2.\n\n### Benchmarks\nEach benchmark starts with `commands_... .sh`. The provided commands are written to work with the simulator. They can easily be extended to run on the hardware. We provide an example slurm command.\n\n## Usage\nWe provide usage examples, but in general you need to\n1. Initialize the library with the respective collective\n```\nconst reduce_left = @import_module(\"modules/chain_sync.csl\", .{.color_1 = @get_color(4), .color_2 = @get_color(5), .pe_id = pe_id, .POS_DIR = EAST, .NEG_DIR = WEST, .NUM_PES = Pw});\n```\n2. Configure the network\n```\nreduce_left.configure_network();\n```\n3. Call the collective, providing a color, which will be activated at the end of the call\n```\nreduce_left.transfer_data(data_ptr, Nx, execution_color);\n```\n\n### Cite\nIf you found this work useful, please consider citing:","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspcl%2Fspatial-collectives","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspcl%2Fspatial-collectives","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspcl%2Fspatial-collectives/lists"}