Bugzilla – Attachment 654 Details for
Bug 1169
thread local storage for the Eigen thread count
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Forgot Password
Login:
[x]
This bugzilla service is closed. All entries have been migrated to
https://gitlab.com/libeigen/eigen
testcase
TestEigen.cc (text/plain), 432 bytes, created by
fabien chĂȘne
on 2016-02-17 15:26:07 UTC
(
hide
)
Description:
testcase
Filename:
MIME Type:
Creator:
fabien chĂȘne
Created:
2016-02-17 15:26:07 UTC
Size:
432 bytes
patch
obsolete
>#include <Eigen/Core> >#include <cassert> > >int main() >{ > int k = 0; > >#pragma omp parallel for > for( int i = 0; i < 100; ++i ) > { > Eigen::setNbThreads( i ); // or Eigen::setNbThreadsInThisThread( i ) > > // do some work... > for( int j = 0; j < 20; j++ ) > { > k += j; > } > > assert( Eigen::nbThreads() == i ); // or Eigen::nbThreadsInThisThread() > } > > assert( k != 0 ); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1169
:
654
|
665