Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiler: Add host-*-pin handles; more volatile with pthreads #2116

Merged
merged 2 commits into from
Apr 28, 2023

Conversation

FabioLuporini
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Apr 26, 2023

Codecov Report

Merging #2116 (63e57c1) into master (f5505fa) will decrease coverage by 0.04%.
The diff coverage is 26.92%.

@@            Coverage Diff             @@
##           master    #2116      +/-   ##
==========================================
- Coverage   87.75%   87.71%   -0.04%     
==========================================
  Files         221      221              
  Lines       39010    39030      +20     
  Branches     5068     5075       +7     
==========================================
+ Hits        34233    34236       +3     
- Misses       4215     4232      +17     
  Partials      562      562              
Impacted Files Coverage Δ
devito/passes/iet/languages/C.py 100.00% <ø> (ø)
tests/test_gpu_common.py 1.40% <0.00%> (ø)
devito/ir/iet/utils.py 80.00% <16.66%> (-15.92%) ⬇️
devito/passes/iet/asynchrony.py 12.71% <27.27%> (+0.78%) ⬆️
devito/passes/iet/definitions.py 88.33% <100.00%> (ø)

@FabioLuporini FabioLuporini changed the title compiler: Add host-alloc-pin and host-free-pin handles compiler: Add host-*-pin handles; more volatile with pthreads Apr 27, 2023
if obj is candidate:
return True

# Names are unique throughout compilation, so this is another case we can handle
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the compilation (?)

def sanitize_ncfields(ncfields):
# Due to a bug in the NVC compiler (v<=22.7 and potentially later),
# we have to use C's `volatile` more extensively than strictly necessary
# to avoid flaky optimizations that would cause fauly behaviour in rare,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

faulty*

Copy link
Contributor

@mloubout mloubout left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks mostly fine, not sure what this volatile is but I trust you on it

if obj.name == candidate.name:
return True

if obj.is_AbstractFunction:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these case really needed? Will obviously always return false passed this line no matter

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not strictly speaking and not today, but they were in the back of my mind already, so I put them there for the future

@FabioLuporini FabioLuporini merged commit e6f25d5 into master Apr 28, 2023
@FabioLuporini FabioLuporini deleted the enable-parlang-overrides branch April 28, 2023 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants