[llvm] [AMDGPU][OpenMP] Using HSA API calls for APU detection. (PR #90186)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 30 03:21:38 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 2cb97c7e29029dc552c66b3ddf6030d826538d47 127c59ed32513abe0c9dcd71ea5da5c736a5820d -- offload/plugins-nextgen/amdgpu/src/rtl.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/offload/plugins-nextgen/amdgpu/src/rtl.cpp b/offload/plugins-nextgen/amdgpu/src/rtl.cpp
index 8c6e22d94c..23f1741cc5 100644
--- a/offload/plugins-nextgen/amdgpu/src/rtl.cpp
+++ b/offload/plugins-nextgen/amdgpu/src/rtl.cpp
@@ -2815,7 +2815,8 @@ private:
/// Detect if current architecture is an APU.
Error checkIfAPU() {
-#if (HSA_AMD_INTERFACE_VERSION_MAJOR >= 1 && HSA_AMD_INTERFACE_VERSION_MINOR >= 5)
+#if (HSA_AMD_INTERFACE_VERSION_MAJOR >= 1 && \
+ HSA_AMD_INTERFACE_VERSION_MINOR >= 5)
uint8_t MemoryProperties[8];
``````````
</details>
https://github.com/llvm/llvm-project/pull/90186
More information about the llvm-commits
mailing list