You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
int main(int argc, char **argv)
{
LibMeshInit init(argc, argv);
libmesh_example_requires(libMesh::default_solver_package() == PETSC_SOLVERS,
"--enable-petsc");
// get the input parameters
GetPot input_file("input_file.in");
// define the mesh
Mesh mesh(init.comm());
std::string mesh_file = input_file("mesh_file", "no_generate");
std::string meshfile_dir = "./mesh/" + mesh_file;
unsigned int dim = input_file("dim", 0);
mesh.read(meshfile_dir);
std::cout << "hello world "<< std::endl;
return 0;
}
The 'mesh.read()' operation encounters errors when executed with 2048 cores, whereas it operates without issue with 1024 cores. The file name is *.e. I have tested it on two platforms. It will throw an error on the other platform with 512 cores.
The text was updated successfully, but these errors were encountered:
Ricardotu
changed the title
The 'mesh.read()' operation encounters errors when executed with 2048 cores
The 'mesh.read()' operation encounters errors when executed with 2048 processors
Apr 2, 2024
Hmm... I think if you do it this way, the file is opened and read from simultaneously on all N cores, which is probably not great for the filesystem. Can you try wrapping the mesh.read() line in if (comm().rank() == 0), and then, on all processors call
The 'mesh.read()' operation encounters errors when executed with 2048 cores, whereas it operates without issue with 1024 cores. The file name is *.e. I have tested it on two platforms. It will throw an error on the other platform with 512 cores.
The text was updated successfully, but these errors were encountered: