Initial implementation of blender benchmark addon
Just some glue logic to query progress and results from benchmark. Needed to move files around, so oth standalone and addon are happy.
This commit is contained in:
@@ -5,7 +5,6 @@ import sys
|
||||
|
||||
SCRIPT_PATH = os.path.realpath(__file__)
|
||||
SCRIPT_DIR = os.path.dirname(SCRIPT_PATH)
|
||||
sys.path.append(os.path.join(SCRIPT_DIR, "third_party"))
|
||||
|
||||
import argparse
|
||||
import datetime
|
||||
@@ -364,8 +363,8 @@ def main():
|
||||
print("Using device name override: {}" .
|
||||
format(farm_config["device_name_override"]))
|
||||
# Print prelmiinary information.
|
||||
blender_dvice_info = benchrunner.benchmarkGetDeviceInfo(ctx)
|
||||
if not blender_dvice_info['device_type']:
|
||||
blender_device_info = benchrunner.benchmarkGetDeviceInfo(ctx)
|
||||
if not blender_device_info['device_type']:
|
||||
logger.ERROR("Requested device can not be enabled in Blender.")
|
||||
logger.INFO("Requested device details:")
|
||||
logger.INFO(" Device type: {}" . format(ctx.device_type))
|
||||
@@ -374,9 +373,9 @@ def main():
|
||||
else:
|
||||
logger.INFO("Configured device details:")
|
||||
logger.INFO(" Device type: {}" .
|
||||
format(blender_dvice_info["device_type"]))
|
||||
format(blender_device_info["device_type"]))
|
||||
logger.INFO(" Compute devices:")
|
||||
for compute_device in blender_dvice_info["compute_devices"]:
|
||||
for compute_device in blender_device_info["compute_devices"]:
|
||||
logger.INFO(" {}" . format(compute_device))
|
||||
# Run benchmark.
|
||||
all_stats = benchrunner.benchmarkAll(ctx)
|
||||
@@ -386,7 +385,7 @@ def main():
|
||||
"timestamp": timestamp,
|
||||
"blender_version": system_info.getBlenderVersion(ctx),
|
||||
"system_info": system_info.gatherSystemInfo(ctx),
|
||||
"device_info": blender_dvice_info,
|
||||
"device_info": blender_device_info,
|
||||
"stats": all_stats if all_stats else {}
|
||||
}
|
||||
if farm_config["device_name_override"]:
|
||||
|
Reference in New Issue
Block a user