Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoly Myachev <[email protected]>
  • Loading branch information
anmyachev committed Dec 19, 2024
1 parent 25b5508 commit eda8285
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions third_party/intel/backend/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down Expand Up @@ -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) {{
Expand Down

0 comments on commit eda8285

Please sign in to comment.