Functions | |
| int | getCurrentProcessor () |
| Function to return the processor number that the current thread is running on. | |
| std::thread::native_handle_type | getCurrentThread () |
| Return the native handle to the current thread. | |
| int | getNumberOfProcessors () |
| Function to return the number of processors available. | |
| std::vector< int > | getProcessAffinity () |
| Function to return the affinity of the current process. | |
| std::vector< int > | getThreadAffinity (std::thread::native_handle_type thread) |
| void | setProcessAffinity (const std::vector< int > &procs) |
| Function to set the affinity of the current process. | |
| void | setThreadAffinity (std::thread::native_handle_type thread, const std::vector< int > &procs) |
| int AMP::Thread::getCurrentProcessor | ( | ) |
Function to return the processor number that the current thread is running on.
| std::thread::native_handle_type AMP::Thread::getCurrentThread | ( | ) |
Return the native handle to the current thread.
| int AMP::Thread::getNumberOfProcessors | ( | ) |
Function to return the number of processors available.
| std::vector< int > AMP::Thread::getProcessAffinity | ( | ) |
Function to return the affinity of the current process.
| std::vector< int > AMP::Thread::getThreadAffinity | ( | std::thread::native_handle_type | thread | ) |
Function to return the affinity of the given thread
| thread | The native thread handle |
| void AMP::Thread::setProcessAffinity | ( | const std::vector< int > & | procs | ) |
Function to set the affinity of the current process.
| void AMP::Thread::setThreadAffinity | ( | std::thread::native_handle_type | thread, |
| const std::vector< int > & | procs | ||
| ) |
Set the given thread to have the specified affinity
| thread | The native thread handle |
| procs | The processors to use |
|
Advanced Multi-Physics (AMP) Oak Ridge National Laboratory Idaho National Laboratory Los Alamos National Laboratory |
This page automatically produced from the source code by Last updated: Tue Mar 10 2026 13:06:45. Comments on this page |