Hi,guys:
I put 15 struct variables into a continuous memory at first by using memcpy(). And then I want to print out the element of first struct variable. The correct value is 1, but sometimes...
Type: Posts; User: jeffwang
Hi,guys:
I put 15 struct variables into a continuous memory at first by using memcpy(). And then I want to print out the element of first struct variable. The correct value is 1, but sometimes...
The issue happens in the MPI code. The new code is attached.
#include <stdio.h>
#include <mpi.h>
#include <stdlib.h>
#include <string.h>
typedef struct message message;
struct message
Hi,guys:
I put two struct variables into a continuous memory at first by using memcpy(). And then I want to print out each variable's element. Sometimes it works,but sometimes it just prints out...