On Nov 8, 2020, at 1:28 PM, Stepan Nassyr <s.na...@fz-juelich.de> wrote:
Hello,
In the context of implementing an SVE version of BLIS, I've been approached by multiple interested parties wanting to run BLIS on system-less gem5 and proprietary RTL simulators. In these cases there is no operating system or a threading environment, therefore pthread cannot be used. In case of gem5 there is also a full system mode that can support pthread - which is what we are currently using - this however comes with some overhead, so there is an incentive here as well. I am not quite sure pthread is the only hurdle to overcome in order to get it working, but it appears to be the first issue that needs to be taken care of.
I have made some naive attempts to disable pthread by hiding pthread* calls in some ifdefs, but ran into issues (I gave up after encountering segfaults, seeing bli_thrinfo_sup_grow in the call stack when calling gemm and deciding I'm in over my head).
How feasible would it be to decouple BLIS from pthread/any threading for this specific purpose? Or without modifying the code - would something like a "fake" pthread library that just serializes everything work?
--
You received this message because you are subscribed to the Google Groups "blis-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blis-devel+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/blis-devel/0742385c-6c65-45ae-bc0e-f45b0e97607en%40googlegroups.com.
On Nov 8, 2020, at 1:50 PM, Stepan Nassyr <s.na...@fz-juelich.de> wrote:
I assumed that BLIS relies on pthread unconditionally for thread safety from reading https://github.com/flame/blis/issues/247 and looking through the source code. Have I misunderstood something?
To view this discussion on the web visit https://groups.google.com/d/msgid/blis-devel/3f2b3b1e-44e2-4889-a423-d609cabecd8fn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/blis-devel/D407EA4E-0DEF-466C-A886-FE3980F48CA1%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/blis-devel/9ab68a9d-28fa-cc99-75e8-9314cd9476c7%40smu.edu.