Skip to content

Commit 017f197

Browse files
committed
openblas: disable openMP
1 parent 9f21645 commit 017f197

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

Formula/o/openblas.rb

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ class Openblas < Formula
4141
depends_on "pkgconf" => :test
4242
depends_on "gcc" # for gfortran
4343

44-
on_macos do
45-
depends_on "libomp"
46-
end
47-
4844
def install
4945
ENV.runtime_cpu_detection
5046

@@ -58,7 +54,6 @@ def install
5854
end
5955

6056
args = %W[
61-
-DUSE_OPENMP=ON
6257
-DBUILD_SHARED_LIBS=ON
6358
-DBUILD_STATIC_LIBS=ON
6459
-DNUM_THREADS=64
@@ -67,12 +62,6 @@ def install
6762

6863
args << "-DDYNAMIC_ARCH=ON" if !OS.mac? || Hardware::CPU.intel?
6964

70-
if OS.mac?
71-
libomp = Formula["libomp"]
72-
args << "-DOpenMP_Fortran_LIB_NAMES=omp"
73-
args << "-DOpenMP_omp_LIBRARY=#{libomp.opt_lib}/libomp.dylib"
74-
end
75-
7665
system "cmake", "-S", ".", "-B", "build", *args, *std_cmake_args
7766
system "cmake", "--build", "build"
7867
system "cmake", "--install", "build"

0 commit comments

Comments
 (0)