mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-27 05:35:28 -04:00
Makefile: Use .cu extension also for HIP kernels
This commit is contained in:
parent
dc175cdaec
commit
bd979643ea
9 changed files with 18 additions and 26 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue