Non POSIX platforms single threaded implementation

83 views
Skip to first unread message

Shaurya Sharma

unread,
Nov 23, 2017, 4:00:50 AM11/23/17
to gemmlowp
Hi,

I'm looking to use gemmlowp on platforms that do not have POSIX support. It looks to me that an #include "public/gemmlowp.h" will include dispatch_gemm_shape.h thus including "multi_thread_gemm.h" which includes pthread.h. SingleThreadGemm seems to be what I would like to use. 

  • As far as I can tell there is no preprocessor directive which will allow me to only use the single threaded implementation?
  • If I set max_num_threads to 1, it also looks to me as if pthreads and sysconf are not needed?
Is there any simple way for me to just use the single threaded implementation without requiring pthreads or sysconf which does not involve me having to change the gemm source code?


Benoit Jacob

unread,
Nov 23, 2017, 9:56:05 AM11/23/17
to Shaurya Sharma, gemmlowp

--
You received this message because you are subscribed to the Google Groups "gemmlowp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gemmlowp+unsubscribe@googlegroups.com.
To post to this group, send email to gemm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gemmlowp/fb03e8b3-1492-4f6f-9909-cb9f63087699%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Shaurya Sharma

unread,
Nov 24, 2017, 5:11:16 AM11/24/17
to gemmlowp
Good timing indeed.

Thanks, this looks promising :)
Reply all
Reply to author
Forward
0 new messages