Hi al,

I have installed Dealii 9.4.2 using "spack install dealii"  on Ubuntu 20.04 
inside WSL. When I try to mpirun step-17 and step-18 I either encounter an 
error message (attached at the end) when the number of cores is more than 
two or for two cores the memory consumption is huge. In my case, the entire 
48 gb of my laptop is getting used. 

>From the online discussions, I gather this is because of METIS 
installation. How do I fix it?

Regard,
Ananya

Error Message ( I am copying the output for 1 process)

Cycle 0:
   Number of active cells:       64
   Current memory used:         384 bytes
   Maximum memory used:         384 bytes
***Memory allocation failed for SetupCtrl: maxvwgt. Requested size: 
103079215112 bytes

----------------------------------------------------
Exception on processing:

An error occurred in line <170> of file 
</tmp/ananyabijaya7/spack-stage/spack-stage-dealii-9.4.2-irc2qlg52x23mgbv5gh72ix435j35f4b/spack-src/source/lac/sparsity_tools.cc>
 
in function
    void dealii::SparsityTools::{anonymous}::partition_metis(const 
dealii::SparsityPattern&, const std::vector<unsigned int>&, unsigned int, 
std::vector<unsigned int>&)
The violated condition was:
    ierr == 1
Additional information:
    An error with error number -3 occurred while calling a METIS function

Stacktrace:
-----------
#0 
 
/home/ananyabijaya7/spack/opt/spack/linux-ubuntu20.04-skylake/gcc-10.5.0/dealii-9.4.2-irc2qlg52x23mgbv5gh72ix435j35f4b/lib/libdeal_II.g.so.9.4.2:
#1 
 
/home/ananyabijaya7/spack/opt/spack/linux-ubuntu20.04-skylake/gcc-10.5.0/dealii-9.4.2-irc2qlg52x23mgbv5gh72ix435j35f4b/lib/libdeal_II.g.so.9.4.2:
 
dealii::SparsityTools::partition(dealii::SparsityPattern const&, 
std::vector<unsigned int, std::allocator<unsigned int> > const&, unsigned 
int, std::vector<unsigned int, std::allocator<unsigned int> >&, 
dealii::SparsityTools::Partitioner)
#2 
 
/home/ananyabijaya7/spack/opt/spack/linux-ubuntu20.04-skylake/gcc-10.5.0/dealii-9.4.2-irc2qlg52x23mgbv5gh72ix435j35f4b/lib/libdeal_II.g.so.9.4.2:
 
void dealii::GridTools::partition_triangulation<2, 2>(unsigned int, 
std::vector<unsigned int, std::allocator<unsigned int> > const&, 
dealii::SparsityPattern const&, dealii::Triangulation<2, 2>&, 
dealii::SparsityTools::Partitioner)
#3 
 
/home/ananyabijaya7/spack/opt/spack/linux-ubuntu20.04-skylake/gcc-10.5.0/dealii-9.4.2-irc2qlg52x23mgbv5gh72ix435j35f4b/lib/libdeal_II.g.so.9.4.2:
 
void dealii::GridTools::partition_triangulation<2, 2>(unsigned int, 
std::vector<unsigned int, std::allocator<unsigned int> > const&, 
dealii::Triangulation<2, 2>&, dealii::SparsityTools::Partitioner)
#4 
 
/home/ananyabijaya7/spack/opt/spack/linux-ubuntu20.04-skylake/gcc-10.5.0/dealii-9.4.2-irc2qlg52x23mgbv5gh72ix435j35f4b/lib/libdeal_II.g.so.9.4.2:
 
void dealii::GridTools::partition_triangulation<2, 2>(unsigned int, 
dealii::Triangulation<2, 2>&, dealii::SparsityTools::Partitioner)
#5  ./step-17: Step17::ElasticProblem<2>::setup_system()
#6  ./step-17: Step17::ElasticProblem<2>::run()
#7  ./step-17: main
--------------------------------------------------------

Aborting!
----------------------------------------------------

--------------------------------------------------------
An error occurred in line <170> of file 
</tmp/ananyabijaya7/spack-stage/spack-stage-dealii-9.4.2-irc2qlg52x23mgbv5gh72ix435j35f4b/spack-src/source/lac/sparsity_tools.cc>
 
in function
    void dealii::SparsityTools::{anonymous}::partition_metis(const 
dealii::SparsityPattern&, const std::vector<unsigned int>&, unsigned int, 
std::vector<unsigned int>&)
The violated condition was:
    ierr == 1
Additional information:
    An error with error number -3 occurred while calling a METIS function

----------------------------------------------------
--------------------------------------------------------------------------
Primary job  terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
mpirun detected that one or more processes exited with non-zero status, 
thus causing
the job to be terminated. The first process to do so was:

  Process name: [[25959,1],0]
  Exit code:    1
----------------------------------

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/b9020324-4e31-4f54-8591-5ba1e1bfca84n%40googlegroups.com.

Reply via email to