Skip to content

Commit

Permalink
Support ARM compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
frthjf committed Oct 22, 2024
1 parent f03f9ae commit f2d398a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/miv_simulator/mechanisms.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
import shutil
from glob import glob
import platform

import subprocess
from mpi4py import MPI
Expand Down Expand Up @@ -102,7 +103,7 @@ def load(directory: str, force: bool = False) -> str:
return _loaded[directory]

dll_path = os.path.join(
os.path.abspath(directory), "x86_64", ".libs", "libnrnmech.so"
os.path.abspath(directory), platform.uname().machine, ".libs", "libnrnmech.so"
)
if not os.path.exists(dll_path):
raise FileNotFoundError(f"{dll_path} does not exists.")
Expand Down

0 comments on commit f2d398a

Please sign in to comment.