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.
Prerequisites
Before installing Dedalus, ensure you have:- Conda or Miniconda installed and available in your shell
- Base environment activated: The installation scripts must run from the conda base environment
- Bash shell: The custom build scripts require bash
Fast Install (conda-forge)
The quickest way to get started is using the conda-forge package:This method installs Dedalus v2 with OpenMPI and parallel HDF5 support. It’s suitable for laptops, workstations, and clusters that don’t require custom library linking.
Custom Build Installation
For advanced use cases requiring custom MPI, FFTW, or HDF5 libraries:Run Installation Script
For Dedalus v2 (stable):Or for Dedalus v3 (development):The script will:
- Create a new conda environment (
dedalus2ordedalus3) - Install all dependencies from conda-forge
- Build and install Dedalus with MPI support
- Configure threading variables automatically
Platform-Specific Notes
Linux
On Linux systems, both conda-forge and custom builds work without additional configuration:macOS (Intel)
On Intel-based Macs, the standard installation process works:macOS (Apple Silicon)
Apple Silicon Macs use x86_64 emulation by default to avoid numerical errors:The scripts detect Apple Silicon automatically and configure the environment for x86_64 emulation. To use native ARM64 builds (not recommended), edit the script and set:
Verifying Your Installation
After installation, verify that key components are working:Check Dedalus Version
Check MPI
Check Parallel HDF5
Run Test Suite
Run the comprehensive test suite:The test suite may take several minutes to complete. All tests should pass on a fresh installation.
Running Your First Simulation
Once installed, you can run Dedalus simulations. Here’s a minimal example:test_dedalus.py and run:
Running Parallel Simulations
Dedalus leverages MPI for parallel execution:Troubleshooting
Import Errors
If you encounter import errors:MPI Errors
If you see MPI-related errors:- Ensure you’re running via
mpiexecfor multi-process jobs - Check that
mpi4pyis installed:python3 -c "import mpi4py" - Verify MPI compiler:
which mpicc
Test Failures
If tests fail:- Check threading variables:
echo $OMP_NUM_THREADS(should be 1) - Verify clean environment:
echo $PYTHONPATH(should be empty) - Try reinstalling in a fresh environment
Next Steps
Installation Methods
Learn about different installation approaches and when to use each
Dedalus Documentation
Explore the official Dedalus documentation for tutorials and examples