fix
This commit is contained in:
parent
745e29475c
commit
a8a0837e11
@ -10,10 +10,10 @@ TARGET := $(basename $(SRC))
|
||||
all: $(TARGET)
|
||||
|
||||
mpi_%: mpi_%.c
|
||||
$(MPICC) $(CFLAGS) -o $@ $<
|
||||
$(MPICC) $(CFLAGS) -o $@ $<
|
||||
|
||||
serial_%: serial_%.c
|
||||
$(CC) $(CFLAGS) -o $@ $<
|
||||
$(CC) $(CFLAGS) -o $@ $<
|
||||
|
||||
run: $(TARGET)
|
||||
$(MPIRUN) -np 4 ./$@
|
||||
|
||||
@ -30,6 +30,5 @@ int main(int argc, char **argv) {
|
||||
total = total * 4;
|
||||
printf("Result: %.10lf\n", total);
|
||||
printf("Accuracy: %.10lf\n", PI - total);
|
||||
printf("Time:
|
||||
%.10lf\n", (double)(time2 - time1)/CLOCKS_PER_SEC);
|
||||
printf("Time: %.10lf\n", (double)(time2 - time1)/CLOCKS_PER_SEC);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user