{"id":27246001,"url":"https://github.com/stargate01/hpcgol","last_synced_at":"2026-01-21T18:36:56.791Z","repository":{"id":47404822,"uuid":"184790019","full_name":"StarGate01/HPCGOL","owner":"StarGate01","description":"High performance Conway's Game of Life","archived":false,"fork":false,"pushed_at":"2019-05-24T12:34:32.000Z","size":5231,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T21:38:01.687Z","etag":null,"topics":["conways-game-of-life","hpc","mpi","openmp","simd","vectorization"],"latest_commit_sha":null,"homepage":null,"language":"Fortran","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StarGate01.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}},"created_at":"2019-05-03T16:48:40.000Z","updated_at":"2022-07-20T19:50:43.000Z","dependencies_parsed_at":"2022-08-23T05:20:16.957Z","dependency_job_id":null,"html_url":"https://github.com/StarGate01/HPCGOL","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/StarGate01/HPCGOL","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarGate01%2FHPCGOL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarGate01%2FHPCGOL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarGate01%2FHPCGOL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarGate01%2FHPCGOL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StarGate01","download_url":"https://codeload.github.com/StarGate01/HPCGOL/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarGate01%2FHPCGOL/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28639399,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T18:04:35.752Z","status":"ssl_error","status_checked_at":"2026-01-21T18:03:55.054Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["conways-game-of-life","hpc","mpi","openmp","simd","vectorization"],"created_at":"2025-04-10T21:30:23.743Z","updated_at":"2026-01-21T18:36:56.772Z","avatar_url":"https://github.com/StarGate01.png","language":"Fortran","funding_links":[],"categories":[],"sub_categories":[],"readme":"# High performance Conway's Game of Life\nHigh performance Conway's Game of Life. See https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life.\n\n## Modules\n - Exploitation of cache locality and memory layout (`simple`)\n - Optimized kernel (`simple_opt`) \n - Vectorization (sub-optimal in this use-case, not recommended) using\n   - The Auto-Vectorizer (`simple_simd`)\n   - OpenMP SIMD (`simple_simd2`)\n - Thread-level parallelism using OpenMP (`threads`)\n - CPU-Node parallelism using MPI (`nodes`)\n - Thread-level and CPU-Node hybrid parallelism using OpenMP and MPI (`hybrid`)\n\n## Installation\nRun `sudo make deps` if your package manager ist apt, otherwise install these packages:\n - gfortran\n - mpich\n - libmpich-dev\n\n## Compilation\nRun `make all` or `make modulename` or `make bin/modulename` to build all resp. a single program.\n\nRun `make clean` to remove all binaries.\n\n### Debugging and optimization\nTo enable debug symbols and disable code optimization, define the `DEBUG` makefile variable when calling `make`, like this: `make modulename DEBUG=1`.\n\nTo enable all possible compiler optimizations in order to produce fast code, do not define the `DEBUG` variable. Note that due to aggressive optimization binaries are generally not portable between different CPUs.\n\n### MPICH2 vs OpenMPI\nIf you want to use `OpenMPI` instead of `MPICH2`, the code should compile and work but I have not tested this yet but may support it in the future.\n\n### GNU compiler vs Intel compiler\nInstead of the GNU compiler `gfortran` the intel compiler `ifort` may be used by defining the makefile variable `INTEL`. In general, every OpenMP- and MPI-capable Fortran-2008 standard compliant compiler should work.\n\n## Execution\nThe included makefile has a `run` target, which should be used to launch the binaries. Note that also invokes the compilation. The syntax and some default values are as follows:\n\n`make run EXE=modulename ARG_PRINT=1 ARG_STEPS=15 ARG_WIDTH=10 ARG_HEIGHT=10 ARG_THREADS=1 ARG_NODES=1`\n - `EXE`: The name of the module to launch, see above.\n - `ARG_PRINT`: 1 to print the field as ACII, 0 to not print it. This is only recommended for small field sizes.\n - `ARG_STEPS`: The number of iterations to compute.\n - `ARG_WIDTH`: The width in cells of the field.\n - `ARG_HEIGHT`: The height in cells of the field.\n - `ARG_THREADS`: The number of threads to use. Note that more threads than your system has CPU cores or hyper-threads may slow things down.\n - `ARG_NODES`: The number of MPI nodes to use. If there is no MPI cluster available, `hydra` will automatically emulate a cluster using multiple processes.\n\n### Recommended settings\nUse the default values above to test the program using its graphical output.\n\nA field size of `10000` times `10000` is a reasonable first scale test, it runs with about 0.2 - 1 steps per second on most laptops and PCs, depending on optimization and CPU speed.\n\n### Memory requirements\nThe minimum amount of required RAM is roughly `2 * ARG_WIDTH * ARG_HEIGHT` bytes. When running on a MPI cluster, this memory is equally distributed.\n\n## IDE support\nThe Visual Studio Code IDE (See https://code.visualstudio.com/) is supported. But any other IDE capable of launching makefiles should work.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstargate01%2Fhpcgol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstargate01%2Fhpcgol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstargate01%2Fhpcgol/lists"}