When I run DUNEuro, there is a warning: WARNING: You are using AMG without SuperLU! Please consider installing SuperLU, or set the usesuperlu flag to false to suppress this warning.
Do I need to install SuperLU, and whether SuperLU can improve the running speed?
My operating system is windows10. The following is the running log.
DUNEURO> System call: "C:\Users\ZZD.brainstorm\bst_duneuro\bin\bst_duneuro_meeg_win64.exe" "C:\Users\ZZD.brainstorm\tmp\duneuro_minifile.mini"
Reading 3d Gmsh grid...
version 2.2 Gmsh file detected
file contains 773970 nodes
file contains 4277455 elements
number of real vertices = 773970
number of boundary elements = 0
number of elements = 4277455
volume_conductor.time_reading_gmsh = 250.329
tensors = 5
time = 0
volume_conductor.time_reading_tensors = 0
volume_conductor.time_reordering_indices = 0.134641
volume_conductor.time = 250.464
degree = 1
element_type = tetrahedron WARNING: You are using AMG without SuperLU! Please consider installing SuperLU, or set the usesuperlu flag to false to suppress this warning.
time = 0.0019932
time = 0.79987
This is a new model. Compute the transfer Matrix.
solver.electrode_1.time_rhs_assembly = 0
=== matrix setup (max) 5.7606 s
I used SimNIBS to generate FEM mesh from the subject's MRI. The DUNEuro running time of different people varies widely, ranging from 1 hour to dozens of hours. The CPU occupancy is very low, taking up only a single thread.
superLU library can speed slightly the computation, but it's not really required.
If you are using Linux OS this message may not be displayed.
Improving the computation time with superLU and the multithreaded for Windows is under investigation.
If the subjects have a similar FEM mesh model (number of nodes), similar source space (number of dipoles), similar modality (EEG, MEG ...), and the same number of sensors, then the computation time should be in the same range.
Regarding the number of threads,
which OS are you using?
also, when did you download the Duneuro module for Brainstorm?
This is just a warning message, the FEM computation will run even without the SuperLu library.
You can proceed and compute the forward model.
We will solve this issue and remove this message on the next release.
CPU usage for the solver part. I cannot run the program as a whole rather running it line by line
Hey,
This is not part of the Brainstorm, in Brainstorm we use only the compiled version with predefined flags.
In you case, you are using the the duneuro source code, where you need to handle all the compilation steps. In that case you need to change some flags in the compilation process to get some extra features (and libraries).
I may recommend you to post this issue to the DUNEuro GitLab Issues · duneuro · GitLab where you can get more help.
DUNEuro computes the FEM leadfield, you can't compute it without the sensors.
I think what you want to do is to compute the voltage on all the head volume and not in a specific sensors/channels?
In that case you can use all the FEM nodes as sensors, then you can get a value on each node. So you need to put the 3D locations of the nodes as sensors.
Expect that the computation time will be very long.
(do not compute the transfer matrix in that case, you need to review and check the associated script and set it to false)
You can do it by using only a single dipole with a specific orientation.