1
General Questions and Answers / License limit
« on: August 12, 2025, 19:55 »
Hello,
how exactly license consumption is counted for QuantumATK jobs. From user experience, the license usage does not scale linearly with -n in the MPI command.
For instance, I’ve submitted jobs using --nodes=1 to --nodes=4 (sometimes 6 too) and corresponding values like -n 40, -n 80, and even -n 160, and they’ve often run without any license-related errors.
This makes it difficult to determine in advance how many licenses a job will actually consume. But sometimes I got the instructions from the IT admin that I used more than 100 Licenses (with the same setting of submission script). Below is the submission script we use for submitting jobs in our local cluster.
#!/bin/bash
# Job name
#SBATCH --job-name hse_sc
#SBATCH --nodes=1 # Number of nodes
#SBATCH --ntasks-per-node=40 # How many tasks on each node
##SBATCH --cpus-per-task=20
#SBATCH --time=72:00:00
#SBATCH --exclusive
#Export all environment variables
#SBATCH --export=ALL
# Load the QuantumATK module
# Load the QuantumATK module
module use /n/work00/software/modulefiles
module load puck_quantumatk/2023.12-sp1
# Set the executables
export ATK_EXE=/n/work00/software/quantumatk/V-2023.12-SP1/bin/atkpython
export MPI_EXE=/n/work00/software/quantumatk/V-2023.12-SP1/mpi/bin/mpiexec.hydra
export SNPSLMD_LICENSE_FILE=27027@acme
#export MKL_DYNAMIC=TRUE
# Threading
#export OMP_NUM_THREADS=2
export MKL_DYNAMIC=TRUE
${MPI_EXE} -n 12 ${ATK_EXE} optical_spectrum.py > optical_doped.log
how exactly license consumption is counted for QuantumATK jobs. From user experience, the license usage does not scale linearly with -n in the MPI command.
For instance, I’ve submitted jobs using --nodes=1 to --nodes=4 (sometimes 6 too) and corresponding values like -n 40, -n 80, and even -n 160, and they’ve often run without any license-related errors.
This makes it difficult to determine in advance how many licenses a job will actually consume. But sometimes I got the instructions from the IT admin that I used more than 100 Licenses (with the same setting of submission script). Below is the submission script we use for submitting jobs in our local cluster.
#!/bin/bash
# Job name
#SBATCH --job-name hse_sc
#SBATCH --nodes=1 # Number of nodes
#SBATCH --ntasks-per-node=40 # How many tasks on each node
##SBATCH --cpus-per-task=20
#SBATCH --time=72:00:00
#SBATCH --exclusive
#Export all environment variables
#SBATCH --export=ALL
# Load the QuantumATK module
# Load the QuantumATK module
module use /n/work00/software/modulefiles
module load puck_quantumatk/2023.12-sp1
# Set the executables
export ATK_EXE=/n/work00/software/quantumatk/V-2023.12-SP1/bin/atkpython
export MPI_EXE=/n/work00/software/quantumatk/V-2023.12-SP1/mpi/bin/mpiexec.hydra
export SNPSLMD_LICENSE_FILE=27027@acme
#export MKL_DYNAMIC=TRUE
# Threading
#export OMP_NUM_THREADS=2
export MKL_DYNAMIC=TRUE
${MPI_EXE} -n 12 ${ATK_EXE} optical_spectrum.py > optical_doped.log
