From eda82859f9e4b376a1d00912139fc5b57df185b5 Mon Sep 17 00:00:00 2001 From: Anatoly Myachev Date: Thu, 19 Dec 2024 16:06:42 +0000 Subject: [PATCH] fixes Signed-off-by: Anatoly Myachev --- .pre-commit-config.yaml | 1 + third_party/intel/backend/driver.py | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5a3a59b3c8..92387c1fce 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,6 +6,7 @@ repos: - id: check-symlinks - id: destroyed-symlinks - id: trailing-whitespace + exclude: .*.patch - id: end-of-file-fixer - id: check-yaml - id: check-toml diff --git a/third_party/intel/backend/driver.py b/third_party/intel/backend/driver.py index 2c6a2daea1..54b6ee86f2 100644 --- a/third_party/intel/backend/driver.py +++ b/third_party/intel/backend/driver.py @@ -248,10 +248,10 @@ def format_of(ty): # Record the end of regular arguments; # subsequent arguments are architecture-specific descriptors. arg_decls = ', '.join(f"{ty_to_cpp(ty)} arg{i}" for i, ty in signature.items()) - print(f"signature: {signature}") - print(f"arg_decls: {arg_decls}") - print(f"args_list: {args_list}") - print(f"constants: {constants}") + # print(f"signature: {signature}") + # print(f"arg_decls: {arg_decls}") + # print(f"args_list: {args_list}") + # print(f"constants: {constants}") # generate glue code src = f""" @@ -368,7 +368,7 @@ def format_of(ty): if (shared_memory) {{ expected_num_params -= 1; }} - std::cout << "num_params: " << num_params << " expected_num_params: " << expected_num_params << std::endl << std::flush; + // std::cout << "num_params: " << num_params << " expected_num_params: " << expected_num_params << std::endl << std::flush; assert(num_params == expected_num_params && "number of kernel param not matched"); // Submit the imported kernel. auto cgf = [&](sycl::handler &cgh) {{