neams-th-coe / cardinal

High-Fidelity Multiphysics
https://cardinal.cels.anl.gov/
Other
92 stars 47 forks source link

Speed up build with DAGMC #583

Open aprilnovak opened 1 year ago

aprilnovak commented 1 year ago

The build with DAGMC enabled is kind of slow - I think CMake/make isn't correctly recognizing that it doesn't need to rebuild the DAGMC tools every time, or Pyne is somehow interfering, because I spend about ~2 minutes or so on a few objects like this, even when no files have been changed since the last build:

[ 30%] Building CXX object src/pyne/CMakeFiles/pyne_dagmc-shared.dir/pyne.cpp.o
cd /home/anovak/cardinal/build/DAGMC/src/pyne && /usr/bin/mpicxx -std=gnu++17 -Dpyne_dagmc_shared_EXPORTS -I/home/anovak/cardinal/contrib/moose/petsc/arch-moose/include -I/home/anovak/cardinal/install/include -I/usr/include/eigen3 -O2 -felide-constructors -fstrict-aliasing -Wdisabled-optimization -funroll-loops -fopenmp  -DMETHOD=opt -Werror=return-type -Werror=reorder -Woverlength-strings -DENABLE_NEK_COUPLING -DENABLE_OPENMC_COUPLING -DENABLE_DAGMC -DH5Oget_info_by_idx_vers=1 -DH5O_info_t_vers=1 -DH5Oget_info_by_name_vers=1 -O3 -DNDEBUG -fPIC -std=gnu++17 -MD -MT src/pyne/CMakeFiles/pyne_dagmc-shared.dir/pyne.cpp.o -MF CMakeFiles/pyne_dagmc-shared.dir/pyne.cpp.o.d -o CMakeFiles/pyne_dagmc-shared.dir/pyne.cpp.o -c /home/anovak/cardinal/contrib/DAGMC/src/pyne/pyne.cpp
aprilnovak commented 1 year ago

@pshriwise what do you think about setting BUILD_UWUW off? Based on Aurora's code, I think I'd need to do special C++ code in Cardinal to support the UWUW route anyways, that we don't have.