Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
068495f3
Unverified
Commit
068495f3
authored
Mar 04, 2026
by
Peter Eastman
Committed by
GitHub
Mar 04, 2026
Browse files
Fix for compilation error on some AMD GPUs (#5224)
parent
3e8a62ba
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
platforms/common/src/kernels/pme.cc
platforms/common/src/kernels/pme.cc
+1
-1
No files found.
platforms/common/src/kernels/pme.cc
View file @
068495f3
...
@@ -105,7 +105,7 @@ KERNEL void gridSpreadCharge(GLOBAL const real4* RESTRICT posq,
...
@@ -105,7 +105,7 @@ KERNEL void gridSpreadCharge(GLOBAL const real4* RESTRICT posq,
if
(
fabs
(
add
)
>
2.3e-10
f
)
{
// Smallest value representable in 64 bit fixed point
if
(
fabs
(
add
)
>
2.3e-10
f
)
{
// Smallest value representable in 64 bit fixed point
#ifdef USE_FIXED_POINT_CHARGE_SPREADING
#ifdef USE_FIXED_POINT_CHARGE_SPREADING
ATOMIC_ADD
(
&
pmeGrid
[
index
],
(
mm_ulong
)
realToFixedPoint
(
add
));
ATOMIC_ADD
(
&
pmeGrid
[
index
],
(
mm_ulong
)
realToFixedPoint
(
add
));
#if defined(__GFX12__)
#if defined(__GFX12__)
&& defined(USE_HIP)
// Workaround for rare cases when few values of pmeGrid are very large and
// Workaround for rare cases when few values of pmeGrid are very large and
// incorrect. The cause is unknown. Why this workaround or other irrelevant
// incorrect. The cause is unknown. Why this workaround or other irrelevant
// changes like printf help is also unknown.
// changes like printf help is also unknown.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment