{"id":24395202,"url":"https://github.com/tiernogs/enyo","last_synced_at":"2025-03-13T03:13:27.516Z","repository":{"id":223148736,"uuid":"759381749","full_name":"TiernoGs/Enyo","owner":"TiernoGs","description":"A fork of the fast C++17 multithreaded PBRT library","archived":false,"fork":false,"pushed_at":"2025-01-08T17:29:54.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-19T20:32:08.190Z","etag":null,"topics":["c17","cpu","for-loop","multiprocessing","multithreading","pbrt-v4"],"latest_commit_sha":null,"homepage":"","language":"C++","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/TiernoGs.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":"2024-02-18T12:47:54.000Z","updated_at":"2025-01-08T17:29:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"a48d63d6-d7f2-448b-ac91-aa551937c061","html_url":"https://github.com/TiernoGs/Enyo","commit_stats":null,"previous_names":["tiernogs/enyo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TiernoGs%2FEnyo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TiernoGs%2FEnyo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TiernoGs%2FEnyo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TiernoGs%2FEnyo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TiernoGs","download_url":"https://codeload.github.com/TiernoGs/Enyo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243330324,"owners_count":20274039,"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":["c17","cpu","for-loop","multiprocessing","multithreading","pbrt-v4"],"created_at":"2025-01-19T20:26:31.834Z","updated_at":"2025-03-13T03:13:27.495Z","avatar_url":"https://github.com/TiernoGs.png","language":"C++","readme":"# ENYO: A fast multiprocessing C++17 library forked from PBRT v4 (CPU only)\n\nThis small lib grants you the power of multithreading in C++! It should be fairly easy to use and is compatible with the new standards of Cpp.\nMoreover, the lib is a fork from pbrt-v4 available at this URL: https://github.com/mmp/pbrt-v4\n\n## Requirements\n\n- CMake\n- C++ 17 compiler\n\n## Platforms supported\n\n- Windows\n- Linux (Tested on Ubuntu 18)\n- !Untested on MacOS!\n\n## Documentation\n\n### Build options\n\n`ENYO_BUILD_TEST` builds the template C++ executable\n\n`ENYO_FORCE_DEBUG` prints output message in Release mode\n\n\n### Code example\n\n#### Single \"for-loop\" example to calculate _sin(x)/x_\n\nAs shown below, the *'ParallelFor'* loop corresponds to a C *for-loop* `for(int64_t i = 0; i \u003c 256; i++)`\n\n```c++\nstd::array\u003cdouble, 256\u003e arr;\nenyo::ParallelFor(0, 256, [\u0026](const int64_t\u0026 i)\n{\n    arr[i] = sin(PI * double(i) / 256.0);\n    arr[i] /= float(i) + epsilon;\n});\n```\n\n#### 2D \"for-loop\" example to calculate _x * y_\n\n```c++\nstd::array\u003cstd::array\u003cint32_t, 64\u003e, 64\u003e arr;\nenyo::ParallelFor2D({ {0,0}, {64, 64} }, [\u0026](const std::pair\u003cint64_t, int64_t\u003e\u0026 p)\n{\n    arr[p.first][p.second] = (p.first + 1) * (p.second + 1);\n});\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiernogs%2Fenyo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiernogs%2Fenyo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiernogs%2Fenyo/lists"}