compile-time openblas define

49 views
Skip to first unread message

Iakov

unread,
Sep 6, 2016, 10:29:32 AM9/6/16
to OpenBLAS-users
Hi,
The software I'm working on can work with different implementations of BLAS. It's multithreaded so I would like OpenBLAS to use one thread only.
The proper way to do this is through openblas_set_num_threads(1).
Is there a way to determine if BLAS implementation is OpenBLAS? I was thinking of a simple construct such as
#ifdef OPENBLAS
openblas_set_num_threads(1)
#endif
Any advice on that?

Thanks,
Iakov

Zhang Xianyi

unread,
Sep 6, 2016, 10:36:09 AM9/6/16
to Iakov, OpenBLAS-users
Hi Iakov,

Good point.
On compiling time,  we didn't define "OPENBLAS" macro.

Xianyi

--
You received this message because you are subscribed to the Google Groups "OpenBLAS-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openblas-users+unsubscribe@googlegroups.com.
To post to this group, send email to openblas-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages