Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install with conda error: Symbol not found: __ZN5amrex6OpenMP9omp_locksE #550

Closed
tiamiceli opened this issue Mar 13, 2024 · 5 comments
Closed
Assignees
Labels
backend: openmp Specific to OpenMP execution (CPUs) bug: affects latest release Bug also exists in latest release version bug Something isn't working component: third party Changes in ImpactX that reflect a change in a third-party library install

Comments

@tiamiceli
Copy link

My computer: MacBook Pro M1 (2020), MacOS: 13.6.4
My environment:

  • no mpi or hdf5 in /usr/local/lib, only docker
  • conda installed: openmpi (not installed pre-req), impactx
  • I made a new environment, see this in my environment yaml:
name: impactx
channels:
  - conda-forge
dependencies:
  - conda-forge::openmpi
  - impactx

Error:

(impactx) miceli@AD138348-MLT sample_impactX % mpirun -np 1 impactx.NOMPI.OMP.DP.OPMD input_fodo.in 
dyld[38475]: Symbol not found: __ZN5amrex6OpenMP9omp_locksE
  Referenced from: <8E44EFB0-2EDB-3ED4-A55C-9E3BB0D70ECE> /opt/miniconda3/envs/impactx/bin/impactx.NOMPI.OMP.DP.OPMD
  Expected in:     <C065B295-33E2-3870-8CD8-4CD11097D6AC> /opt/miniconda3/envs/impactx/lib/libamrex_3d.dylib
--------------------------------------------------------------------------
prterun noticed that process rank 0 with PID 38475 on node AD138348-MLT exited on
signal 9 (Killed: 9).
--------------------------------------------------------------------------
@ax3l ax3l added bug Something isn't working backend: openmp Specific to OpenMP execution (CPUs) bug: affects latest release Bug also exists in latest release version labels Mar 13, 2024
@ax3l
Copy link
Member

ax3l commented Mar 13, 2024

Hi @tiamiceli,

Thank you for the report!

Oh no, we are aware of this issue since AMReX-Codes/amrex#3696 for Windows, but did not know it also affects macOS!

We work on a fix with @WeiqunZhang in AMReX-Codes/amrex#3798

@ax3l
Copy link
Member

ax3l commented Mar 14, 2024

Confirmed: on my mac mini (M1) using

conda create -n impactx -c conda-forge impactx
conda activate impactx 

as documented.

And then

$ impactx.NOMPI.OMP.DP.OPMD 
dyld[85863]: Symbol not found: __ZN5amrex6OpenMP9omp_locksE
  Referenced from: /Users/axel/miniconda3/envs/impactx/bin/impactx.NOMPI.OMP.DP.OPMD
  Expected in: /Users/axel/miniconda3/envs/impactx/lib/libamrex_3d.dylib
Abort trap: 6

@ax3l
Copy link
Member

ax3l commented Mar 14, 2024

Oh, that is actually because it already uses the conda package amrex nompi_h39290d2_102 and I changed the exported OpenMP symbol in this update compared to what ImpactX was built against, amrex nompi_h39290d2_101.

Fix coming via conda-forge/impactx-feedstock@7ad786c

Tomorrow, recreating the environment should fix the issue on macOS @tiamiceli.

(@WeiqunZhang the Windows issue is still unsolved for us.)

@ax3l ax3l added install component: third party Changes in ImpactX that reflect a change in a third-party library labels Mar 14, 2024
@ax3l
Copy link
Member

ax3l commented Mar 14, 2024

@tiamiceli I gave the new package a test:

conda env remove -n impactx

conda create -n impactx -c conda-forge impactx
conda activate impactx 

(installs now impactx conda-forge/osx-arm64::impactx-24.03-py312h55a178e_1)

With that macOS works again 🎉

$ impactx.NOMPI.OMP.DP.OPMD ~/src/impactx/examples/fodo/input_fodo.in
Initializing AMReX (24.03)...
OMP initialized with 8 OMP threads
AMReX (24.03) initialized

Grids Summary:
  Level 0   1 grids  512 cells  100 % of domain
...

Does this fix it for you as well? :)

@ax3l
Copy link
Member

ax3l commented Mar 17, 2024

@tiamiceli does everything work now? :)

@ax3l ax3l closed this as completed Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend: openmp Specific to OpenMP execution (CPUs) bug: affects latest release Bug also exists in latest release version bug Something isn't working component: third party Changes in ImpactX that reflect a change in a third-party library install
Projects
None yet
Development

No branches or pull requests

3 participants