Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thread pinning #99

Open
mshiryaev opened this issue Aug 29, 2017 · 4 comments
Open

Thread pinning #99

mshiryaev opened this issue Aug 29, 2017 · 4 comments

Comments

@mshiryaev
Copy link

Hello, are there any plans to add support for thread pinning on CPU cores?

@soumith
Copy link
Member

soumith commented Aug 29, 2017

we don't have any plans

@mshiryaev
Copy link
Author

@soumith thanks for quick reply.
So what approach would you suggest to pin lua threads? I found only likwid package what can be utilized for that purpose (https:/RRZE-HPC/likwid). Maybe you know other ways?

lua 'threads' package is used in Torch LMDB dataloader and pinning to dedicated cores can improve performance.

@soumith
Copy link
Member

soumith commented Aug 29, 2017

you could directly use ffi and call the relevant C functions. it's probably a lot simpler to do it that way

@mshiryaev
Copy link
Author

@soumith thanks for suggestion, just used pthread_setaffinity_np(pthread_self(), <core_id>).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants