Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Allen
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
LHCb
Allen
Merge requests
!1207
Solve
#426
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Solve
#426
dcampora_small_improvements
into
master
Overview
10
Commits
1
Pipelines
0
Changes
2
All threads resolved!
Hide all comments
Merged
Daniel Hugo Campora Perez
requested to merge
dcampora_small_improvements
into
master
1 year ago
Overview
10
Commits
1
Pipelines
0
Changes
2
All threads resolved!
Hide all comments
Expand
Closes
#426 (closed)
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
24e86513
1 commit,
1 year ago
2 files
+
7
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
backend/include/CPUBackend.h
+
6
−
0
Options
@@ -99,6 +99,12 @@ extern thread_local BlockIndices blockIdx;
constexpr
BlockDimensions
blockDim
{
1
,
1
,
1
};
constexpr
ThreadIndices
threadIdx
{
0
,
0
,
0
};
/**
* @brief Emulates atomic operations so they work on the CPU backend.
* @details The CPU backend executes sequentially, so there
* is no need to provide atomicity in any of the
* implementations below.
*/
template
<
class
T
,
class
S
>
T
atomicAdd
(
T
*
address
,
S
val
)
{
Loading