{"id":13314642,"url":"https://github.com/pkestene/euler2d_kokkos","last_synced_at":"2025-08-19T03:30:37.973Z","repository":{"id":63576852,"uuid":"109732537","full_name":"pkestene/euler2d_kokkos","owner":"pkestene","description":"Simple 2d finite volume solver for Euler equations using c++ kokkos library","archived":false,"fork":false,"pushed_at":"2024-11-17T17:44:34.000Z","size":6733,"stargazers_count":39,"open_issues_count":0,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-17T18:32:56.437Z","etag":null,"topics":["cea","cfd","cpp","cuda","euler","finite-volume","gpu","gpu-computing","hydrodynamics","kokkos","miniapp","multithreading","openmp","parallelism","parallelization","performance-portability"],"latest_commit_sha":null,"homepage":"","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/pkestene.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":"2017-11-06T18:19:58.000Z","updated_at":"2024-11-17T17:44:38.000Z","dependencies_parsed_at":"2023-01-23T17:46:00.716Z","dependency_job_id":"9c5622c7-e992-4701-94db-1a2a6e0fd0c3","html_url":"https://github.com/pkestene/euler2d_kokkos","commit_stats":{"total_commits":117,"total_committers":3,"mean_commits":39.0,"dds":"0.11965811965811968","last_synced_commit":"7f418a075994d4f14cad17437af90e8a0de6fb66"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkestene%2Feuler2d_kokkos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkestene%2Feuler2d_kokkos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkestene%2Feuler2d_kokkos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkestene%2Feuler2d_kokkos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pkestene","download_url":"https://codeload.github.com/pkestene/euler2d_kokkos/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230312446,"owners_count":18206858,"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":["cea","cfd","cpp","cuda","euler","finite-volume","gpu","gpu-computing","hydrodynamics","kokkos","miniapp","multithreading","openmp","parallelism","parallelization","performance-portability"],"created_at":"2024-07-29T18:11:50.521Z","updated_at":"2024-12-18T17:26:38.192Z","avatar_url":"https://github.com/pkestene.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/pkestene/euler2d_kokkos.svg?branch=master)](https://travis-ci.org/pkestene/euler2d_kokkos)\n\n![C/C++ CI](https://github.com/pkestene/euler2d_kokkos/workflows/C/C++%20CI/badge.svg)\n\n![blast2d_1024x1536](https://github.com/pkestene/euler2d_kokkos/blob/master/blast2d.gif)\n\nThis miniapp solves the [compressible fluid dynamics (Euler) equations](https://en.wikipedia.org/wiki/Euler_equations_(fluid_dynamics)) using 2D cartesian grids, parallelized for shared memory system. The full application for 2D/3D grids with [MPI](https://www.mpi-forum.org/) and [Kokkos](https://github.com/kokkos/kokkos) is available here : https://github.com/pkestene/euler_kokkos\n\n# Get the source\n\nOur miniApp uses kokkos as a git submodule, configured to use the `develop` branch of kokkos.\nIn order to download the sources all-in-one (miniApp + kokkos):\n\n```shell\ngit clone git@github.com:pkestene/euler2d_kokkos.git\n```\n\n# Build\n\nWe strongly recommend the out-of-source build, so that one can have one build directory per architecture.\n\n## If you already have Kokkos installed\n\nJust make sure that your env variable `CMAKE_PREFIX_PATH` point to the location where Kokkos where installed. More precisely if Kokkos is installed in `KOKKOS_ROOT`, you add `$KOKKOS_ROOT/lib/cmake` to your `CMAKE_PREFIX_PATH`; this way kokkos will be found automagically by cmake, and the right Kokkos backend will be selected.\n\n```shell\nmkdir -p _build; cd _build\ncmake -DEULER2D_KOKKOS_BUILD=OFF ..\nmake\n```\n\nYou should now have executable *euler2d*. You can run a simply implode test like this\n```shell\ncd src\n./euler2d ./test_implode.ini\n```\n\n\n## Kokkos is not already installed =\u003e build for Kokkos/OpenMP\n\nTo build for Kokkos/OpenMP backend (which is the default backend):\n```shell\nmkdir -p _build/openmp; cd _build/openmp\ncmake -DEULER2D_KOKKOS_BUILD=ON -DEULER2D_KOKKOS_BACKEND=OpenMP ../..\nmake\n```\n\nYou should now have executable *euler2d*. You can run a simply implode test like this\n```shell\ncd src\n./euler2d ./test_implode.ini\n```\n\nOptionally, you can (recommended) activate HWLOC support by turning ON the flag Kokkos_ENABLE_HWLOC.\n\n\n## Kokkos is not already installed =\u003e build for Kokkos/CUDA\n\nObviously, you need to have Nvidia/CUDA driver and toolkit installed on your platform.\n- if you are building on a machine with a GPU, the Kokkos build system will auto detect the GPU architecture\n- if you are building on a front node of a supercomputer, you will probably need to tell cmake for which GPU architecture you want to build; e.g. add flag `-DKokkos_ARCH_AMPERE80=ON` to build for Nvidia Ampere A100 architecture.\n\nExample configuration:\n```shell\nmkdir _build/cuda; cd _build/cuda\ncmake -DEULER2D_KOKKOS_BUILD=ON -DEULER2D_KOKKOS_BACKEND=Cuda ../..\nmake\n```\n\nBe aware that, kokkos will not use Nvidia compiler `nvcc` directly, but will use a wrapper instead (located in Kokkos source directory).\n\nthen `make` should give you a working executable `euler2d` running on GPU.\n\n```shell\ncd src\n./euler2d ./test_implode.ini\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkestene%2Feuler2d_kokkos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpkestene%2Feuler2d_kokkos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkestene%2Feuler2d_kokkos/lists"}