Skip to content

Commit

Permalink
Tweak karatsuba to use 12 cores
Browse files Browse the repository at this point in the history
  • Loading branch information
Gavin Howard committed Mar 2, 2021
1 parent e50723d commit 198d431
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions karatsuba.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,20 +121,20 @@ def run(cmd, env=None):

p = run([ "make", "clean" ])

print("Testing \"make -j4\"")
print("Testing \"make -j12\"")

if p.returncode != 0:
print("make returned an error ({}); exiting...".format(p.returncode))
sys.exit(p.returncode)

p = run([ "make", "-j4" ])
p = run([ "make", "-j12" ])

if p.returncode == 0:
makecmd = [ "make", "-j4" ]
print("Using \"make -j4\"")
makecmd = [ "make", "-j12" ]
print("Using \"make -j12\"")
else:
makecmd = [ "make" ]
print("Not using \"make -j4\"")
print("Not using \"make -j12\"")

if test_num != 0:
mx2 = test_num
Expand Down

0 comments on commit 198d431

Please sign in to comment.