Author Topic: Problem splitting/partition the Input file (for running FEAP in Parallel)  (Read 6049 times)

abbhuiya

  • Jr. Member
  • **
  • Posts: 14
Dear Sir,

I am a new FEAP user. I need to run a FEAP program in Parallel (in the HPCC of my University). But to do that, I need to split the input file into "n" input files. I tried to split (or partition) my input file (Ipatch_4el) using the following steps:

1. hrothgar:/FEAP-83-2011-new/ver83/parfeap/partition$

2. In partition directory I have the following files:

        -Ipatch_4el (input file)
        -makefile
        -partition.c
        -sparse-graph.c
        -sparse-graph.h

3. Then I tried to compile partition.c using:

    mpicc -o partition partition.c

4. But I couldn't do that. I am getting the following error message:

    catastrophic error: cannot open source file "parmetis.h"

    compilation aborted

Actually, what I am doing wrong? My target is to split the Input file (Ipatch_4el) in n number of Input files for running FEAP in Parallel. Is there any other way to do that?

I will be very grateful if I get some help from you.

Best Regards

FEAP_Admin

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 993
run parfeap/feap (as you would any serial program) and select your input file as the input file,
then use the macro commands
graph
and
outd
to create your input files.  See the parallel manual
for additional details.

abbhuiya

  • Jr. Member
  • **
  • Posts: 14
Dear Sir,

It worked fine! I could split my input file (Ipatch_4el) into 2 different input files (Ipatch_4el_0001 & Ipatch_4el_0002).

Now, my question is:

If I want to run it in Parallel, what command should I use?
I found the following command in the manual:

"{MPIEXEC} -np $(NPROC) --machinefile machines $(FEAPRUN) -ksp_type cg -ksp_monitor -pc_type jacobi -options_left"

I exactly wrote this command and I am getting the following error messages:

-bash: NPROC: command not found
-bash: FEAPRUN: command not found
-bash: {MPIEXEC}: command not found


What am I doing wrong? I will be very grateful if I get some help with the issue!

Best Regards 

Shuai Wang

  • Jr. Member
  • **
  • Posts: 23
you should use the command such as mpirun instead of {MPIEXEC} and the exact number of cores to use instead of $(NPROC).

One example is like below

mpirun -np  4 --machinefile machines feap -ksp_type cg -ksp_monitor -pc_type jacobi -options_left