Use num_threads from runtime