Browse Source

Add dummy implementations of openblas_get/set_affinity

tags/v0.3.29
Martin Kroeker GitHub 1 year ago
parent
commit
4060dd43e3
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      driver/others/blas_server_omp.c

+ 12
- 0
driver/others/blas_server_omp.c View File

@@ -126,6 +126,18 @@ void openblas_set_num_threads(int num_threads) {
goto_set_num_threads(num_threads);
}

#ifdef OS_LINUX

int openblas_setaffinity(int thread_idx, size_t cpusetsize, cpu_set_t* cpu_set) {
fprintf(stderr,"OpenBLAS: use OpenMP environment variables for setting cpu affinity\n");
return -1;
}
int openblas_getaffinity(int thread_idx, size_t cpusetsize, cpu_set_t* cpu_set) {
fprintf(stderr,"OpenBLAS: use OpenMP environment variables for querying cpu affinity\n");
return -1;
}
#endif

int blas_thread_init(void){

#if defined(__FreeBSD__) && defined(__clang__)


Loading…
Cancel
Save