{"id":17141512,"url":"https://github.com/iskandr/honeycomb","last_synced_at":"2025-03-24T08:22:23.699Z","repository":{"id":9038689,"uuid":"10800945","full_name":"iskandr/honeycomb","owner":"iskandr","description":null,"archived":false,"fork":false,"pushed_at":"2013-06-19T19:53:51.000Z","size":169,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-29T13:46:40.156Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com","language":"Python","has_issues":false,"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/iskandr.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}},"created_at":"2013-06-19T17:23:28.000Z","updated_at":"2022-05-30T17:41:18.000Z","dependencies_parsed_at":"2022-08-28T01:50:10.917Z","dependency_job_id":null,"html_url":"https://github.com/iskandr/honeycomb","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/iskandr%2Fhoneycomb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iskandr%2Fhoneycomb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iskandr%2Fhoneycomb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iskandr%2Fhoneycomb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iskandr","download_url":"https://codeload.github.com/iskandr/honeycomb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245233074,"owners_count":20581736,"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-10-14T20:25:36.683Z","updated_at":"2025-03-24T08:22:23.592Z","avatar_url":"https://github.com/iskandr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"HoneyComb\n=========\n\n### Data Parallel Bytecode for Simpler GPU Programming\n\n\nExamples:\n---------\n\nAdding two vectors:\n\n```\n  n = DIM a0 0\n  PARFOR n\n    offset = MUL_SCALAR idx.x vecsize\n    v0 = LOAD a0 offset \n    v1 = LOAD a1 offset\n    IADD v1 v0 \n    STORE v1 a1 s0 \n```\n\nNaive matrix multiply: \n\n```\n  n = DIM a0 0 \n  m = DIM a1 1\n  PARFOR n, m  \n    k = DIM a0 1 \n    FOR_OFFSETS(k, offset)   \n      v0 = LOAD_ROW a0 idx.x offset\n      v1 = LOAD_COL a1 idx.y offset\n      IMUL v1 v0 \n      total = SUM v1 \n      STORE_SCALAR_2D total a2 idx.x idx.y \n```\n\nTree-structured parallel sum of a 1D vector using an outermost loop:\n\n```\n  b = CONST 1\n  WHILE b\n    n_full = DIM a0 0 \n    n_small = DIV n vecsize \n    a1 = ALLOC n_small\n    PARFOR n_full BY vecsize  \n      v0 = LOAD a0 idx.x \n      total = SUM v0 \n      i = DIV_SCALAR idx.x vecsize \n      STORE_SCALAR total a1 i \n    b = GT n_small 1\n    a0 = a1 \n  res =  LOAD_SCALAR a0 0 \n  RETURN res \n```\n\nOr, more pleasantly, using a global reduce: \n\n\n```\n  n = DIM a0 0\n  REDUCE n\n    v0 = LOAD a0 idx.x \n    total = SUM v0 \n    return total \n```\n\n\n  \n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiskandr%2Fhoneycomb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiskandr%2Fhoneycomb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiskandr%2Fhoneycomb/lists"}