libcudacxx icon indicating copy to clipboard operation
libcudacxx copied to clipboard

Move and update "memory model" docs

Open gonzalobg opened this issue 3 years ago • 1 comments
trafficstars

This PR moves the "memory model" related docs to a separate page, so that they can be easily linked from the Programming Guide.

It also updates the memory model docs.

It provides a new guarantee that we did not provide before, system-scope atomics are also atomic if the operation:

it is a load or store that affects a naturally-aligned object of sizes 1, 2, 4, or 8 bytes on mapped memory

The scripts to build the site have stopped working, so this PR also updates those.

The site layout is constrained to a 800px body width, which makes tables render poorly. This PR bumps this to 1000px here.

Syntax highlighting within HTML tables seems to be buggy with Jekyll.

gonzalobg avatar Aug 10 '22 19:08 gonzalobg

@daniellustig please review.

gonzalobg avatar Aug 10 '22 19:08 gonzalobg

@gonzalobg Is this good to get in?

wmaxey avatar Sep 29 '22 00:09 wmaxey

Waiting for review.

gonzalobg avatar Sep 29 '22 13:09 gonzalobg

Looks good to me, aside from the one minor comment I just posted

daniellustig avatar Sep 29 '22 14:09 daniellustig

@wmaxey @daniellustig i think we can just merge this. Having this would simplify the docs of atomic_ref as well.

gonzalobg avatar Oct 06 '22 20:10 gonzalobg

@wmaxey @daniellustig i think we can just merge this. Having this would simplify the docs of atomic_ref as well.

👍

daniellustig avatar Oct 07 '22 12:10 daniellustig