{"id":13870064,"url":"https://github.com/jbornschein/mpi4py-examples","last_synced_at":"2025-04-05T03:12:38.464Z","repository":{"id":139143145,"uuid":"809089","full_name":"jbornschein/mpi4py-examples","owner":"jbornschein","description":"mpi4py examples","archived":false,"fork":false,"pushed_at":"2024-03-06T23:44:31.000Z","size":22,"stargazers_count":371,"open_issues_count":5,"forks_count":112,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-03-29T02:09:00.098Z","etag":null,"topics":["examples","mpi4py","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/jbornschein.png","metadata":{"files":{"readme":"README.txt","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":"2010-07-31T09:51:02.000Z","updated_at":"2025-02-21T11:19:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"1515e365-cc3f-4b2f-86f9-fdd9be0fc9ab","html_url":"https://github.com/jbornschein/mpi4py-examples","commit_stats":{"total_commits":18,"total_committers":8,"mean_commits":2.25,"dds":0.5,"last_synced_commit":"c0f5fa18bab612fb5afbd9a5bdbc47521d6c6dd6"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbornschein%2Fmpi4py-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbornschein%2Fmpi4py-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbornschein%2Fmpi4py-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbornschein%2Fmpi4py-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jbornschein","download_url":"https://codeload.github.com/jbornschein/mpi4py-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247280272,"owners_count":20912967,"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":["examples","mpi4py","python"],"created_at":"2024-08-05T20:01:27.360Z","updated_at":"2025-04-05T03:12:38.443Z","avatar_url":"https://github.com/jbornschein.png","language":"Python","readme":"\n=== Dependencies ===\n\nThese programs depend on mpi4py (\u003e= Version 1.0)\n\nThe mpi4py documentation and installation instructions \ncan be found at:\n\n   http://mpi4py.scipy.org/\n\n=== How to run on a single (multi-core) host ===\n\nRun it with \n\n mpirun -np 4 ./some-program\n\nwhere the number after \"-np \" is the number of parallel MPI \nprocesses to be started.\n\n\n=== How to run on multiple hosts ===\n\nIf you want to run the program distributed over multiple hosts, \nyou have to create a \u003chostfile\u003e which looks like:\n\n-- hostfile --\nhost1   slots=4\nhost2   slots=4\nhost3   slots=4\n--------------\n\nWhere \"slots=\" specifies the number of parallel processes that should be\nstarted on that host.\n\nRun it with\n\n  mpirun --hostfile \u003chostfile\u003e ./some-program\n\n\n=== Run on a cluster with the Torque Job scheduling system ===\n\nThere are two possibilities:\n\na) Run interactively:\n\nRequest an interactive session and allocate a number of processors/nodes for \nyour session:\n\n $ qsub -I X -l nodes=4:ppn=4\n\nWhere \"-I\" means you want to work interactively, \"-X\" requests grapical\n(X-Window) I/O -- (you can run arbitrary programs that open windows).  The\noption \"-l \" specifies the resources you want to allocate.  \"-l nodes=4:ppn=4\"\nrequests four compute nodes with each having four processor cores \n[ppn =^ ProcessorsPerNode].  So in total you allocate 16 CPU cores. \n[The scheduler is free to run your job on two nodes having 8 CPU cores each]\n\nOnce your interactive session is ready, you run \n\n $ mpirun ./your-program\n  \nmpirun automatically knowns how many parallel processes have to be started and\nwhere they have to be started.\n\nb) Submit as non-interactive batch-job:\n\nUse \n\n $ qsub -l nodes=4:ppn=4 ./your-jobfile.job\n\nto submit jour job-file. Similar to the interactive case, \"-l\" again is used  \nto request resources from the scheduling system. The job file usually is a \nsimple shell script which specifies the commands to be run once your job \nstarts. In addition, the jobfile can contain \"#PBS \u003csomething\u003e\" statements\nwhich are used to specify additional options which could have been specified \nin the \"qsub\" commandline. Please see \"man qsub\" for details.\n\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbornschein%2Fmpi4py-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjbornschein%2Fmpi4py-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbornschein%2Fmpi4py-examples/lists"}