-
Notifications
You must be signed in to change notification settings - Fork 78
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
Issue Getting Example Program to Run with Apple M3 #606
Comments
What Fortran compiler are you using? |
Regardless of the issue reported here, LLVM + ARM is currently not functional: |
Was using GFortran. Thanks for letting me know that LLVM + ARM is currently not functional. I'll see if I can do anything on my end to get it to work. |
Quick update. Same issue occurring with the following system configuration: Apple clang version 16.0.0 (clang-1600.0.26.4) |
I assume you're referring to the symbol issue. Which compilers are recognized by CMake for CXX, CC, and FC? |
Yes, I am referring to the CC: AppleClang 16.0.0 located at /opt/homebrew/bin/mpicc CXX: AppleClang 16.0.0 located at /opt/homebrew/bin/mpic++ FC: GNU Fortran 14.2.0 located at /opt/homebrew/bin/mpif77 |
You need to use the GNU compilers for CC and CXX.
…On Wed, 20 Nov 2024 at 00:09, Cameron Maloney ***@***.***> wrote:
CC: AppleClang 16.0.0 located at /opt/homebrew/bin/mpicc
CXX: AppleClang 16.0.0 located at /opt/homebrew/bin/mpic++
FC: GNU Fortran 14.2.0 located at /opt/homebrew/bin/mpif77
—
Reply to this email directly, view it on GitHub
<#606 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEN2M76T5KXHV3QEQXNCZAT2BPALDAVCNFSM6AAAAABR7A336GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBWHEZTGNJZG4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Please try again but delete .cache (in the case dir) first.
…On Thu, 21 Nov 2024 at 11:56, Cameron Maloney ***@***.***> wrote:
Unfortunately, this does not fix the problem. I have built NekRS with GNU
compilers for C, C++, and Fortran (with the mpi wrappers and after clearing
the build/installation beforehand), as can be seen in the following
screenshot:
Screenshot.2024-11-21.at.2.51.57.AM.png (view on web)
<https://github.com/user-attachments/assets/88af37ab-43c0-4c64-9b94-9f6fffbc0f9d>
And I still receive the following error when running the example program
(turbPipePeriodic) from the README:
building nekInterface for lx1=8, lelt=3923 and lelg=7840 ... done (12.8478s)
loading nek ... The value of session_in is: turbPipe
The value of session_in is: turbPipe
Aborting in ~/nekRS/src/nekInterface/nekInterfaceAdapter.cpp:set_usr_handles
dlopen(~/nekRS/turbPipePeriodic/.cache/nek5000/libturbPipe.so, 0x0006): symbol not found in flat namespace '_adj_logical_'
—
Reply to this email directly, view it on GitHub
<#606 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEN2M77ENGO6S56EB4VUJW32BW36ZAVCNFSM6AAAAABR7A336GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJQG44TEOJYGI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Unfortunately, the same error as above is occurring. On a separate note, I have to remove any reference to mtune in ~/.local/nekrs/nekrs.conf each time I run the build, but that's not a problem here. The same Let me know if I can provide any other info to help. |
Not sure what's going wrong here. Unfortunately I don't have access to a M3 based Mac. |
Okay, I’ll keep trying. I appreciate the help and patience. |
Can you please run
in your case dir. |
This was the output (found in the libturbPipe.so file): 0x00000000001bc018 10046 _adj_logical_ |
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: