Efficient OpenMP support on platforms with limited resources