Skip to content

Commit

Permalink
Fix fftw_mpi
Browse files Browse the repository at this point in the history
  • Loading branch information
paugier committed Feb 5, 2024
1 parent cb319b2 commit cc61cb8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
11 changes: 5 additions & 6 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"""

import os
import shlex
from pathlib import Path
from functools import partial

Expand Down Expand Up @@ -63,7 +62,7 @@ def tests(session, with_mpi, with_cov):
session.install(
"-e", "plugins/fluidfft-mpi_with_fftw", "--no-build-isolation", "-v"
)
# session.install("-e", "plugins/fluidfft-fftwmpi", "--no-build-isolation", "-v")
session.install("-e", "plugins/fluidfft-fftwmpi", "--no-build-isolation", "-v")

def run_command(command, **kwargs):
session.run(*command.split(), **kwargs)
Expand Down Expand Up @@ -96,10 +95,10 @@ def run_command(command, **kwargs):
"mpirun -np 2 --oversubscribe pytest -v plugins/fluidfft-mpi_with_fftw",
external=True,
)
# run_command(
# "mpirun -np 2 --oversubscribe pytest -v plugins/fluidfft-fftwmpi",
# external=True,
# )
run_command(
"mpirun -np 2 --oversubscribe pytest -v plugins/fluidfft-fftwmpi",
external=True,
)

if with_cov:
if with_mpi:
Expand Down
3 changes: 2 additions & 1 deletion plugins/fluidfft-fftwmpi/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ mpi_dep = dependency('mpi', language: 'cpp')
# fftwmpi_dep = dependency('fftw3-mpi', static: false)

compiler = meson.get_compiler('cpp')
fftwmpi_dep = compiler.find_library('fftw_mpi', required: true)
# fftw_mpi is not found on Ubuntu
fftwmpi_dep = compiler.find_library('fftw_mpi', required: false)

py_mod = import('python')
py = py_mod.find_installation('python3', pure: false)
Expand Down

0 comments on commit cc61cb8

Please sign in to comment.