hsuwill000 commited on
Commit
d3a6a90
·
verified ·
1 Parent(s): 7a13824

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -13,6 +13,7 @@ def run_command(command, cwd=None):
13
  def install_openblas():
14
  # Step 1: Clone the OpenBLAS repository
15
  print("Cloning the OpenBLAS repository...")
 
16
  run_command("git clone https://github.com/OpenMathLib/OpenBLAS.git")
17
 
18
  # Step 2: Change to the OpenBLAS directory
@@ -20,11 +21,11 @@ def install_openblas():
20
 
21
  # Step 3: Build OpenBLAS
22
  print("Building OpenBLAS...")
23
- run_command("make")
24
 
25
  # Step 4: Install OpenBLAS
26
  print("Installing OpenBLAS...")
27
- run_command("sudo make install")
28
 
29
  if __name__ == "__main__":
30
- install_openblas()
 
13
  def install_openblas():
14
  # Step 1: Clone the OpenBLAS repository
15
  print("Cloning the OpenBLAS repository...")
16
+ run_command("apt-get install build-essential gfortran")
17
  run_command("git clone https://github.com/OpenMathLib/OpenBLAS.git")
18
 
19
  # Step 2: Change to the OpenBLAS directory
 
21
 
22
  # Step 3: Build OpenBLAS
23
  print("Building OpenBLAS...")
24
+ run_command("make -j 2")
25
 
26
  # Step 4: Install OpenBLAS
27
  print("Installing OpenBLAS...")
28
+ run_command("make install")
29
 
30
  if __name__ == "__main__":
31
+ install_openblas()