Documentation Index
Fetch the complete documentation index at: https://mintlify.com/DedalusProject/dedalus_conda/llms.txt
Use this file to discover all available pages before exploring further.
Installation Errors
Conda Base Environment Not Activated
ERROR: Conda base environment must be activated
ERROR: Conda base environment must be activated
Missing Custom Library Paths
ERROR: MPI_PATH must be set
ERROR: MPI_PATH must be set
INSTALL_MPI=0 to use a custom MPI installation, but didn’t provide the path to your MPI.Solution:Edit the script configuration at the top:bin/mpicc.Find Your MPI Path:ERROR: FFTW_PATH must be set
ERROR: FFTW_PATH must be set
ERROR: HDF5_DIR must be set
ERROR: HDF5_DIR must be set
Compiler and Linking Issues
mpicc: command not found
mpicc: command not found
Library linking errors (ld: library not found)
Library linking errors (ld: library not found)
~/.bashrc or ~/.zshrc:Python.h: No such file or directory
Python.h: No such file or directory
Runtime Errors
Test Suite Failures
python3 -m dedalus test fails
python3 -m dedalus test fails
# Ensure environment is activated
conda activate dedalus3
# Verify dedalus is installed
python3 -c "import dedalus; print(dedalus.__version__)"
# Check for conflicting packages
conda list | grep dedalus
# Check MPI is working
mpiexec -n 2 python3 -c "from mpi4py import MPI; print(MPI.COMM_WORLD.Get_rank())"
# Verify threading is disabled (important!)
conda activate dedalus3
echo $OMP_NUM_THREADS # Should be 1
echo $NUMEXPR_MAX_THREADS # Should be 1
Segmentation fault during parallel runs
Segmentation fault during parallel runs
-
MPI Version Mismatch
- All components (mpi4py, h5py, FFTW, Dedalus) must use the same MPI
- Verify with:
-
Threading Conflicts
- Ensure threading is disabled:
- Ensure threading is disabled:
-
Oversubscription
- Don’t run more MPI processes than CPU cores
- Use
mpiexec -n <cores>appropriately
-
Custom Library Issues
- Rebuild with all libraries from conda-forge to isolate the issue
Environment Issues
Package conflicts or dependency errors
Package conflicts or dependency errors
conda deactivate
conda env remove -n dedalus3
# Edit script if needed
bash conda_install_dedalus3.sh
WARNING: Conda environment already exists
WARNING: Conda environment already exists
-
Proceed (y): Updates packages in the existing environment
- May cause conflicts if packages were manually modified
-
Cancel (n) and remove: Start fresh
-
Change environment name: Edit
CONDA_ENVin the script
Platform-Specific Issues
macOS
Apple Silicon (M1/M2/M3) numerical errors
Apple Silicon (M1/M2/M3) numerical errors
- Test failures with numerical accuracy issues
ggeverrors in LAPACK routines- Unexpected NaN or Inf values
- Creates environment with
CONDA_SUBDIR=osx-64 - Pins
libopenblas<0.3.20on arm64 if needed
macOS library loading errors
macOS library loading errors
DYLD_LIBRARY_PATH is set if using custom libraries:Linux
HPC cluster MPI conflicts
HPC cluster MPI conflicts
- MPI jobs fail to start
- Conflicts with job scheduler (SLURM, PBS)
- “PMI” or “PMIx” errors
-
Use system MPI:
-
Load correct modules:
-
Check SLURM integration:
- Use
sruninstead ofmpiexecon SLURM clusters - Ensure MPI is compiled with SLURM support
- Use
GLIBC version errors
GLIBC version errors
- Update your system (if possible)
-
Use older conda packages:
- Use custom builds compiled on your system
Performance Issues
Slow performance or high CPU usage when idle
Slow performance or high CPU usage when idle
Out of memory errors
Out of memory errors
- Reduce problem size (lower resolution, smaller domain)
-
Use more MPI processes (distributes memory)
-
Monitor memory usage:
- Increase system swap (last resort, slower)
Getting Help
If you’re still experiencing issues:# System info
uname -a
conda --version
# Environment info
conda activate dedalus3
conda list
python3 -c "import dedalus; print(dedalus.__version__)"
python3 -c "import mpi4py; print(mpi4py.get_config())"
Related Resources
- Custom Libraries Guide - Configure custom MPI/FFTW/HDF5
- CI/CD Workflows - See how builds are tested
- Installation Guide - Standard installation instructions