Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
POCL
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
TRACES-public
Vortex
POCL
Commits
deb8829c
Commit
deb8829c
authored
3 years ago
by
Andreas Beckmann
Browse files
Options
Downloads
Patches
Plain Diff
switch from __sync_add_and_fetch to __atomic_add_fetch
parent
2fb5858e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGES
+1
-0
1 addition, 0 deletions
CHANGES
lib/CL/pocl_cl.h
+3
-3
3 additions, 3 deletions
lib/CL/pocl_cl.h
with
4 additions
and
3 deletions
CHANGES
+
1
−
0
View file @
deb8829c
...
...
@@ -13,6 +13,7 @@ Notable User Facing Changes
* and other small fixes and improvements
- All device names used to control the platform setup via
POCL_DEVICES are now lower case (as documented in the user manual).
- Switch from __sync_*() to __atomic_*() (compiler builtins).
3.0 June 2022
=============
...
...
This diff is collapsed.
Click to expand it.
lib/CL/pocl_cl.h
+
3
−
3
View file @
deb8829c
...
...
@@ -77,9 +77,9 @@ typedef pthread_t pocl_thread_t;
#if defined(__GNUC__) || defined(__clang__)
/* These return the new value. */
/* See: https://gcc.gnu.org/onlinedocs/gcc-4.
1.2
/gcc/
A
tomic-Builtins.html */
#define POCL_ATOMIC_INC(x) __
sync_add_an
d_fetch (&x, 1)
#define POCL_ATOMIC_DEC(x) __
syn
c_sub_
and_
fetch (&x, 1)
/* See: https://gcc.gnu.org/onlinedocs/gcc-4.
7.4
/gcc/
_005f_005fa
tomic-Builtins.html */
#define POCL_ATOMIC_INC(x) __
atomic_ad
d_fetch (&x, 1
, __ATOMIC_SEQ_CST
)
#define POCL_ATOMIC_DEC(x) __
atomi
c_sub_fetch (&x, 1
, __ATOMIC_SEQ_CST
)
#elif defined(_WIN32)
#define POCL_ATOMIC_INC(x) InterlockedIncrement64 (&x)
...
...
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