Fix compiler warnings
This commit is contained in:
parent
26bc15258a
commit
f4248af26e
|
@ -281,6 +281,8 @@ int get_node(void);
|
||||||
static int increased_threads = 0;
|
static int increased_threads = 0;
|
||||||
|
|
||||||
#ifdef OS_LINUX
|
#ifdef OS_LINUX
|
||||||
|
extern int openblas_get_num_threads(void);
|
||||||
|
|
||||||
int openblas_setaffinity(int thread_idx, size_t cpusetsize, cpu_set_t* cpu_set) {
|
int openblas_setaffinity(int thread_idx, size_t cpusetsize, cpu_set_t* cpu_set) {
|
||||||
const int active_threads = openblas_get_num_threads();
|
const int active_threads = openblas_get_num_threads();
|
||||||
|
|
||||||
|
@ -602,7 +604,7 @@ int blas_thread_init(void){
|
||||||
if(ret!=0){
|
if(ret!=0){
|
||||||
struct rlimit rlim;
|
struct rlimit rlim;
|
||||||
const char *msg = strerror(ret);
|
const char *msg = strerror(ret);
|
||||||
fprintf(STDERR, "OpenBLAS blas_thread_init: pthread_create failed for thread %ld of %ld: %s\n", i+1,blas_num_threads,msg);
|
fprintf(STDERR, "OpenBLAS blas_thread_init: pthread_create failed for thread %ld of %d: %s\n", i+1,blas_num_threads,msg);
|
||||||
#ifdef RLIMIT_NPROC
|
#ifdef RLIMIT_NPROC
|
||||||
if(0 == getrlimit(RLIMIT_NPROC, &rlim)) {
|
if(0 == getrlimit(RLIMIT_NPROC, &rlim)) {
|
||||||
fprintf(STDERR, "OpenBLAS blas_thread_init: RLIMIT_NPROC "
|
fprintf(STDERR, "OpenBLAS blas_thread_init: RLIMIT_NPROC "
|
||||||
|
|
|
@ -2070,7 +2070,7 @@ if (!release->address) return;
|
||||||
if (munmap(release -> address, BUFFER_SIZE)) {
|
if (munmap(release -> address, BUFFER_SIZE)) {
|
||||||
int errsv=errno;
|
int errsv=errno;
|
||||||
perror("OpenBLAS : munmap failed:");
|
perror("OpenBLAS : munmap failed:");
|
||||||
printf("error code=%d,\trelease->address=%lx\n",errsv,release->address);
|
printf("error code=%d,\trelease->address=%p\n",errsv,release->address);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue