-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove dependency on MPI compilers (#350)
* Remove our dependency on MPI compilers. This includes: - Require only mpi4py (all MPI operations done in python). This allows us to build our compiled extensions with any compiler rather than requiring consistency with the compilers used to build mpi4py. - Port the high-level C++ atmosphere simulation code to python and use compiled code only on a single process. Change the on-disk format of cached atmosphere realizations to use hdf5. - Update build system to not look for MPI compilers. - Add a new log level, "VERBOSE" which is even lower than "DEBUG". The intention for this is to contain messages that might come from every single process. - The MPIShared and MPILock classes are found in the upstream pshmem package. Bundle a tagged release of that package for now until it is widely available on PyPI / conda-forge. - Clean up the generation of version.cpp so that it only happens if the version actually changes. * Change logic to use only a single "use_cache" option. * When caching atmosphere sims, write to a temporary file and move it into place at the end. * Comment out pshmem test import, which imports MPI * Support both new and old package structure within numba. * Only attempt to set the numba backend if the utils.set_numba_threading() function is actually called. TOAST does not use numba since it conflicts with our existing explicit parallelism. The set_numba_threading() function is designed to be used before calling external packages that use numba, in order to ensure consistency between toast and numba. * Add global timers for the individual pieces of atm_sim_compute_slice * Actually use verbose level messages. * Fix typo in debug printing of the kolmogorov spectrum. Also fix a bug that the kolmo_x spectrum was not being reduced across processes. * No need to reduce kolmo_x since it is computed on every process. * Fix a missing cast from float to int * Fix typo bug introduced during code reorganization. * Use explicit bitwidth types (like int64_t) rather than long.
- Loading branch information
Showing
48 changed files
with
5,031 additions
and
5,435 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.