penv
The penv directive defines the parallel environment to use when submitting tasks to the SGE resource manager. For example:
process blast {
cpus 4
penv 'smp'
executor 'sge'
script:
"""
blastp -query input_sequence -num_threads ${task.cpus}
"""
}
Refer to your cluster documentation or your system administrator to determine whether this feature is supported in your environment.