LS Dyna

LS Dyna

Topics related to LS-DYNA, Autodyn, Explicit STR and more.

Issue with Running LS-PrePost in Batch Mode on an HPC

    • jtowns03
      Subscriber

      I'm trying to run LS-PrePost 4.12 in batch mode with the -nographics option on Stanford's Sherlock HPC to process d3plot data (~2TB) without downloading it locally. However, despite the -nographics flag, I get errors due to numerous missing graphical libraries (e.g., liblibApipWrapper.so, liblsreader_c.so.0.1.77) that are not available on the HPC. Has anyone successfully run LS-PrePost on an HPC in this mode? Are there alternative methods to extract d3plot data without the GUI or workarounds for these dependencies?

      Example of the error:

      /home/groups/camarilo/LS-PrePost_4.12/lsprepost: error while loading shared libraries: liblibApipWrapper.so: cannot open shared object file: No such file or directory 

    • Raman Babu
      Ansys Employee

      Hello,

      Does the linux box have a graphics card?
      If No, we need to send display to Xvfb

      If it is not installed, you need to install it and can create a X virtual framebuffer.
      Please see the below a shell script to create X virtual framebuffer.

      #!/bin/sh
      # Usage lsprepost_xvfb.sh arguments
      # the paramter arguments are sent across to prepost 

      LSPP_BIN_DIR=/data/cae/grp048/nbak/cae008/ref14/lzqq41/LSDYNA-ONESTEP/Linux/LSPP/lsprepost3.2_opensuse102/
      display_id=$$
      Xvfb="/usr/X11R6/bin/Xvfb"
      LSPREPOST="${LSPP_BIN_DIR}/lsprepost"
      export LD_LIBRARY_PATH=$LSPP_BIN_DIR/lib:$LD_LIBRARY_PATH
      if [ "x${Xvfb}" = "x" ] ; then
          echo "Running LS-Prepost using no graphics mode"
          ${LSPREPOST} -nographics $@
      else
          echo "Running LSPREPOST using VirtualFrameBuffer (VFB)"
      #    ${Xvfb} :${display_id} -nolisten tcp -fbdir -screen 0 1920x1080x64 &
          ${Xvfb} :${display_id} -screen 0 800x600x24&
          pid=$!
          DISPLAY=":${display_id}"; export DISPLAY
          ${LSPREPOST} $@
          kill -9 ${pid} 
          rm -rf /tmp/.X${pid}"-lock"
      fi
      echo "Done.."

      exit

    • igandiko
      Ansys Employee

       

      I suggest trying the below batch command instead of using -nographics option.

      /path/lsprepost runc=cfile

       

Viewing 2 reply threads
  • You must be logged in to reply to this topic.