Use clang-format-18 for source formatting (#256)
* Updating clang-format to v18
- Updates the pre-commit-config
- Formats source files according to the utility
Signed-off-by: David Galiffi <David.Galiffi@amd.com>
* Update format source workflow
Signed-off-by: David Galiffi <David.Galiffi@amd.com>
* Update CONTRIBUTING
* Update comment in .clang-format
* Update CONTRIBUTING.md
* Update helper script
---------
Signed-off-by: David Galiffi <David.Galiffi@amd.com>
[ROCm/rocprofiler-systems commit: 1e13b590e7]
This commit is contained in:
@@ -407,7 +407,7 @@ main(int /*argc*/, char** /*argv*/)
|
||||
x[j] = norm_temp2 * z[j];
|
||||
}
|
||||
} /* end of main iter inv pow meth */
|
||||
} /* end parallel */
|
||||
} /* end parallel */
|
||||
timer_stop(T_BENCH);
|
||||
|
||||
/*
|
||||
|
||||
@@ -48,7 +48,7 @@ template <typename T>
|
||||
void
|
||||
vmul(T* a, T* b, T* c, int N)
|
||||
{
|
||||
#pragma omp target map(to : a [0:N], b [0:N]) map(from : c [0:N])
|
||||
#pragma omp target map(to : a[0 : N], b[0 : N]) map(from : c[0 : N])
|
||||
#pragma omp teams distribute parallel for
|
||||
for(int i = 0; i < N; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user