Makefile: Use .cu extension also for HIP kernels

This commit is contained in:
Ole Schütt 2022-03-20 16:56:21 +01:00 committed by Ole Schütt
parent dc175cdaec
commit bd979643ea
9 changed files with 18 additions and 26 deletions

View file

@ -187,11 +187,11 @@ def process_file(fn, allow_modifications):
run_local_tool("./tools/doxify/doxify.sh", fn)
run_prettify(fn)
if re.match(r".*\.(c|cu|cc|h|hpp)$", fn):
if re.match(r".*\.(c|cu|h)$", fn):
run_remote_tool("clangformat", fn)
if re.match(r".*\.(cpp|cxx|hcc|hxx)$", fn):
raise Exception(f"File extension not supported by build system.")
if re.match(r".*\.(cc|cpp|cxx|hcc|hpp|hxx)$", fn):
raise Exception(f"C++ is not supported.")
if re.match(r"(.*/PACKAGE)|(.*\.py)$", fn):
ast.parse(orig_content, filename=fn)