Fix blender benchmark for intel arc

This commit is contained in:
Nikolas
2023-12-26 08:45:13 -08:00
parent 41e4f9c0ae
commit d14f9049bb
2 changed files with 16 additions and 8 deletions

View File

@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
Changes are grouped by the date they are merged to the main branch of the repository and are ordered from newest to oldest. Dates use the ISO 8601 extended calendar date format, i.e. YYYY-MM-DD. Changes are grouped by the date they are merged to the main branch of the repository and are ordered from newest to oldest. Dates use the ISO 8601 extended calendar date format, i.e. YYYY-MM-DD.
## 2023-12-26
- Fix Blender Benchmark harness not running on device type gpu when Intel Arc GPU present.
## 2023-12-19 ## 2023-12-19
- Update menu navigation and start/end time marking for Rocket League harness - Update menu navigation and start/end time marking for Rocket League harness

View File

@@ -83,16 +83,20 @@ else:
logging.info(process.stderr) logging.info(process.stderr)
logging.error("Test failed!") logging.error("Test failed!")
else: else:
optix = "OPTIX"
cuda = "CUDA"
hip = "HIP"
one_api = "ONEAPI"
logging.info(process.stdout) logging.info(process.stdout)
logging.info(process.stderr) logging.info(process.stderr)
if "OPTIX" in process.stdout or "OPTIX" in process.stderr: if optix in process.stdout or optix in process.stderr:
DEVICE_TYPE = "OPTIX" # nvidia DEVICE_TYPE = optix # nvidia
if "CUDA" in process.stdout or "CUDA" in process.stderr: if cuda in process.stdout or cuda in process.stderr:
DEVICE_TYPE = "CUDA" # older non rtx nvidia DEVICE_TYPE = cuda # older non rtx nvidia
elif "HIP" in process.stdout or "HIP" in process.stderr: elif hip in process.stdout or hip in process.stderr:
DEVICE_TYPE = "HIP" # amd DEVICE_TYPE = hip # amd
elif "oneAPI" in process.stdout or "oneAPI" in process.stderr: elif one_api in process.stdout or one_api in process.stderr:
DEVICE_TYPE = "oneAPI" # intel DEVICE_TYPE = one_api # intel
arg_string = ["blender", "list"] arg_string = ["blender", "list"]
run_array = [ABS_EXECUTABLE_PATH, "benchmark"] + SCENE + \ run_array = [ABS_EXECUTABLE_PATH, "benchmark"] + SCENE + \