mirror of
https://github.com/LTTLabsOSS/markbench-tests.git
synced 2026-01-09 22:18:00 -05:00
5
.gitignore
vendored
5
.gitignore
vendored
@@ -9,4 +9,7 @@
|
||||
.history/
|
||||
|
||||
# Built Visual Studio Code Extensions
|
||||
*.vsix
|
||||
*.vsix
|
||||
|
||||
# Harness output
|
||||
run/
|
||||
15
aida64gpgpu/README.md
Normal file
15
aida64gpgpu/README.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# Aida64 GPGPU Benchmark
|
||||
|
||||
This is a script which runs the GPU benchmark of Aida64 Business version.
|
||||
|
||||

|
||||
|
||||
## Prerequisites
|
||||
|
||||
- Python 3.10+
|
||||
- Aida64 Business installed.
|
||||
|
||||
## Output
|
||||
|
||||
report.xml - The report from Aida64 in XML format.
|
||||
|
||||
BIN
aida64gpgpu/aida64_gpgpu_benchmark.png
Normal file
BIN
aida64gpgpu/aida64_gpgpu_benchmark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 165 KiB |
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user