Boost logo

Ublas :

Subject: Re: [ublas] uBlas and OpenMP
From: Matwey V. Kornilov (matwey.kornilov_at_[hidden])
Date: 2011-03-28 16:20:08


Try to change number of active threads, for instance type:

export OMP_NUM_THREADS=2

before running your programm. Due to OpenMP scheduling there is possible
performance degeneracy with increasing of threads.

Nasos Iliopoulos wrote:

> Great to know!
>
> I don't feel that the example I posted earlier is by any means complete,
> optimized or whatever. I just pointed out the locations in uBlas one may
> want to start looking to add OpenMP parallelization into it.
>
> In any case if you have any further experience to share it would be very
> useful!
>
> Thanks,
> Nasos