You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The bug occurs when attempting to run the provided example program from the NekRS README using mpirun -np 2 nekrs --setup turbPipe.par. Initially, issues related to OpenMP linkage arise, manifesting as "no such file" errors. After attempting a fix involving setting environment variables and paths, a new error surfaces. This error indicates a problem with dlopen() and a missing symbol _adj_logical_ in the file libturbPipe.so.
To Reproduce
Steps to reproduce the behavior:
Follow the steps outlined in the README for building the NekRS repository.
Execute the example program with these steps (from the README):
cd<directory outside of installation/source folder>
cp -a $NEKRS_HOME/examples/turbPipePeriodic .
mpirun -np 2 nekrs --setup turbPipe.par
Initially encounter OpenMP-related errors:
dyld[90248]: Library not loaded: @rpath/libomp.dylib
Referenced from: <BEA5CF92-0C49-30E9-A331-3C68742198F6>~/.local/nekrs/lib/libocca.so
Reason: tried: '~/.local/nekrs/lib/libomp.dylib' (no such file), '~/.local/nekrs/lib/libomp.dylib' (no such file),
Apply the suggested fix as shown below (installing llvm and libomp using Homebrew, and setting environment variables).
Run the example program again, resulting in a new error:
dlopen(~/.local/nekrs/examples/turbPipePeriodic/.cache/nek5000/libturbPipe.so, 0x0006): symbol not found in flat namespace '_adj_logical_'
Expected behavior
The example program is expected to execute successfully.
Suggested Fix For First Problem (Does Not Fix Second Problem)
To resolve the initial OpenMP linkage issue:
Install LLVM and libomp using Homebrew:
brew install llvm libomp
Add the following environment variables to $HOME/.bash_profile for Bash:
Describe the bug
The bug occurs when attempting to run the provided example program from the NekRS README using
mpirun -np 2 nekrs --setup turbPipe.par
. Initially, issues related to OpenMP linkage arise, manifesting as "no such file" errors. After attempting a fix involving setting environment variables and paths, a new error surfaces. This error indicates a problem withdlopen()
and a missing symbol_adj_logical_
in the filelibturbPipe.so
.To Reproduce
Steps to reproduce the behavior:
llvm
andlibomp
using Homebrew, and setting environment variables).Expected behavior
The example program is expected to execute successfully.
Suggested Fix For First Problem (Does Not Fix Second Problem)
To resolve the initial OpenMP linkage issue:
$HOME/.bash_profile
for Bash:~/.zshrc
:Finally, run either one of the following depending on what you are using:
Desktop:
The text was updated successfully, but these errors were encountered: