Skip to content

Commit

Permalink
Add a special OpenBLAS header handling for PowerPC (#754)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandr Guzhva <alexanderguzhva@gmail.com>
  • Loading branch information
alexanderguzhva committed Aug 8, 2024
1 parent 38e4c88 commit e908223
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/knowhere/comp/thread_pool.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,15 @@
#pragma once

#include <omp.h>

#ifdef __linux__

#if defined(__PPC64__) || defined(__ppc64__) || defined(__PPC64LE__) || defined(__ppc64le__) || defined(__powerpc64__)
#include <openblas/cblas.h>
#else
#include <cblas.h>
#endif

#include <sys/resource.h>
#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 30
#include <sys/syscall.h>
Expand Down

0 comments on commit e908223

Please sign in to comment.