use shark_args for vulkan debug utils flag

This commit is contained in:
PhaneeshB
2023-07-30 07:20:26 +05:30
committed by Phaneesh Barwaria
parent ce2fd84538
commit cdb037ee54

View File

@@ -3,7 +3,9 @@ from apps.stable_diffusion.src.utils.stable_args import args
# Helper function to profile the vulkan device.
def start_profiling(file_path="foo.rdc", profiling_mode="queue"):
if args.vulkan_debug_utils and "vulkan" in args.device:
from shark.parser import shark_args
if shark_args.vulkan_debug_utils and "vulkan" in args.device:
import iree
print(f"Profiling and saving to {file_path}.")