Aida 64 GPGPU benchmark audit (#9)

* Update harness

* Update readme
This commit is contained in:
nharris-lmg
2023-09-15 11:32:19 -07:00
committed by GitHub
parent f9b8e44be4
commit fa7c11dd40
4 changed files with 28 additions and 9 deletions

5
.gitignore vendored
View File

@@ -9,4 +9,7 @@
.history/
# Built Visual Studio Code Extensions
*.vsix
*.vsix
# Harness output
run/

15
aida64gpgpu/README.md Normal file
View File

@@ -0,0 +1,15 @@
# Aida64 GPGPU Benchmark
This is a script which runs the GPU benchmark of Aida64 Business version.
![Alt text](aida64_gpgpu_benchmark.png)
## Prerequisites
- Python 3.10+
- Aida64 Business installed.
## Output
report.xml - The report from Aida64 in XML format.

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 KiB

View File

@@ -1,7 +1,8 @@
'''Aida64 GPGPU test script'''
import logging
import os
import subprocess
import sys
INSTALL_DIR = "C:\\Program Files\\Aida64Business\\aida64business675"
EXECUTABLE = "aida64.exe"
@@ -10,23 +11,23 @@ script_dir = os.path.dirname(os.path.realpath(__file__))
log_dir = os.path.join(script_dir, "run")
if not os.path.isdir(log_dir):
os.mkdir(log_dir)
logging_format = '%(asctime)s %(levelname)-s %(message)s'
LOGGING_FORMAT = '%(asctime)s %(levelname)-s %(message)s'
logging.basicConfig(filename=f'{log_dir}/harness.log',
format=logging_format,
format=LOGGING_FORMAT,
datefmt='%m-%d %H:%M',
level=logging.DEBUG)
console = logging.StreamHandler()
formatter = logging.Formatter(logging_format)
formatter = logging.Formatter(LOGGING_FORMAT)
console.setFormatter(formatter)
logging.getLogger('').addHandler(console)
executable = os.path.join(INSTALL_DIR, EXECUTABLE)
report_dest = os.path.join(log_dir, "report.xml")
argstr = f"/GGBENCH {report_dest}"
result = subprocess.run([executable, "/GGBENCH", report_dest])
result = subprocess.run([executable, "/GGBENCH", report_dest], check=False)
if result.returncode > 0:
logging.error("Aida failed with exit code {result.returncode}")
logging.warn(result.stdout)
logging.warn(result.stderr)
exit(1)
logging.warning(result.stdout)
logging.warning(result.stderr)
sys.exit(1)