Skip to main content
University of North Dakota
University of North Dakota
    • Admitted Students
    • Current Students
    • Families of Current Students
    • Faculty & Staff
    • Alumni
    • Email
    • Blackboard
    • Campus Connection
    • Employee Self-Service
    • Hawk Central
    • Degree Map
    • Zoom
  • Directory
  • Academics
  • Admissions
  • Student Life
  • Research
  • Athletics
  • Majors & Programs
  • About
University of North Dakota
  • Academics
  • Admissions
  • Student Life
  • Research
  • Athletics
  • Majors & Programs
  • About
  • Request Info
  • Visit
  • Apply
  • Request Info
  • Visit
  • Apply
  • Home
  • Research & Economic Development
  • Computational Research Center
  • Tutorials
  • Program Tutorials
  • Building and running SOFI3D - ()
Skip Section Navigation
  • Computational Research Center
  • HPC Cluster and DREAM Lab Show/hide children
    • Talon - High Performance Computing Cluster
    • DREAM Lab
  • Tutorials
  • Collaboration & Outreach
  • Support Show/hide children
    • End-User Support
    • Windows Software
  • Research Support

Building and running SOFI3D - ()

SOFI3D is used for processing three dimensional seismic data.


Building SOFI3D

  1. Clone the git repository where SOFI3D is located

    git clone https://git.scc.kit.edu/GPIAG-Software/SOFI3D.git

  2. Load one of the MPI GCC Modules

    module load mpich/ge/gcc OR module load openmpi/gcc

  3. Unload the default C compiler

    module unload gcc

  4. Change to the SOFI3D src directory

    cd SOFI3D/src

  5. Run the make all command and watch out for errors.

If you don't get any errors, SOFI3D has been successfully built.

  • NOTE: There may be some warnings about variables being set but not used. This should be fine.

Running SOFI3D on a Cluster

When running in parallel SOFI will decompose the domain you are working on and split it into smaller chunks for each processor to work on. The number of chunks will depend on the number of nodes and tasks you set in the submission file (see below) and in the SOFI3D/par/in_and_out/sofi3D.json parameter file. It is recommended to split the domain into relatively square/cubic sections.

The parameters file creates by default will not necessarily work with the settings you want to use to submit the job to the queue. You will need to edit it before attempting to submit to the cluster. The default parameters file can be found at SOFI3D/par/in_and_out/sofi3D.json. Under Domain Decomposition, the variables NPROCX, NPROCY, and NPROCZ must have their variables changed such that NPROCX * NPROCY * NPROCZ = Number of processors requested.

  • For the example submission script below NPROCX * NPROCY * NPROCZ = 8 = (4 tasks per node) * (2 nodes)

Use the following script as a template submission script. Adjust paths and resource requirements where necessary.

SOFI3D/par/in_and_out/sofi3D.json:

#________________________________- #JSON PARAMETER FILE FOR SOFI3D #________________________________- # description: example of json input file # description/name of the model: homogeneous full space (hh.c) # { "Domain Decomposition" : "comment", "NPROCX" : "2", "NPROCY" : "2", "NPROCZ" : "2", ...}

Sbatch submission script sofi3DSubmission.sh:

#!/bin/bash #SBATCH _ntasks-per-node=4 #SBATCH -N2 #SBATCH _job-name=SOFI3DTest #SBATCH _workdir=./ #SBATCH -o /home/first.last/SOFI3D/Log.txt #SBATCH -e /home/first.last/SOFI3D/Errors.txt module purge module load slurm module load mpich/ge/gcc cd /home/first.last/SOFI3D/par srun -n $SLURM_NTASKS hostname > $SLURM_JOB_ID.hosts mpirun -n $SLURM_NTASKS -machinefile $SLURM_JOB_ID.hosts ../bin/sofi3D ./in_and_out/sofi3D.json

After you've created your submission script and modified the sofi2D.json parameters file you can submit your job using sbatch.

sbatch sofi3DSubmission.sh

See the Slurm tutorial for more instructions on how to submit jobs.

Computational Research Center
Chester Fritz Library Room 334
3051 University Ave Stop 8399
Grand Forks, ND 58202-8399
P 701.777.6514
und.hpc.support@UND.edu

Hours

Mon.-Fri.: 9 a.m. - 5 p.m.

We use cookies on this site to enhance your user experience.

By clicking any link on this page you are giving your consent for us to set cookies, Privacy Information.

Ready to Enroll?

  • Request Information
  • Schedule a Visit
  • Apply Now
  • UND.info@UND.edu
  • 701.777.3000
  • Instagram
  • Facebook
  • YouTube
  • LinkedIn
  • X
  • Contact UND
  • Campus Map
  • Events Calendar
  • Community & Belonging
  • Explore Programs
  • Employment
  • Make a Gift
  • Campus Safety (SafeUND)
University of North Dakota

© 2025 University of North Dakota - Grand Forks, ND - Member of ND University System

  • Accessibility & Website Feedback
  • Terms of Use & Privacy
  • Notice of Nondiscrimination
  • Student Disclosure Information
  • Title IX
©