diff --git a/utilities/filterCompileCommands.py b/utilities/filterCompileCommands.py
index 999f5809b4e29f139a93d854f68171ac97b56b70..95d7e45fce529fb041d67bf9c4e0d658be8e1483 100644
--- a/utilities/filterCompileCommands.py
+++ b/utilities/filterCompileCommands.py
@@ -5,7 +5,7 @@ import sys
 
 
 def compile_command_selector(x):
-    return not ("3rdParty" in x["file"])
+    return not ("3rdParty" in x["file"]) or not (".cu" in x["file"])
 
 
 if __name__ == "__main__":