Update Matrix-based Benchmark

This commit is contained in:
Alauddin Maulana Hirzan 2024-06-16 20:54:03 +07:00
parent 09a9b3db9e
commit 207196a10a
Signed by: maulanahirzan
GPG key ID: 484DAC952787FA13
3 changed files with 4 additions and 3 deletions

View file

@ -32,7 +32,7 @@ class MatrixBench():
def run(self): def run(self):
print("# Linpack-like Matrix-based Floating Point Benchmark #") print("# Linpack-like Matrix-based Floating Point Benchmark #")
print("# Using NumPy as Core #") print("# Using NumPy as Core #")
for i in range(0, self.iters+1): for i in range(1, self.iters+1):
print(f"=> Epoch #{str(i).zfill(len(str(self.iters)))}", end="\r") print(f"=> Epoch #{str(i).zfill(len(str(self.iters)))}", end="\r")
self.create_matrices() self.create_matrices()
self.do_operation() self.do_operation()

View file

@ -1,7 +1,8 @@
# Matrix-based CPU Benchmark # # Matrix-based CPU Benchmark #
### Inspired by Linpack HPL benchmark ###
## Contains two options: ## ## Contains two options: ##
* NumPy script (which requires numpy lib) <= Preferable * NumPy script (which requires numpy lib) <= Preferable
* SciPy script (which requires scipy lib) * SciPy script (which requires scipy lib)
### Warning: SciPy based scipt kinda buggy and produces many warnings (the warnings already suppresed for visual) ### ### Warning: SciPy based scipt kinda buggy and produces many warnings (the warnings are already suppresed for visual) ###

View file

@ -42,7 +42,7 @@ class MatrixBench():
def run(self): def run(self):
print("# Linpack-like Matrix-based Floating Point Benchmark #") print("# Linpack-like Matrix-based Floating Point Benchmark #")
print("# Using SciPy as Core (contains Warn: Ill-conditioned Matrix) #") print("# Using SciPy as Core (contains Warn: Ill-conditioned Matrix) #")
for i in range(0, self.iters + 1): for i in range(1, self.iters + 1):
print(f"=> Epoch #{str(i).zfill(len(str(self.iters)))}", end="\r") print(f"=> Epoch #{str(i).zfill(len(str(self.iters)))}", end="\r")
self.create_matrices() self.create_matrices()
self.do_operation() self.do_operation()