Support for OMP threads in SGE adapter