{"id":16807644,"url":"https://github.com/borsch/openmpi-kma","last_synced_at":"2026-03-18T22:21:15.594Z","repository":{"id":120033007,"uuid":"545863302","full_name":"borsch/openmpi-kma","owner":"borsch","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-09T12:45:11.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-30T17:43:46.517Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/borsch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-10-05T05:25:17.000Z","updated_at":"2023-10-22T17:33:09.000Z","dependencies_parsed_at":"2023-06-26T22:09:22.168Z","dependency_job_id":null,"html_url":"https://github.com/borsch/openmpi-kma","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/borsch/openmpi-kma","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borsch%2Fopenmpi-kma","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borsch%2Fopenmpi-kma/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borsch%2Fopenmpi-kma/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borsch%2Fopenmpi-kma/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/borsch","download_url":"https://codeload.github.com/borsch/openmpi-kma/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borsch%2Fopenmpi-kma/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29319690,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T20:44:44.282Z","status":"ssl_error","status_checked_at":"2026-02-10T20:44:43.393Z","response_time":65,"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":[],"created_at":"2024-10-13T09:54:21.573Z","updated_at":"2026-02-10T22:33:45.234Z","avatar_url":"https://github.com/borsch.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# openmpi-kma\n\n### Change log\nImage on Docker Hub - https://hub.docker.com/r/olehkurpiak/openapi-kma\n\n#### 1.2\n- added host file. gives ability to simulate more processors, then available on machine. https://github.com/borsch/openmpi-kma/pull/1 \n#### 1.1\n- Initial release\n\n### Docker\nRun Docker image using `docker run -it -v PROJECT_LOCATION:/tmp/project -v LOCAL_M2_PATH:/root/.m2 --name openmpi-kma olehkurpiak/openapi-kma:1.1`\n\n`PROJECT_LOCATION` - path to java project on your local machine\n\n`LOCAL_M2_PATH` - path to yours `.m2` folder(usually under `~/.m2`) - this will allow to cache maven dependencies, otherwise maven would require to download them on each new container start\n\nFile `mpi.jar` is located under path `/tmp/openmpi/lib/mpi.jar` inside container. You can extract it to your local machine using command `docker cp openmpi-kma:/tmp/openmpi/lib/mpi.jar MY_LOCAL_PATH/mpi.jar`. Then you can add it to IDEA project as a jar dependency\n\n\n### Maven\nYou can also build java project using Maven \u003cb\u003ewith-in\u003c/b\u003e docker container. \n\n1. Add following dependency to you maven project\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003emympi\u003c/groupId\u003e\n    \u003cartifactId\u003emympi\u003c/artifactId\u003e\n    \u003cversion\u003e1.0\u003c/version\u003e\n    \u003cscope\u003esystem\u003c/scope\u003e\n    \u003csystemPath\u003e/tmp/openmpi/lib/mpi.jar\u003c/systemPath\u003e\n\u003c/dependency\u003e\n```\n\n2. Go to `cd /tmp/project` \u003cb\u003einside\u003c/b\u003e container (Note that this is a path in container where project was mounted from local machine. This is from first command)\n3. Run `mvn clean install` / `mvn clean compile`\n\n### Running \"Hello world\" with-in container\n\nInside container run command `mpirun -np 1 java -cp /tmp/project/target/classes com/mathpar/NAUKMA/examples/HelloWorldParallel` (Note: `/tmp/project` as a root of classpath)\n\n### Hostfile\nInitially docker could run only 5 processors but it can be increased.\nThe file which sets the number of available processors is located under path `/root/hostfile` inside a container.\nBy default number of processors is set to 40.\n\n### Running \"Hello world\" with-in container with hostfile\n\nInside container run command `mpirun --hostfile /root/hostfile -np 20 java -cp /tmp/project/target/classes com/mathpar/NAUKMA/examples/HelloWorldParallel` (Note: `/tmp/project` as a root of classpath)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborsch%2Fopenmpi-kma","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborsch%2Fopenmpi-kma","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborsch%2Fopenmpi-kma/lists"}