brewsci / homebrew-num

:beer::1234: Homebrew formulae for numerical methods
BSD 2-Clause "Simplified" License
11 stars 12 forks source link

brewsci-superlu-dist version 6.4.0 #60

Closed dpo closed 3 years ago

dpo commented 3 years ago

fixes #59

SeekingMeaning commented 3 years ago
==> Testing brewsci/num/brewsci-superlu-dist
==> mpicc -o pddrive pddrive.c dcreate_matrix.c -I/home/linuxbrew/.linuxbrew/opt/brewsci-superlu-dist/include -L/home/linuxbrew/.linuxbrew/opt/brewsci-superlu-dist/lib -lsuperlu_dist
==> mpirun -np 4 ./pddrive -r 2 -c 2 g20.rua
--------------------------------------------------------------------------
mpirun has detected an attempt to run as root.

Running as root is *strongly* discouraged as any mistake (e.g., in
defining TMPDIR) or bug can result in catastrophic damage to the OS
file system, leaving your system in an unusable state.

We strongly suggest that you run mpirun as a non-root user.

You can override this protection by adding the --allow-run-as-root option
to the cmd line or by setting two environment variables in the following way:
the variable OMPI_ALLOW_RUN_AS_ROOT=1 to indicate the desire to override this
protection, and OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 to confirm the choice and
add one more layer of certainty that you want to do so.
We reiterate our advice against doing so - please proceed at your own risk.
--------------------------------------------------------------------------

Error: brewsci/num/brewsci-superlu-dist: failed
dpo commented 3 years ago

Are we getting this error because mpirun is run inside shell_output()? I wonder why the same problem doesn't occur in homebrew-core when building open-mpi?!

dpo commented 3 years ago

We're in a dead-end. It looks like the linux container forbids testing with 4 workers, which is the minimum required for testing the superlu executables.