MPJ Express is an open source Java message passing library (like MPICH and OpenMPI) that allows application developers to write and execute parallel Java applications for multicore processors and compute clusters/clouds. The software is distributed under the MIT (a variant of the LGPL) license.
Questions tagged [mpj-express]
60 questions
0
votes
0 answers
MPI based Two Integer Arrays Multiplication using Scatter and Gather method
I am implementing the following tutorial (matrix multiplication using Mpi_Scatter and Mpi_Gather) for MPI-based matrix multiplication using Scatter and Gather methods. However, I need to multiply the two integers arrays (1D) using the same scatter…

Khizar Hameed
- 41
- 1
- 7
0
votes
1 answer
How is back-and-forth communication established in MIP?
For example, I have a root process which sends some computations to be completed by worker processes. But because I have limited (4) processes I have to share the workload to all of them so I send multiple times. The workaround that I have found is…

Meta Xenology
- 142
- 2
- 9
0
votes
1 answer
Initializing MPI outside of main in java
Im trying to create a distributed MPI class in java which will do some computations for me. Unfortunately, MPI.Init seems to need argv,argc which are in main class. Would there be a way to initialize MPI in this class?
public class distributed {
…

combinaboring
- 11
- 3
0
votes
2 answers
Is there a way to sort the rank in Mpi by ascending and descending order
I am trying to display the Hello World message by ascending and descending order of it rank
I read about the bitonic sort but couldn't understand how to implement it,
int[] datalist = new int[8];
MPI.Init(args);
int rank =…

Faiz Abdullah
- 3
- 2
0
votes
0 answers
Multiple JFrames are opened when executed
I have a task of implementing MPJ-Express in Java Swing, unfortunately It isn't going well. I keep getting multiple JFrames when I execute the code. I have used OOP concepts. For now I'm just using a simple JFrame to show a Button and when I click…

Farrukh Zeb
- 21
- 2
0
votes
1 answer
How to pass -np argument to MPJ in gradle?
I was trying to do something with MPJ Express(My home work)
and i couldn't find how to pass -np argument to MPJRun.
group 'ST1'
version '1.0-SNAPSHOT'
apply plugin: 'application'
mainClassName = 'example.Main'
sourceCompatibility = 1.8
def…

Chocologocal
- 15
- 6
0
votes
2 answers
How to debug MPJExpress locally in IntelliJ IDEA
For eclipse there is an extension available to set debug configurations for MPJExpress.
How I can debug an application locally in IntelliJ IDEA.
I've tried to set up debugging using vm options in run/debug configurations. With this configuration I…

Talha Junaid
- 2,351
- 20
- 29
0
votes
0 answers
MPJ Express - How to use scatter to send array of object to other processes in Java
I am trying to use MPI.COMM_WORLD.Scatter() to divide an array of Object into several chunks and send it to the other processes, but it always gets the NullPointer error at the line of Scatter, is there any way the solve the problem? I find that if…

Bread
- 31
- 4
0
votes
1 answer
(Window) MPJExpress - runtime.MPJRuntimeException: Cannot connect to the daemon at machine and port <10000>
I'm new to EC2. I have successfully created a window server 2012 hpc cluster using Amazon Web Service and hope to run parallel programming.
I have successfully run MPJ Express in the Multi-core configuration. However, I am facing some problem with…
user5244370
0
votes
0 answers
MPI.Send and MPI.Recv are not working properly
I am new to distributed parallel programming. In the following code the process 0 gets stuck on MPI.Recv method execution..
if (me != 0) {
if (finalTour != null) {
Node[] nodes = new Node[5];
nodes[0] =…

Varun
- 49
- 1
- 11
0
votes
1 answer
How to give each Process a certain array to start off with
I am new to both mpi and mpj express, and thus not knowledgeable enough in how to translate my idea in code. My Idea and code thus far revolve around a function calculating numbers to use and saving them in array, thus one process starts with…

MBDunkel
- 1
0
votes
1 answer
Caused by: mpi.MPIException: java.lang.ClassCastException: cannot be cast to [Ljava.lang.Object;
I have been trying to use MPJExpress to send a object using :-
StateP randomState = HeuristicSolverUtility.createRandom(Constants.DIMENSION , Constants.w1);
MPI.COMM_WORLD.Isend(randomState , 0 , 1 , MPI.OBJECT , 3 , Constants.STARTOPERATION);
Or…

aaditya chauhan
- 55
- 5
0
votes
0 answers
Error when run MPJ in Netbeans
When I run MPJ program in Netbeans,here is exception:
[MPJRun.java]:[MPJRun.java]:MPJ_HOME environment found..
java.lang.Exception: [MPJRun.java]:MPJ_HOME environment found..
at runtime.starter.MPJRun.(MPJRun.java:155)
at…

Tạ Bá Trung
- 31
- 3
0
votes
3 answers
MPJ Express eclipse - remove combination of letters
I have to do an exercise for a parallel computing course.
The task is using N parallel processes to remove all combinations of letters "RTY" from the string.
Normally I'll do it with
String strAfter=str1.replaceAll("[RTY]","") ;
But how to make…

hlot-m
- 3
- 1
0
votes
2 answers
Where can I find some examples of using MPJ Express Library?
I have some java code, but searching for more (Pi, Integration, Brute Force MD5hash in Java, some other nice paralelism problem...).
Thank you.

Jitka Darbie Hübnerová
- 176
- 1
- 11