|
@@ -778,8 +778,11 @@ static int initialized = 0; |
|
|
void gotoblas_affinity_init(void) { |
|
|
void gotoblas_affinity_init(void) { |
|
|
|
|
|
|
|
|
int cpu, num_avail; |
|
|
int cpu, num_avail; |
|
|
|
|
|
#ifndef USE_OPENMP |
|
|
cpu_set_t cpu_mask; |
|
|
cpu_set_t cpu_mask; |
|
|
|
|
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
int i; |
|
|
|
|
|
|
|
|
if (initialized) return; |
|
|
if (initialized) return; |
|
|
|
|
|
|
|
|
initialized = 1; |
|
|
initialized = 1; |
|
@@ -826,7 +829,6 @@ void gotoblas_affinity_init(void) { |
|
|
cpu_set_t *cpusetp; |
|
|
cpu_set_t *cpusetp; |
|
|
int nums; |
|
|
int nums; |
|
|
int ret; |
|
|
int ret; |
|
|
int i; |
|
|
|
|
|
|
|
|
|
|
|
#ifdef DEBUG |
|
|
#ifdef DEBUG |
|
|
fprintf(stderr, "Shared Memory Initialization.\n"); |
|
|
fprintf(stderr, "Shared Memory Initialization.\n"); |
|
|