{"id":13680817,"url":"https://boostorg.github.io/compute/","last_synced_at":"2025-04-30T00:30:57.825Z","repository":{"id":7219271,"uuid":"8526347","full_name":"boostorg/compute","owner":"boostorg","description":"A C++ GPU Computing Library for OpenCL","archived":false,"fork":false,"pushed_at":"2025-04-10T17:03:05.000Z","size":8729,"stargazers_count":1598,"open_issues_count":157,"forks_count":336,"subscribers_count":111,"default_branch":"master","last_synced_at":"2025-04-11T18:25:23.850Z","etag":null,"topics":["boost","c-plus-plus","compute","cpp","gpgpu","gpu","hpc","opencl","performance"],"latest_commit_sha":null,"homepage":"http://boostorg.github.io/compute/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/boostorg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE_1_0.txt","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,"zenodo":null}},"created_at":"2013-03-02T20:15:58.000Z","updated_at":"2025-04-10T17:23:45.000Z","dependencies_parsed_at":"2024-11-11T23:32:57.246Z","dependency_job_id":"b6c6fcc9-a903-4a54-8c10-efc21dcee72e","html_url":"https://github.com/boostorg/compute","commit_stats":{"total_commits":1017,"total_committers":69,"mean_commits":14.73913043478261,"dds":0.5172074729596854,"last_synced_commit":"36350b7de849300bd3d72a05d8bf890ca405a014"},"previous_names":[],"tags_count":56,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boostorg%2Fcompute","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boostorg%2Fcompute/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boostorg%2Fcompute/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boostorg%2Fcompute/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boostorg","download_url":"https://codeload.github.com/boostorg/compute/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251607428,"owners_count":21616758,"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":["boost","c-plus-plus","compute","cpp","gpgpu","gpu","hpc","opencl","performance"],"created_at":"2024-08-02T13:01:22.326Z","updated_at":"2025-04-30T00:30:52.802Z","avatar_url":"https://github.com/boostorg.png","language":"C++","readme":"# Boost.Compute #\n\n[![Build Status](https://travis-ci.org/boostorg/compute.svg?branch=master)](https://travis-ci.org/boostorg/compute)\n[![Build status](https://ci.appveyor.com/api/projects/status/4s2nvfc97m7w23oi/branch/master?svg=true)](https://ci.appveyor.com/project/jszuppe/compute/branch/master)\n[![Coverage Status](https://coveralls.io/repos/boostorg/compute/badge.svg?branch=master)](https://coveralls.io/r/boostorg/compute)\n[![Gitter](https://badges.gitter.im/boostorg/compute.svg)](https://gitter.im/boostorg/compute?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge)\n\nBoost.Compute is a GPU/parallel-computing library for C++ based on OpenCL.\n\nThe core library is a thin C++ wrapper over the OpenCL API and provides\naccess to compute devices, contexts, command queues and memory buffers.\n\nOn top of the core library is a generic, STL-like interface providing common\nalgorithms (e.g. `transform()`, `accumulate()`, `sort()`) along with common\ncontainers (e.g. `vector\u003cT\u003e`, `flat_set\u003cT\u003e`). It also features a number of\nextensions including parallel-computing algorithms (e.g. `exclusive_scan()`,\n`scatter()`, `reduce()`) and a number of fancy iterators (e.g.\n`transform_iterator\u003c\u003e`, `permutation_iterator\u003c\u003e`, `zip_iterator\u003c\u003e`).\n\nThe full documentation is available at http://boostorg.github.io/compute/.\n\n## Example ##\n\nThe following example shows how to sort a vector of floats on the GPU:\n\n```c++\n#include \u003cvector\u003e\n#include \u003calgorithm\u003e\n#include \u003cboost/compute.hpp\u003e\n\nnamespace compute = boost::compute;\n\nint main()\n{\n    // get the default compute device\n    compute::device gpu = compute::system::default_device();\n\n    // create a compute context and command queue\n    compute::context ctx(gpu);\n    compute::command_queue queue(ctx, gpu);\n\n    // generate random numbers on the host\n    std::vector\u003cfloat\u003e host_vector(1000000);\n    std::generate(host_vector.begin(), host_vector.end(), rand);\n\n    // create vector on the device\n    compute::vector\u003cfloat\u003e device_vector(1000000, ctx);\n\n    // copy data to the device\n    compute::copy(\n        host_vector.begin(), host_vector.end(), device_vector.begin(), queue\n    );\n\n    // sort data on the device\n    compute::sort(\n        device_vector.begin(), device_vector.end(), queue\n    );\n\n    // copy data back to the host\n    compute::copy(\n        device_vector.begin(), device_vector.end(), host_vector.begin(), queue\n    );\n\n    return 0;\n}\n```\n\nBoost.Compute is a header-only library, so no linking is required. The example\nabove can be compiled with:\n\n`g++ -I/path/to/compute/include sort.cpp -lOpenCL`\n\nMore examples can be found in the [tutorial](\nhttp://boostorg.github.io/compute/boost_compute/tutorial.html) and under the\n[examples](https://github.com/boostorg/compute/tree/master/example) directory.\n\n## Support ##\nQuestions about the library (both usage and development) can be posted to the\n[mailing list](https://groups.google.com/forum/#!forum/boost-compute).\n\nBugs and feature requests can be reported through the [issue tracker](\nhttps://github.com/boostorg/compute/issues?state=open).\n\nAlso feel free to send me an email with any problems, questions, or feedback.\n\n## Help Wanted ##\nThe Boost.Compute project is currently looking for additional developers with\ninterest in parallel computing.\n\nPlease send an email to Kyle Lutz (kyle.r.lutz@gmail.com) for more information.\n","funding_links":[],"categories":["OpenCL"],"sub_categories":["Libraries"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/boostorg.github.io%2Fcompute%2F","html_url":"https://awesome.ecosyste.ms/projects/boostorg.github.io%2Fcompute%2F","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/boostorg.github.io%2Fcompute%2F/lists"}