Savolainen, Petri (Nokia - FI/Espoo) writes:

>> 
>> I looked into the call tree of odp_init_local but couldn't find anything
>> that would be sensitive to thread affinity like register initializations
>> etc. Were you referring to a platform other than linux-generic.
>> 
>> Regards,
>> Ruslan
>
> Yes, this concerns other, more HW accelerated platforms. Also odp-linux could 
> be optimized further to utilize e.g. per CPU timer/time HW when available.
>

Wouldn't it be better to let each platform deal with the potential race
issue if any and document this? Or perhaps affinity setting can be moved to
odp_thread_init_local or even before so it's done by the thread itself.

Cause the way it is today, linux-generic as platform is not very
"generic". It works on Linux with GLIBC
only. pthread_attr_setaffinity_np API is not supported on musl or uclibc
which are popular in the embedded space.


> - Petri

_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to