Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building MoonRay container with Rocky Linux 9 image and Apptainer (formerly Singularity) #122

Open
wants to merge 5 commits into
base: release
Choose a base branch
from

Conversation

panda1100
Copy link
Contributor

Apptainer definition files for building MoonRay on Rocky Linux 9
Build procedures for building MoonRay container with Apptainer
Remove libcgroup package from Rocky Linux 9 installation script
Signed-off-by: Yoshiaki Senda yoshiaki@live.it

Apptainer definition files for building MoonRay on Rocky Linux 9
Signed-off-by: Yoshiaki Senda <yoshiaki@live.it>

Signed-off-by: Yoshiaki Senda <yoshiaki@live.it>
Signed-off-by: Yoshiaki Senda <yoshiaki@live.it>

Signed-off-by: Yoshiaki Senda <yoshiaki@live.it>
…nux 9 image

Signed-off-by: Yoshiaki Senda <yoshiaki@live.it>

Signed-off-by: Yoshiaki Senda <yoshiaki@live.it>
@panda1100
Copy link
Contributor Author

panda1100 commented Aug 30, 2023

Build procedures for this PR

export WORKDIR=$(pwd)

# Copy OptiX install script
cp /PATH/TO/NVIDIA-OptiX-SDK-7.3.0-linux64-x86_64.sh ${WORKDIR}

# Download patch for this PR
wget https://patch-diff.githubusercontent.com/raw/dreamworksanimation/openmoonray/pull/122.patch

# Clone MoonRay repo
git clone -b openmoonray-1.3.0.0 https://github.com/dreamworksanimation/openmoonray.git

# Apply patch
cd openmoonray
patch -p1 < ../122.patch

# Build MoonRay image with Apptainer 
cd ${WORKDIR}
bash openmoonray/building/Apptainer/build.sh

To test MoonRay container

apptainer run moonray.sif
MoonRay> moonray -in /installs/testdata/rectangle.rdla -out /tmp/rectangle.exr
MoonRay> moonray_gui -in /installs/testdata/rectangle.rdla -out /tmp/rectangle.exr

To use MoonRay container with NVIDIA GPU

apptainer run --nv moonray.sif
MoonRay> moonray -in /installs/testdata/rectangle.rdla -out /tmp/rectangle.exr
MoonRay> moonray_gui -exec_mode xpu -in /installs/testdata/rectangle.rdla -out /tmp/rectangle.exr

@panda1100
Copy link
Contributor Author

panda1100 commented Aug 30, 2023

@rgwilson68 Could you please review this PR? I tested this PR with apptainer v1.2.2 on Rocky Linux 9 host.
MoonRay v1.3.0.0 can build without libcgroup* package dependency by the following changes on
openmoonray/arras/arras4_core/arras4_core_impl/lib/execute/ControlGroup.h

v1.2.0.0

  7 #include <libcgroup.h>

v1.3.0.0

  7 #ifdef ARRAS_ENABLE_CGROUP
  8 #include <libcgroup.h>
  9 #else
 10 #include "cgroup_stubs.h"
 11 #endif

details are here dreamworksanimation/arras4_core@8e22420

Signed-off-by: Yoshiaki Senda <yoshiaki@live.it>
libcgroup package installation is not mandatory from this version.

Signed-off-by: Yoshiaki Senda <yoshiaki@live.it>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant