PSims / BayesEoR

Code to estimate the power spectrum of redshifted 21-cm emission from interferometric observations, within a Bayesian forward modelling framework.
https://bayeseor.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

Use MAGMA from conda-forge #27

Closed jburba closed 5 months ago

jburba commented 5 months ago

Instead of installing from source, which is complicated and time consuming, MAGMA can now be installed via conda.

Changes in this pull request:

  1. The conda environment file and the installation documentation have been updated with info on installing MAGMA with conda.
  2. bayeseor.gpu.GPUInterface now loads conda's libmagma.so by default.
  3. bayeseor.posterior.PowerSpectrumPosteriorProbability now uses MAGMA functions from the GPU interface class (magma_init, magma_zpotrf, and magma_finalize) to perform the Cholesky decomposition.

Testing

I ran a test using the test data provided with the repo in a new environment using MAGMA installed with conda via conda-forge. The results agree with the results from an analysis with a separate environment where I installed MAGMA from source.

image