CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
38 lines
1.5 KiB
Bash
Executable File
38 lines
1.5 KiB
Bash
Executable File
'
|
|
--------------------------------------------------------------------------
|
|
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.
|
|
--------------------------------------------------------------------------
|
|
'
|
|
|
|
MPIRUN=mpirun
|
|
if ! command -v $MPIRUN &> /dev/null
|
|
then
|
|
echo "$MPIRUN could not be found. checking libs"
|
|
if [ -f "/usr/lib64/openmpi/bin/mpirun" ]
|
|
then
|
|
MPIRUN=/usr/lib64/openmpi/bin/mpirun
|
|
else
|
|
if [ -f "/usr/lib64/mpi/gcc/openmpi2/bin/mpirun" ]
|
|
then
|
|
MPIRUN=/usr/lib64/mpi/gcc/openmpi2/bin/mpirun
|
|
else
|
|
echo "$MPIRUN could not be found. exiting"
|
|
exit
|
|
fi
|
|
fi
|
|
fi
|
|
SCRIPT=$(realpath "$0")
|
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
$MPIRUN --allow-run-as-root -np 2 $SCRIPTPATH/mpi_vectoradd mdrun -pin on -nsteps 10 -resetstep 9 -ntomp 64 -noconfout -nb gpu -bonded gpu -pme gpu -v -gpu_id 0
|