{"id":13314638,"url":"https://github.com/CExA-project/ddc","last_synced_at":"2025-03-10T21:30:37.876Z","repository":{"id":37463186,"uuid":"432446749","full_name":"CExA-project/ddc","owner":"CExA-project","description":"DDC is a discrete domain computation library.","archived":false,"fork":false,"pushed_at":"2024-10-29T13:57:38.000Z","size":20604,"stargazers_count":33,"open_issues_count":57,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-29T15:55:19.333Z","etag":null,"topics":["cpp","ddc","discretization","domain-decomposition","hpc","kokkos","modern-cpp"],"latest_commit_sha":null,"homepage":"https://ddc.mdls.fr","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CExA-project.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSES/CECILL-C.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-27T11:50:14.000Z","updated_at":"2024-10-26T10:17:42.000Z","dependencies_parsed_at":"2023-01-30T03:00:58.808Z","dependency_job_id":"6bca1777-a17b-4345-a58f-c522e47afb16","html_url":"https://github.com/CExA-project/ddc","commit_stats":null,"previous_names":["cexa-project/ddc"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CExA-project%2Fddc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CExA-project%2Fddc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CExA-project%2Fddc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CExA-project%2Fddc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CExA-project","download_url":"https://codeload.github.com/CExA-project/ddc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242929979,"owners_count":20208383,"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":["cpp","ddc","discretization","domain-decomposition","hpc","kokkos","modern-cpp"],"created_at":"2024-07-29T18:11:50.479Z","updated_at":"2025-03-10T21:30:37.857Z","avatar_url":"https://github.com/CExA-project.png","language":"C++","readme":"# The discrete domain computation library (DDC)\n\u003c!--\nCopyright (C) The DDC development team, see COPYRIGHT.md file\n\nSPDX-License-Identifier: MIT\n--\u003e\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Nightly early integration](https://github.com/CExA-project/ddc/actions/workflows/early_integration.yml/badge.svg?event=schedule)](https://github.com/CExA-project/ddc/actions/workflows/early_integration.yml)\n[![Nightly tests on Ubuntu](https://github.com/CExA-project/ddc/actions/workflows/tests-ubuntu.yml/badge.svg?event=schedule)](https://github.com/CExA-project/ddc/actions/workflows/tests-ubuntu.yml)\n[![Nightly tests on macOS](https://github.com/CExA-project/ddc/actions/workflows/tests-macos.yml/badge.svg?event=schedule)](https://github.com/CExA-project/ddc/actions/workflows/tests-macos.yml)\n[![Pages](https://github.com/CExA-project/ddc/actions/workflows/pages.yml/badge.svg)](https://github.com/CExA-project/ddc/actions/workflows/pages.yml)\n\nSee \u003chttps://ddc.mdls.fr/\u003e\n\n[DDC](https://ddc.mdls.fr/), is a C++-17 library that aims to offer to the C++/MPI world an equivalent to the [`xarray.DataArray`](https://xarray.pydata.org/en/stable/generated/xarray.DataArray.html)/[`dask.Array`](https://docs.dask.org/en/stable/array.html) python environment.\nWhere these two libraries are based on [numpy](https://numpy.org/), DDC relies on [Kokkos](https://github.com/kokkos/kokkos) and [mdspan](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p0009r10.html) to offer CPU/GPU performance-portable multi-dimensional arrays and iterators.\n\nDDC aims to offer abstractions to represent:\n\n* tagged continuous dimensions,\n* discretizations of these (multiple kinds of meshes, function spaces, Fourier, etc.),\n* domains in these discretized dimensions,\n* associating data to the elements of these discrete domains,\n* efficient distribution and iteration over this data.\n\nAll these abstractions are handled at compilation using C++ template meta-programming to ensure zero overhead at execution and enable developers to change their design choices (*e.g.* from a regular mesh to a non-uniform one) with performance portability.\n\n[Find out more...](https://ddc.mdls.fr/)\n\nIf you like the project, please leave us a github star.\n\nIf you want to know more, join un on [Slack](https://join.slack.com/t/ddc-lib/shared_invite/zt-14b6rjcrn-AwSfM6_arEamAKk_VgQPhg)\n\n## Prerequisites\n\nTo use DDC core, one needs the following dependencies:\n\n* a C++17-compliant compiler\n* CMake 3.22...\u003c4\n* Kokkos 4.4...\u003c5\n* (optional, micro benchmarking) Benchmark 1.8...\u003c2\n* (optional, documentation) Doxygen 1.8.13...\u003c2\n* (optional, unit-testing) GoogleTest 1.14...\u003c2\n\nTo use DDC components, one needs the following dependencies:\n\n* (optional, fft interface) DDC::fft\n  * Kokkos-fft 0.2.1...\u003c1\n* (optional, IO interface) DDC::pdi\n  * PDI 1.6...\u003c2\n* (optional, spline interpolation) DDC::splines\n  * Ginkgo 1.8...\u003c2\n  * Kokkos Kernels 4.5.1...\u003c5\n\n## Getting the code and basic configuration\n\n```bash\ngit clone --recurse-submodules -j4 https://github.com/CExA-project/ddc.git\ncd ddc\ncmake -B build -D DDC_BUILD_KERNELS_FFT=OFF -D DDC_BUILD_KERNELS_SPLINES=OFF -D DDC_BUILD_PDI_WRAPPER=OFF\ncmake --build build\n```\n\n## Contributing\n\n### Formatting\n\nThe project makes use of formatting tools for the C++ ([clang-format](https://clang.llvm.org/docs/ClangFormat.html)) and cmake ([gersemi](https://github.com/BlankSpruce/gersemi)) files. The formatting must be applied for a PR to be accepted.\n\nTo format a cmake file, please apply the command\n\n```bash\ngersemi -i the-cmake-file\n```\n\nOne can find the formatting style in the file `.gersemirc`.\n\nTo format a C++ file, please apply the command\n\n```bash\nclang-format -i the-cpp-file\n```\n\nOne can find the formatting style in the file `.clang-format`.\n\n\u003e [!WARNING]\n\u003e The formatting might not give the same result with different versions of a tool.\n\n## Known issues\n\n* Kokkos 4.5.0 embeds a version of mdspan that is not compatible with DDC, see \u003chttps://github.com/kokkos/mdspan/pull/368\u003e. This issue has been fixed in Kokkos 4.5.1.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCExA-project%2Fddc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCExA-project%2Fddc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCExA-project%2Fddc/lists"}