[flang-commits] [flang] [flang][cuda] Fix module registration (PR #113358)
via flang-commits
flang-commits at lists.llvm.org
Tue Oct 22 11:47:59 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 06d192925d3510d0af6c10e6f64f6deabf66b75f deec9bb79d4eaed0225b9493d769833b3088cc44 --extensions cpp -- flang/runtime/CUDA/registration.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/flang/runtime/CUDA/registration.cpp b/flang/runtime/CUDA/registration.cpp
index b83a43efaf..67379c1547 100644
--- a/flang/runtime/CUDA/registration.cpp
+++ b/flang/runtime/CUDA/registration.cpp
@@ -21,7 +21,7 @@ extern void __cudaRegisterFunction(void **fatCubinHandle, const char *hostFun,
uint3 *bid, dim3 *bDim, dim3 *gDim, int *wSize);
void *RTDECL(CUFRegisterModule)(void *data) {
- void** fatHandle = __cudaRegisterFatBinary(data);
+ void **fatHandle = __cudaRegisterFatBinary(data);
__cudaRegisterFatBinaryEnd(fatHandle);
return fatHandle;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/113358
More information about the flang-commits
mailing list