Commit Graph

3 Commits

Author SHA1 Message Date
Maxim Belkin
13c975684a c10/util/thread_name.cpp: pthread_setname_np requires Glibc 2.12 (#55063)
Summary:
`pthread_setname_np` requires Glibc 2.12. The patch reproduces what numactl does: 93867c59b0/syscall.c (L132-L136)

Related to issue https://github.com/pytorch/pytorch/issues/23482 and the `pthread_setname_np.patch` patch that adamjstewart shared.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/55063

Reviewed By: soulitzer

Differential Revision: D28577146

Pulled By: malfet

fbshipit-source-id: 85867b6f04795b1ae7bd46dbbc501cfd0ec9f163
2021-05-21 10:26:51 -07:00
Xiang Gao
15c7486416 Canonicalize includes in c10, and add tests for it (#36299)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/36299

Test Plan: Imported from OSS

Differential Revision: D20943005

Pulled By: ezyang

fbshipit-source-id: 9dd0a58824bd0f1b5ad259942f92954ba1f63eae
2020-04-10 12:07:52 -07:00
James Reed
1d26a3ae7e Open registration for c10 thread pool (#17788)
Summary:
1. Move ATen threadpool & open registration mechanism to C10
2. Move the `global_work_queue` to use this open registration mechanism, to allow users to substitute in their own
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17788

Reviewed By: zdevito

Differential Revision: D14379707

Pulled By: jamesr66a

fbshipit-source-id: 949662d0024875abf09907d97db927f160c54d45
2019-03-08 15:38:41 -08:00