Skip to content

Commit 8668571

Browse files
authored
add openblas_getaffinity()
1 parent daca016 commit 8668571

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cblas.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ char* openblas_get_corename(void);
2828
#ifdef OPENBLAS_OS_LINUX
2929
/* Sets thread affinity for OpenBLAS threads. `thread_idx` is in [0, openblas_get_num_threads()-1]. */
3030
int openblas_setaffinity(int thread_idx, size_t cpusetsize, cpu_set_t* cpu_set);
31+
/* Queries thread affinity for OpenBLAS threads. `thread_idx` is in [0, openblas_get_num_threads()-1]. */
32+
int openblas_getaffinity(int thread_idx, size_t cpusetsize, cpu_set_t* cpu_set);
3133
#endif
3234

3335
/* Get the parallelization type which is used by OpenBLAS */

0 commit comments

Comments
 (0)