Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cpp-linter workflow to avoid CUDA/HIP failures #105

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

ggeorgakoudis
Copy link
Collaborator

No description provided.

@ggeorgakoudis ggeorgakoudis self-assigned this Jan 10, 2025
@ggeorgakoudis ggeorgakoudis marked this pull request as draft January 10, 2025 02:59
@ggeorgakoudis ggeorgakoudis marked this pull request as ready for review January 10, 2025 03:00
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-tidy v18.1.3

Click here for the full clang-tidy patch
diff --git a/lib/JitEngineDevice.hpp b/lib/JitEngineDevice.hpp
index 1020c8a..57e117a 100644
--- a/lib/JitEngineDevice.hpp
+++ b/lib/JitEngineDevice.hpp
@@ -468 +468 @@ void JitEngineDevice<ImplT>::specializeIR(Module &M, StringRef FnName,
-  for (int i = 0; i < 10; i += 2)
+  for (int I = 0; I < 10; I += 2)

Used clang-format v18.1.3

No concerns from clang-format.

Have any feedback or feature suggestions? Share it here.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-tidy v18.1.3

Click here for the full clang-tidy patch
diff --git a/lib/JitEngineDevice.hpp b/lib/JitEngineDevice.hpp
index 1020c8a..57e117a 100644
--- a/lib/JitEngineDevice.hpp
+++ b/lib/JitEngineDevice.hpp
@@ -468 +468 @@ void JitEngineDevice<ImplT>::specializeIR(Module &M, StringRef FnName,
-  for (int i = 0; i < 10; i += 2)
+  for (int I = 0; I < 10; I += 2)

Used clang-format v18.1.3

No concerns from clang-format.

Have any feedback or feature suggestions? Share it here.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-tidy v18.1.3

Click here for the full clang-tidy patch
diff --git a/lib/JitEngineDevice.hpp b/lib/JitEngineDevice.hpp
index 1020c8a..57e117a 100644
--- a/lib/JitEngineDevice.hpp
+++ b/lib/JitEngineDevice.hpp
@@ -468 +468 @@ void JitEngineDevice<ImplT>::specializeIR(Module &M, StringRef FnName,
-  for (int i = 0; i < 10; i += 2)
+  for (int I = 0; I < 10; I += 2)

Used clang-format v18.1.3

No concerns from clang-format.

Have any feedback or feature suggestions? Share it here.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-tidy v18.1.3

Click here for the full clang-tidy patch
diff --git a/lib/JitEngineDevice.hpp b/lib/JitEngineDevice.hpp
index 1020c8a..57e117a 100644
--- a/lib/JitEngineDevice.hpp
+++ b/lib/JitEngineDevice.hpp
@@ -468 +468 @@ void JitEngineDevice<ImplT>::specializeIR(Module &M, StringRef FnName,
-  for (int i = 0; i < 10; i += 2)
+  for (int I = 0; I < 10; I += 2)

Used clang-format v18.1.3

No concerns from clang-format.

Have any feedback or feature suggestions? Share it here.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-tidy v18.1.3

Click here for the full clang-tidy patch
diff --git a/lib/JitEngineDevice.hpp b/lib/JitEngineDevice.hpp
index 1020c8a..57e117a 100644
--- a/lib/JitEngineDevice.hpp
+++ b/lib/JitEngineDevice.hpp
@@ -468 +468 @@ void JitEngineDevice<ImplT>::specializeIR(Module &M, StringRef FnName,
-  for (int i = 0; i < 10; i += 2)
+  for (int I = 0; I < 10; I += 2)

Used clang-format v18.1.3

No concerns from clang-format.

Have any feedback or feature suggestions? Share it here.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-tidy v18.1.3

Click here for the full clang-tidy patch
diff --git a/lib/JitEngineDevice.hpp b/lib/JitEngineDevice.hpp
index 1020c8a..57e117a 100644
--- a/lib/JitEngineDevice.hpp
+++ b/lib/JitEngineDevice.hpp
@@ -468 +468 @@ void JitEngineDevice<ImplT>::specializeIR(Module &M, StringRef FnName,
-  for (int i = 0; i < 10; i += 2)
+  for (int I = 0; I < 10; I += 2)

Used clang-format v18.1.3

No concerns from clang-format.

Have any feedback or feature suggestions? Share it here.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-tidy v18.1.3

Click here for the full clang-tidy patch
diff --git a/lib/JitEngineDevice.hpp b/lib/JitEngineDevice.hpp
index 1020c8a..57e117a 100644
--- a/lib/JitEngineDevice.hpp
+++ b/lib/JitEngineDevice.hpp
@@ -468 +468 @@ void JitEngineDevice<ImplT>::specializeIR(Module &M, StringRef FnName,
-  for (int i = 0; i < 10; i += 2)
+  for (int I = 0; I < 10; I += 2)

Used clang-format v18.1.3

No concerns from clang-format.

Have any feedback or feature suggestions? Share it here.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-tidy v18.1.3

Click here for the full clang-tidy patch
diff --git a/lib/JitEngineDevice.hpp b/lib/JitEngineDevice.hpp
index 1020c8a..57e117a 100644
--- a/lib/JitEngineDevice.hpp
+++ b/lib/JitEngineDevice.hpp
@@ -468 +468 @@ void JitEngineDevice<ImplT>::specializeIR(Module &M, StringRef FnName,
-  for (int i = 0; i < 10; i += 2)
+  for (int I = 0; I < 10; I += 2)

Used clang-format v18.1.3

No concerns from clang-format.

Have any feedback or feature suggestions? Share it here.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-tidy v18.1.3

No concerns from clang-tidy.

Used clang-format v18.1.3

Click here for the full clang-format patch
diff --git a/lib/JitEngineDevice.hpp b/lib/JitEngineDevice.hpp
index a8f54fa..626d1e5 100644
--- a/lib/JitEngineDevice.hpp
+++ b/lib/JitEngineDevice.hpp
@@ -717 +717,2 @@ std::unique_ptr<Module> JitEngineDevice<ImplT>::linkJitModule(
-  }return LinkedModule;
+  }
+  return LinkedModule;

Have any feedback or feature suggestions? Share it here.

- Keep clang-tidy review but do not fail due to compilation errors
@ggeorgakoudis ggeorgakoudis changed the title Fix cpp-linter for CUDA/HIP Fix cpp-linter workflow to avoid CUDA/HIP failures Jan 10, 2025
@ggeorgakoudis ggeorgakoudis merged commit 89f1615 into main Jan 10, 2025
9 checks passed
@ggeorgakoudis ggeorgakoudis deleted the fix-cpp-linter branch January 10, 2025 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant