Method: ParallelParser#cpu_num

Defined in:
lib/biodiversity/parser.rb

#cpu_numObject

Public: Returns the number of cores/CPUs.

Returns Integer of cores/CPUs.



83
84
85
# File 'lib/biodiversity/parser.rb', line 83

def cpu_num
  @cpu_num ||= Parallel.processor_count
end