Open
Description
In the installation instructions for neper, it says
Neper is written in (mostly ANSI) C and a little C++, and it can run on any Unix-like system. Neper is also known to run on macOS and on Microsoft Windows using the Windows subsystem for Linux (WSL), the Ubuntu app or similar solutions, although we do not test nor support this usage and multithreading must be turned off (which slows down execution significantly).
So for macOS and WSL, should OMP_NUM_THREADS=1
be added to the environment by default? For me, doing
using neper_jll
run(`$(neper()) -T -n 100 -dim 2`) # Generate tesselation (fine)
run(`$(neper()) -M -dim 2 n100-id1.tess`) # Mesh (fails without any hint in the error message)
# Set to run single threaded
cmd = neper()
push!(cmd.env, "OMP_NUM_THREADS=1")
run(`$cmd -M -dim 2 n100-id1.tess`) # Mesh (works)
To me, adding this on macOS
and WSL
seems reasonable, but I'm not sure where it should be added in the build_tarballs.jl file.
Output when meshing fails
======================== N e p e r =======================
Info : A software package for polycrystal generation and meshing.
Info : Version 4.8.2
Info : Built with: gsl|muparser|opengjk|openmp|nlopt|libscotch (full)
Info : Running on 11 threads.
Info : <https://neper.info>
Info : Copyright (C) 2003-2022, and GNU GPL'd, by Romain Quey.
Info : No initialization file found (`/Users/knutan/.neperrc').
Info : ---------------------------------------------------------------
Info : MODULE -M loaded with arguments:
Info : [ini file] (none)
Info : [com line] -dim 2 n100-id1.tess
Info : ---------------------------------------------------------------
Info : Reading input data...
Info : - Reading arguments...
sh: line 1: 22879 Abort trap: 6 gmsh --version > .nepertmp 2> .nepertmp
Info : Loading input data...
Info : - Loading tessellation...
Info : [i] Parsing file `n100-id1.tess'...
Info : [i] Parsed file `n100-id1.tess'.
Info : Meshing...
Info : - Preparing... (cl = 0.025)
Info : - 0D meshing... 100%
Info : - 1D meshing... 100%
Info : - 2D meshing... 10% (0.47|0.52/90| 0|10)Error : > Meshing of face 2 failed
ERROR: failed process: Process(setenv(`/Users/knutan/.julia/artifacts/51b7e3f902f996c4534cd6f355ac611fa36f7fdc/bin/neper -M -dim 2 n100-id1.tess`,["XPC_FLAGS=0x0", "COMMAND_MODE=unix2003", "PATH=/Users/knutan/.julia/artifacts/3375f49f996fe8fc031b5cee44a6e4143b76bb6d/bin:/Users/knutan/.julia/artifacts/c99c0e2b61a41b4b2294b30e9f7f26e50c2e38eb/bin:/Users/knutan/.julia/artifacts/becfd6f89f1a272ace2375b067f1153515ca70b3/bin:/Users/knutan/.julia/artifacts/f00ec04851ced5895bd99297d49916ba59ca783d/bin:/Users/knutan/.julia/artifacts/9d8a957aa3387b17b8639251016c87710db1a175/bin:/Users/knutan/.julia/artifacts/84fa3b322bb3bbb0d733f9f1498ca286422dfab3/bin:/Users/knutan/.julia/artifacts/d4f3fcdadb4be9d4872f980facbe5a6623f4f304/bin:/Users/knutan/.julia/artifacts/1ca6f87261aa4ce8230c5cbd2aa2d7b9e020da56/bin:/Users/knutan/.julia/artifacts/b5848d88660bb0f91f7dfa6462378c5bf5880aa4/bin:/Users/knutan/.julia/artifacts/b1ff8b748e6ed84f131b50c5247dc699c90ccba3/bin:/Users/knutan/.julia/artifacts/0561fb98167bb2b991693655136cabd30fd63cf7/bin:/Users/knutan/.julia/artifacts/5d5fcb3da4afd972cdf22b4f4e6f05fc7ae6db98/bin:/Users/knutan/.julia/artifacts/85dfd272b5d6fd84110414fbd4de4b12863fa472/bin:/Users/knutan/.julia/artifacts/51b7e3f902f996c4534cd6f355ac611fa36f7fdc/bin:/opt/homebrew/bin:/Users/knutan/Library/Python/3.9/bin:/Users/knutan/.juliaup/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/TeX/texbin:/usr/local/munki", "PWD=/Users/knutan/Projects/DOP/DoP", "JULIA_VSCODE_REPL=1", "XPC_SERVICE_NAME=application.com.microsoft.VSCode.28467998.28468004", "TERM_PROGRAM=vscode", "VSCODE_GIT_ASKPASS_NODE=/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)", "SHELL=/bin/zsh", "SSH_KEY_PATH=/Users/knutan/.ssh/id_ecdsa" … "FONTCONFIG_FILE=/Users/knutan/.julia/artifacts/f00ec04851ced5895bd99297d49916ba59ca783d/etc/fonts/fonts.conf", "_=/Applications/Visual Studio Code.app/Contents/MacOS/Electron", "OPENBLAS_DEFAULT_NUM_THREADS=1", "USER=knutan", "JULIA_EDITOR=code", "HOME=/Users/knutan", "TERM=xterm-256color", "TERM_PROGRAM_VERSION=1.100.3", "OPENBLAS_MAIN_FREE=1", "COLORTERM=truecolor"]), ProcessSignaled(6)) [0]
Metadata
Metadata
Assignees
Labels
No labels