Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lammps
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
multiscale
lammps
Commits
94c6d2d5
Unverified
Commit
94c6d2d5
authored
6 years ago
by
Steve Plimpton
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #918 from stanmoore1/kk_atomics
Fix performance regression in KOKKOS package
parents
585a164e
5a4a7ceb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/kokkos/core/src/impl/Kokkos_Atomic_Fetch_Sub.hpp
+14
-0
14 additions, 0 deletions
lib/kokkos/core/src/impl/Kokkos_Atomic_Fetch_Sub.hpp
with
14 additions
and
0 deletions
lib/kokkos/core/src/impl/Kokkos_Atomic_Fetch_Sub.hpp
+
14
−
0
View file @
94c6d2d5
...
...
@@ -70,6 +70,20 @@ __inline__ __device__
unsigned
int
atomic_fetch_sub
(
volatile
unsigned
int
*
const
dest
,
const
unsigned
int
val
)
{
return
atomicSub
((
unsigned
int
*
)
dest
,
val
);
}
__inline__
__device__
unsigned
int
atomic_fetch_sub
(
volatile
int64_t
*
const
dest
,
const
int64_t
val
)
{
return
atomic_fetch_add
(
dest
,
-
val
);
}
__inline__
__device__
unsigned
int
atomic_fetch_sub
(
volatile
float
*
const
dest
,
const
float
val
)
{
return
atomicAdd
((
float
*
)
dest
,
-
val
);
}
#if ( 600 <= __CUDA_ARCH__ )
__inline__
__device__
unsigned
int
atomic_fetch_sub
(
volatile
double
*
const
dest
,
const
double
val
)
{
return
atomicAdd
((
double
*
)
dest
,
-
val
);
}
#endif
template
<
typename
T
>
__inline__
__device__
T
atomic_fetch_sub
(
volatile
T
*
const
dest
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment