Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.

Latest commit

 

History

History
60 lines (56 loc) · 2.16 KB

ospray-mpi.md

File metadata and controls

60 lines (56 loc) · 2.16 KB

ospray-mpi:

NOTICE: To run example san-miguel you have to uncomment line:

#include(ospray-example_san-miguel.m4)
in file: "Xeon/<_OS_>/graphics/ospray-mpi/Dockerfile.m4"

There are two options to see result:

  1. Using single host calculation:

Image have to be run in GUI interface with params:

--network=host --env=DISPLAY

To run example please execute:

/home/ospray/build/ospExampleViewer /home/example/sanm/sanm.obj \
 -vp 22.958788 3.204613 2.712676 -vu 0.000000 1.000000 0.000000 \
 -vi 12.364944 0.176316 4.009342 -sg:sun:intensity=4.0 \
 -sg:sun:direction=0,-1,0 -sg:bounce:intensity=0.0 \
 --hdri-light /home/example/rnl_probe.pfm \
 -sg:hdri:intensity=1.25 -r pt
  1. Using multi-host calculation via MPI:

On hosts which will only perform calculation i.e worker, image require one parameter with executing sshd, for example:

docker run --net=host -it openvisualcloud/xeon-ubuntu1604-graphics-ospray-mpi /usr/sbin/sshd -D

On host which will show results i.e master, Image have to be run in GUI interface with params:

--network=host --env=DISPLAY

Inside "master" image please execute:

mpirun -n /*your number of hosts*/ -ppn 1 \
-host=<master-ip,worker1-ip,worker2-ip,...>  \
/home/ospray/build/ospExampleViewer /home/example/sanm/sanm.obj \
-vp 22.958788 3.204613 2.712676 -vu 0.000000 1.000000 0.000000 \
-vi 12.364944 0.176316 4.009342 -sg:sun:intensity=4.0 \
-sg:sun:direction=0,-1,0 -sg:bounce:intensity=0.0 \
--hdri-light /home/example/rnl_probe.pfm \
-sg:hdri:intensity=1.25 -r pt --osp:mpi

NOTICE-1: Multi-host connection is configured on port 2222, please make sure if it is avaliable on your hosts

NOTICE-2: Images are not interchangeable, which means workers and master have to be the same image for example "xeon-ubuntu1604-graphics-ospray-mpi"

NOTICE-3: In case of error:

Error 65544: X11: Failed to open display :0
terminate called after throwing an instance of 'std::runtime_error'
what():  Could not initialize glfw!

Please add this parameter for master image

--volume="/home/<username>/.Xauthority:/root/.Xauthority:rw"