Skip to content

Commit

Permalink
Syntax issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewHambley committed Jul 1, 2024
1 parent 48c3c72 commit 98e042d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/fab/steps/compile_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def _compile_file(arg: Tuple[AnalysedC, MpCommonArgs]):
if not isinstance(compiler, CCompiler):
raise RuntimeError(f"Unexpected tool '{compiler.name}' of type "
f"'{type(compiler)}' instead of CCompiler")
with (Timer() as timer):
with Timer() as timer:
flags = Flags(mp_payload.flags.flags_for_path(path=analysed_file.fpath,
config=config))
obj_combo_hash = _get_obj_combo_hash(compiler, analysed_file, flags)
Expand Down
5 changes: 3 additions & 2 deletions source/fab/steps/psyclone.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ def _analyse_x90s(config, x90s: Set[Path]) -> Dict[Path, AnalysedX90]:
return analysed_x90


def _analyse_kernels(config, kernel_roots) -> Dict[str, int]:
def _analyse_kernels(config: BuildConfig,
kernel_roots: List[Path]) -> Dict[str, int]:
"""
We want to hash the kernel metadata (type defs).
Expand Down Expand Up @@ -324,7 +325,7 @@ def _analyse_kernels(config, kernel_roots) -> Dict[str, int]:
for af in analysed_fortran:
assert set(af.psyclone_kernels).isdisjoint(all_kernel_hashes), \
("duplicate kernel name(s): "
+ set(af.psyclone_kernels) & set(all_kernel_hashes))
+ str(set(af.psyclone_kernels) & set(all_kernel_hashes)))
all_kernel_hashes.update(af.psyclone_kernels)

return all_kernel_hashes
Expand Down

0 comments on commit 98e042d

Please sign in to comment.