Merge branch 'develop' of https://github.com/TimothyGu/OpenBLAS into TimothyGu-develop
authorZhang Xianyi <traits.zhang@gmail.com>
Sat, 28 Jun 2014 12:51:31 +0000 (20:51 +0800)
committerZhang Xianyi <traits.zhang@gmail.com>
Sat, 28 Jun 2014 12:51:31 +0000 (20:51 +0800)
Conflicts:
driver/others/memory.c

1  2 
Makefile.install
common.h
driver/others/blas_server.c
driver/others/init.c
driver/others/memory.c
driver/others/parameter.c
exports/Makefile

Simple merge
diff --cc common.h
Simple merge
Simple merge
Simple merge
@@@ -292,10 -293,11 +292,10 @@@ int blas_get_cpu_number(void)
    if (blas_goto_num < 0) blas_goto_num = 0;
  
    if (blas_goto_num == 0) {
 -          p = getenv("GOTO_NUM_THREADS");
 -              if (p) blas_goto_num = atoi(p);
 +              if (readenv(p,"GOTO_NUM_THREADS")) blas_goto_num = atoi(p);
                if (blas_goto_num < 0) blas_goto_num = 0;
    }
-   
  #endif
  
    blas_omp_num = 0;
@@@ -781,11 -778,10 +781,11 @@@ static void *alloc_hugetlb(void *addres
                                      MEM_LARGE_PAGES | MEM_RESERVE | MEM_COMMIT,
                                      PAGE_READWRITE);
  
 -  AdjustTokenPrivileges(hToken, TRUE, &tp, 0, (PTOKEN_PRIVILEGES)NULL, NULL);
 +  tp.Privileges[0].Attributes = 0;
 +  AdjustTokenPrivileges(hToken, FALSE, &tp, 0, NULL, NULL);
  
    if (map_address == (void *)NULL) map_address = (void *)-1;
-   
  #endif
  
    if (map_address != (void *)-1){
Simple merge
Simple merge