singa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (SINGA-45) Set openblas num threads in job configuration
Date Thu, 13 Aug 2015 05:50:46 GMT


ASF subversion and git services commented on SINGA-45:

Commit da844afd1229494684338b865c4d8f570370ab27 in incubator-singa's branch refs/heads/master
from wang sheng
[;h=da844af ]

SINGA-45 Set openblas num threads in job configuration

test and merge to master

> Set openblas num threads in job configuration
> ---------------------------------------------
>                 Key: SINGA-45
>                 URL:
>             Project: Singa
>          Issue Type: New Feature
>            Reporter: wangwei
> SINGA uses OpenBlas to do time consuming operations like matrix multiplications. 
> According to [OpenBlas's documentation|],
if multiple worker threads are launched within one process, we should set OpenBlas to use
single thread. 
> This can be done by adding a job configuration field, e.g., openblas_num_thread, and
calling openblas_set_num_threads() in the dirver ( program. 
> If users do not set this field, SINGA should set it to 1 if there are multiple worker
threads within one SINGA process. If there is only one worker thread, then let OpenBlas use
as many threads (cores) as possible. 
> In practice, better performance is achieved by launching n workers (each assigned 1/n
images) than using OpenBlas with n threads. Because OpenBlas only parallelize a subset of
operations. n workers can run in fully parallel.

This message was sent by Atlassian JIRA

View raw message