syncsan 0.10.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- syncsan/__init__.py +2 -0
- syncsan/cli.py +96 -0
- syncsan/csrc/CMakeLists.txt +9 -0
- syncsan/csrc/common.h +161 -0
- syncsan/csrc/inject_funcs.cu +805 -0
- syncsan/csrc/syncsan.cu +917 -0
- syncsan-0.10.4.dist-info/METADATA +130 -0
- syncsan-0.10.4.dist-info/RECORD +12 -0
- syncsan-0.10.4.dist-info/WHEEL +5 -0
- syncsan-0.10.4.dist-info/entry_points.txt +2 -0
- syncsan-0.10.4.dist-info/licenses/LICENSE +202 -0
- syncsan-0.10.4.dist-info/top_level.txt +1 -0
syncsan/__init__.py
ADDED
syncsan/cli.py
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"""syncsan command line.
|
|
2
|
+
|
|
3
|
+
syncsan build download NVBit 1.8.2 and build the tool (needs nvcc and cmake >= 3.29), once
|
|
4
|
+
syncsan run [options] -- CMD ... run CMD with every (or the chosen) CUDA kernel checked for races
|
|
5
|
+
syncsan where print the path of the built tool
|
|
6
|
+
|
|
7
|
+
Exit status of `run`: CMD's own, or --exitcode N when syncsan reported a race (for CI).
|
|
8
|
+
"""
|
|
9
|
+
import argparse
|
|
10
|
+
import os
|
|
11
|
+
import pathlib
|
|
12
|
+
import shutil
|
|
13
|
+
import subprocess
|
|
14
|
+
import sys
|
|
15
|
+
import tarfile
|
|
16
|
+
import urllib.request
|
|
17
|
+
|
|
18
|
+
NVBIT_URL = "https://github.com/NVlabs/NVBit/releases/download/v1.8.2/nvbit-Linux-x86_64-1.8.2.tar.bz2"
|
|
19
|
+
CACHE = pathlib.Path(os.environ.get("SYNCSAN_HOME", pathlib.Path.home() / ".cache" / "syncsan"))
|
|
20
|
+
SRC = pathlib.Path(__file__).resolve().parent / "csrc"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def tool_path() -> pathlib.Path:
|
|
24
|
+
return CACHE / "build" / "syncsan.so"
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def build(arch: str) -> pathlib.Path:
|
|
28
|
+
nvbit = CACHE / "nvbit_release_x86_64"
|
|
29
|
+
if not nvbit.exists():
|
|
30
|
+
CACHE.mkdir(parents=True, exist_ok=True)
|
|
31
|
+
tar = CACHE / "nvbit.tar.bz2"
|
|
32
|
+
print(f"syncsan: downloading NVBit 1.8.2 to {CACHE}", file=sys.stderr)
|
|
33
|
+
urllib.request.urlretrieve(NVBIT_URL, tar)
|
|
34
|
+
with tarfile.open(tar) as t:
|
|
35
|
+
t.extractall(CACHE)
|
|
36
|
+
tar.unlink()
|
|
37
|
+
src = CACHE / "src"
|
|
38
|
+
if src.exists():
|
|
39
|
+
shutil.rmtree(src)
|
|
40
|
+
shutil.copytree(SRC, src)
|
|
41
|
+
b = CACHE / "build"
|
|
42
|
+
subprocess.run(["cmake", "-S", str(src), "-B", str(b), f"-DNVBIT_ROOT={nvbit}", f"-DNVBIT_TOOL_CUDA_ARCHITECTURES={arch}"], check=True)
|
|
43
|
+
subprocess.run(["cmake", "--build", str(b), "-j", str(os.cpu_count() or 4)], check=True)
|
|
44
|
+
print(tool_path())
|
|
45
|
+
return tool_path()
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def run(a: argparse.Namespace) -> int:
|
|
49
|
+
so = tool_path()
|
|
50
|
+
if not so.exists():
|
|
51
|
+
build(a.arch)
|
|
52
|
+
cmd = a.cmd[1:] if a.cmd and a.cmd[0] == "--" else a.cmd
|
|
53
|
+
if not cmd:
|
|
54
|
+
print("syncsan run: give a command after --", file=sys.stderr)
|
|
55
|
+
return 2
|
|
56
|
+
env = dict(os.environ)
|
|
57
|
+
env["LD_PRELOAD"] = f"{so}:{env['LD_PRELOAD']}" if env.get("LD_PRELOAD") else str(so)
|
|
58
|
+
env["SYNCSAN_EXITCODE"] = str(a.exitcode)
|
|
59
|
+
for flag, var in ((a.kernel, "SYNCSAN_KERNEL"), (a.sample, "SYNCSAN_SAMPLE"), (a.instrument, "SYNCSAN_INSTRUMENT"),
|
|
60
|
+
(a.async_, "SYNCSAN_ASYNC")):
|
|
61
|
+
if flag:
|
|
62
|
+
env[var] = str(flag)
|
|
63
|
+
if a.verbose:
|
|
64
|
+
env["SYNCSAN_VERBOSE"] = str(a.verbose)
|
|
65
|
+
if a.check_nc:
|
|
66
|
+
env["SYNCSAN_CHECK_NC"] = "1"
|
|
67
|
+
return subprocess.run(cmd, env=env).returncode
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
def main() -> None:
|
|
71
|
+
p = argparse.ArgumentParser(prog="syncsan", description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
|
|
72
|
+
sub = p.add_subparsers(dest="what", required=True)
|
|
73
|
+
pb = sub.add_parser("build", help="download NVBit and build the tool")
|
|
74
|
+
pb.add_argument("--arch", default="90", help="CUDA architecture of the tool's device code (90 = H100, 80 = A100)")
|
|
75
|
+
sub.add_parser("where", help="print the built tool's path")
|
|
76
|
+
pr = sub.add_parser("run", help="run a command under syncsan")
|
|
77
|
+
pr.add_argument("--kernel", help="check only kernels whose name contains this")
|
|
78
|
+
pr.add_argument("--sample", help="k or k:seed: check one plain load/store site in k (sync operations always checked)")
|
|
79
|
+
pr.add_argument("--instrument", help="comma list of mem,bar,fence (default all)")
|
|
80
|
+
pr.add_argument("--async", dest="async_", help="comma list of tma,bulk,wait (default all)")
|
|
81
|
+
pr.add_argument("--check-nc", action="store_true", help="also check ld.global.nc (read-only) loads")
|
|
82
|
+
pr.add_argument("--exitcode", type=int, default=0, help="exit with this code when a race is reported (0: CMD's own)")
|
|
83
|
+
pr.add_argument("-v", "--verbose", type=int, default=0)
|
|
84
|
+
pr.add_argument("--arch", default="90")
|
|
85
|
+
pr.add_argument("cmd", nargs=argparse.REMAINDER)
|
|
86
|
+
a = p.parse_args()
|
|
87
|
+
if a.what == "build":
|
|
88
|
+
build(a.arch)
|
|
89
|
+
elif a.what == "where":
|
|
90
|
+
print(tool_path() if tool_path().exists() else "not built: run `syncsan build`")
|
|
91
|
+
else:
|
|
92
|
+
sys.exit(run(a))
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
if __name__ == "__main__":
|
|
96
|
+
main()
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
cmake_minimum_required(VERSION 3.29)
|
|
2
|
+
project(syncsan LANGUAGES CXX CUDA)
|
|
3
|
+
find_package(CUDAToolkit REQUIRED)
|
|
4
|
+
set(NVBIT_ROOT "" CACHE PATH "the unpacked NVBit release (the folder with core/ and tools/)")
|
|
5
|
+
if(NOT NVBIT_ROOT)
|
|
6
|
+
message(FATAL_ERROR "set -DNVBIT_ROOT=/path/to/nvbit_release_x86_64")
|
|
7
|
+
endif()
|
|
8
|
+
include("${NVBIT_ROOT}/tools/cmake/NVBitTool.cmake")
|
|
9
|
+
add_nvbit_tool(syncsan)
|
syncsan/csrc/common.h
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
// Shared between the host tool (syncsan.cu) and the injected device functions (inject_funcs.cu).
|
|
2
|
+
#pragma once
|
|
3
|
+
#include <stdint.h>
|
|
4
|
+
|
|
5
|
+
// Happens-before (v2). Each block b keeps a vector clock VC_b over the launch's N blocks, shared by its warps; within a
|
|
6
|
+
// block, warps are ordered by barrier epochs (each warp counts the full-block barriers it has passed). Edges:
|
|
7
|
+
// barrier BAR.SYNC / BAR.RED: the warp's epoch ticks. Two warps of one block are ordered iff a barrier separates
|
|
8
|
+
// their accesses (different epochs). Synchronization between warps of one block without a barrier (an intra-
|
|
9
|
+
// block flag) isn't modeled, and an acquire by one warp counts for its whole block (both trade precision for
|
|
10
|
+
// joins N entries long instead of 32 N).
|
|
11
|
+
// release a strong store or atomic issued after a MEMBAR by the same thread: the location's clock becomes VC_g, then g ticks.
|
|
12
|
+
// acquire a strong load or atomic followed (same thread) by CCTL.IVALL or MEMBAR, which is how ld.acquire and
|
|
13
|
+
// "volatile load; __threadfence()" compile: VC_g joins the location's clock.
|
|
14
|
+
// fence.sc MEMBAR.SC (__threadfence): SC fences are totally ordered and each synchronizes with the later ones (PTX
|
|
15
|
+
// memory model), so VC_g joins a launch-wide SC clock, then publishes its own clock into it.
|
|
16
|
+
// Async copies (v3). cp.async.bulk / TMA copies are done by the copy engine, modeled as one agent per block with a clock
|
|
17
|
+
// slot of its own (block slots 0..nb-1, agent slots nb..2nb-1). Issuing a copy joins the issuing block's clock into the
|
|
18
|
+
// agent's and ticks the agent; the copy's global bytes are checked as the agent's access. A warp that waits
|
|
19
|
+
// (cp.async.bulk.wait_group = DEPBAR for stores, a successful mbarrier try_wait for loads) is ordered after everything the
|
|
20
|
+
// agent did so far; the rest of its block is after its next barrier, and other blocks after its next release. A wait counts every copy the block issued as done (wait_group N > 0, several mbarriers): that can hide a race,
|
|
21
|
+
// never invent one.
|
|
22
|
+
// Every data access is checked against the last write and last read of its 4-byte word: an earlier access by warp p at
|
|
23
|
+
// clock t is ordered before the current one by warp g iff p == g or VC_g[p] >= t. Two unordered accesses, one a write,
|
|
24
|
+
// not both synchronizing (strong or atomic), are a race.
|
|
25
|
+
|
|
26
|
+
struct ShadowEntry {
|
|
27
|
+
unsigned long long key; // (word address >> 2) + 1, 0 = empty
|
|
28
|
+
unsigned long long writer; // packed access: valid:1 | write:1 | sync:1 | pad:1 | warp:28 | clock:32
|
|
29
|
+
unsigned long long reader;
|
|
30
|
+
uint32_t writer_iid, reader_iid;
|
|
31
|
+
uint32_t old; // SYNCSAN_ADVERSARIAL: the word's value before its last write
|
|
32
|
+
uint32_t writer_s, reader_s; // the accessing warp's own shared-clock entry at the access (warp-level ordering)
|
|
33
|
+
uint32_t flags; // OLD_BAD: a write the shadow did not track (sub-word) came after `old`; bits 8..15: last write's size
|
|
34
|
+
};
|
|
35
|
+
constexpr uint32_t OLD_BAD = 1;
|
|
36
|
+
|
|
37
|
+
struct SyncEntry { // a location used for release/acquire, and the vector clock its last release left there
|
|
38
|
+
unsigned long long key;
|
|
39
|
+
uint32_t slot; // index into the clock pool once ready != 0; NO_SLOT when the pool was full (not tracked)
|
|
40
|
+
volatile uint32_t ready;
|
|
41
|
+
volatile uint32_t version; // bumped by every release, so an acquire that already joined this version can skip the join
|
|
42
|
+
uint32_t pad;
|
|
43
|
+
};
|
|
44
|
+
constexpr uint32_t NO_SLOT = 0xFFFFFFFFu;
|
|
45
|
+
|
|
46
|
+
struct RaceRecord {
|
|
47
|
+
uint64_t addr;
|
|
48
|
+
uint32_t iid_prev, iid_cur; // instruction ids of the earlier access (from the shadow) and the one that found the race
|
|
49
|
+
uint32_t warp_prev, warp_cur; // launch-wide warp ids (block = id / 32)
|
|
50
|
+
uint32_t kind; // 0 write->read, 1 write->write, 2 read->write
|
|
51
|
+
uint32_t space; // 0 global (warp ids as above), 1 shared (warp ids = block * 64 + slot, see SM_SLOTS)
|
|
52
|
+
volatile uint32_t ready; // set last: the host reads a record only once it is complete
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
constexpr uint32_t SHADOW_BITS_MIN = 23, SHADOW_BITS_MAX = 27; // 8M-128M words (256 MB-4 GB), sized at start from free memory
|
|
56
|
+
constexpr uint32_t SYNC_BITS = 18; // 256K release/acquire locations
|
|
57
|
+
constexpr uint32_t PROBE = 32;
|
|
58
|
+
constexpr uint32_t MAX_CTAS = 8192; // larger grids are folded onto this many block slots (13-bit block field)
|
|
59
|
+
constexpr uint32_t MAX_WARPS = MAX_CTAS * 32;
|
|
60
|
+
constexpr uint64_t POOL_WORDS_MAX = 1ull << 31; // clocks for release/acquire locations: up to 8 GB, sized at start from
|
|
61
|
+
// free device memory (DevState::pool_words), POOL_WORDS / n of them
|
|
62
|
+
constexpr uint32_t MAX_RECORDS = 1u << 14;
|
|
63
|
+
constexpr uint32_t PAIR_BITS = 16;
|
|
64
|
+
constexpr uint32_t PENDING = 8;
|
|
65
|
+
constexpr uint32_t WPAGE_BITS = 27; // hashed 4 KB pages written in this launch (16 MB bitmap)
|
|
66
|
+
constexpr uint32_t TMA_BITS = 12; // tensor maps syncsan can decode (a hash table in mapped host memory)
|
|
67
|
+
constexpr uint32_t AGENT_MAX_BLOCKS = MAX_CTAS / 2;
|
|
68
|
+
// Warp-level ordering between blocks (v0.9): launches of up to WO_MAX_BLOCKS blocks keep, for each warp, what it has
|
|
69
|
+
// acquired, and for each block release, which warps' accesses it publishes. Larger grids fall back to block-level clocks.
|
|
70
|
+
constexpr uint32_t WO_MAX_BLOCKS = 320, WO_N = 2 * WO_MAX_BLOCKS, WO_RELH = 64, WO_COV = 33; // async-copy agents need a clock slot per block: grids up to this size
|
|
71
|
+
|
|
72
|
+
// ---- shared memory (v4) ----
|
|
73
|
+
// Each block keeps a vector clock per warp over SM_SLOTS slots: warps 0..31, then two async agents of the block's copy
|
|
74
|
+
// engine: SM_AGENT_WAIT (cp.async / LDGSTS writes and TMA / bulk store reads of shared memory, done at the issuing
|
|
75
|
+
// thread's DEPBAR) and SM_AGENT_MBAR (TMA / bulk loads into shared memory, done when their mbarrier phase completes).
|
|
76
|
+
// Edges: a full or named barrier (each participant releases into the barrier's clock before it and acquires after),
|
|
77
|
+
// mbarrier arrive (release into the mbarrier's clock) and a successful try_wait (acquire). Shared-memory accesses are
|
|
78
|
+
// checked against the last write and last read of each word of the block's shared memory.
|
|
79
|
+
constexpr uint32_t SM_SLOTS = 34, SM_AGENT_WAIT = 32, SM_AGENT_MBAR = 33;
|
|
80
|
+
constexpr uint32_t SM_ROW = SM_SLOTS, SM_BLOCK = (SM_SLOTS + 1) * SM_SLOTS; // a padding row: diagonals at a fixed stride
|
|
81
|
+
constexpr uint32_t SM_BARS = 16, SM_MBARS = 64; // named barriers; mbarriers tracked per block
|
|
82
|
+
constexpr uint32_t SM_SHADOW_BITS_MAX = 26; // shared-memory shadow: sized at the first launch for its blocks x 228 KB, up to 64M words
|
|
83
|
+
constexpr uint32_t SM_COPY_STRIDE = 128; // a copy's shared-memory side is checked at one word per 128 bytes
|
|
84
|
+
|
|
85
|
+
struct SmShadow {
|
|
86
|
+
unsigned long long key; // (block << 32 | word offset) + 1
|
|
87
|
+
unsigned long long writer; // valid:1 | write:1 | sync:1 | slot:6 | clock:32
|
|
88
|
+
unsigned long long reader;
|
|
89
|
+
uint32_t writer_iid, reader_iid;
|
|
90
|
+
uint32_t writer_pf; // the block's count of shared-memory proxy fences (fence.proxy.async) at the write
|
|
91
|
+
uint32_t pad;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
// A tensor map, recorded by the host when cuTensorMapEncodeTiled returns: enough to turn a TMA instruction's coordinates
|
|
95
|
+
// into the global bytes it reads or writes.
|
|
96
|
+
struct TmaDesc {
|
|
97
|
+
unsigned long long hash; // FNV-1a of the map's 16 words, 0 = empty slot
|
|
98
|
+
unsigned long long base;
|
|
99
|
+
unsigned long long dim[5];
|
|
100
|
+
unsigned long long stride[5]; // bytes; stride[0] is the element size
|
|
101
|
+
uint32_t box[5];
|
|
102
|
+
uint32_t rank;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
struct DevState {
|
|
106
|
+
ShadowEntry* shadow;
|
|
107
|
+
SyncEntry* sync;
|
|
108
|
+
uint32_t* vc; // [MAX_CTAS][n]: each block's clock over the n blocks
|
|
109
|
+
uint32_t* epoch; // [MAX_WARPS]: full-block barriers each warp has passed
|
|
110
|
+
uint32_t* sc_clock; // [n]: the join of every clock at its fence.sc so far
|
|
111
|
+
uint32_t* pool; // [pool_words / n][n]
|
|
112
|
+
unsigned long long pool_words;
|
|
113
|
+
unsigned long long* pending; // per thread, PENDING slots: 1 + word of each strong load since its last fence (a fence
|
|
114
|
+
// after several, as in an unrolled poll of four ring cells, makes every one an acquire)
|
|
115
|
+
uint32_t* pending_n; // per thread: strong loads since its last fence
|
|
116
|
+
uint32_t* fenced; // per thread: a MEMBAR since its last release
|
|
117
|
+
uint32_t* joined_slot; // per thread: the location and version its last acquire joined
|
|
118
|
+
uint32_t* joined_ver;
|
|
119
|
+
uint32_t* wpages; // [1 << WPAGE_BITS bits]: pages some write touched this launch (TMA loads skip the others)
|
|
120
|
+
uint32_t wo; // this launch uses warp-level ordering (nb <= WO_MAX_BLOCKS and shared clocks on)
|
|
121
|
+
uint32_t* wrow; // [WO_MAX_BLOCKS][32][n]: what each warp has acquired of each block's releases
|
|
122
|
+
uint32_t* wbar; // [WO_MAX_BLOCKS][SM_BARS][n]: carried across each named barrier
|
|
123
|
+
uint32_t* wmbar; // [WO_MAX_BLOCKS][SM_MBARS][n]: carried through each mbarrier
|
|
124
|
+
uint32_t* relcov; // [WO_MAX_BLOCKS][WO_RELH][WO_COV]: after the release that published block clock k, the
|
|
125
|
+
// latest own-clock entry of each warp that releases up to k cover; [32] = k + 1 (the tag)
|
|
126
|
+
unsigned int* adv_mixed; // injections whose load size differs from the last write's size (mapped)
|
|
127
|
+
unsigned int* adv_torn; // injections skipped because the word's last write changed while it was read (mapped)
|
|
128
|
+
uint32_t* sm_vc; // [nb][SM_BLOCK]: per block, SM_SLOTS rows of SM_ROW (and one padding row)
|
|
129
|
+
uint32_t* sm_bar; // [nb][SM_BARS][SM_SLOTS]
|
|
130
|
+
unsigned long long* sm_mbar_key; // [nb][SM_MBARS]: shared address + 1 of each tracked mbarrier
|
|
131
|
+
uint32_t* sm_mbar; // [nb][SM_MBARS][SM_SLOTS]
|
|
132
|
+
SmShadow* sm_shadow; // [1 << sm_shadow_bits]
|
|
133
|
+
uint32_t* sm_pf; // [nb]: shared-memory proxy fences (FENCE.VIEW.ASYNC.S) each block has executed
|
|
134
|
+
uint32_t sm_shadow_bits;
|
|
135
|
+
uint32_t adversarial; // SYNCSAN_ADVERSARIAL: racy plain loads return the value before the last write (see syncsan_mem_adv)
|
|
136
|
+
uint32_t* adv_mask; // [threads]: words of the current load that raced with their last write
|
|
137
|
+
uint32_t* adv_old; // [threads][4]: those words' previous values
|
|
138
|
+
uint32_t* adv_scratch; // [threads][4]: where a substituted load reads from
|
|
139
|
+
unsigned int* adv_count;
|
|
140
|
+
unsigned long long* pairs; // [1 << PAIR_BITS]: instruction pairs already recorded (so a flood of one pair can't crowd out the rest)
|
|
141
|
+
uint32_t watch_iid; // SYNCSAN_WATCH=<offset>: log every read whose last writer is this instruction (watch_log)
|
|
142
|
+
uint32_t* watch_log; // mapped: [0] count, then [count][6] reader iid, writer block, writer clock, reader block, what the reader's clock holds of the writer, writes seen
|
|
143
|
+
// mapped host memory: loads that returned a previous value (readable after the context is gone)
|
|
144
|
+
uint32_t* warp_agent; // [MAX_WARPS]: the latest of its block's agent clock each warp has waited for
|
|
145
|
+
struct TmaDesc* tma; // [1 << TMA_BITS], keyed by the hash of the 128-byte CUtensorMap
|
|
146
|
+
uint32_t n; // the length of every clock: nb block slots, then (when nb <= AGENT_MAX_BLOCKS) nb agent slots
|
|
147
|
+
uint32_t nb; // block slots in this launch: min(blocks, MAX_CTAS); larger grids fold onto them
|
|
148
|
+
uint32_t shadow_bits; // the shadow table holds 1 << shadow_bits words
|
|
149
|
+
uint32_t threads_per_cta;
|
|
150
|
+
unsigned int* pool_used;
|
|
151
|
+
RaceRecord* records;
|
|
152
|
+
unsigned int* n_records; // may exceed MAX_RECORDS: the excess is counted, not stored
|
|
153
|
+
unsigned int* n_dropped; // accesses or locations not tracked because a table was full
|
|
154
|
+
unsigned long long* prof; // [PROF_N], null unless SYNCSAN_PROFILE
|
|
155
|
+
unsigned int* n_sync_dropped; // releases lost to a full clock pool or sync table: reports after them may be false
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
enum AccessFlags : uint32_t { ACC_WRITE = 1, ACC_STRONG = 2, ACC_ATOMIC = 4, ACC_GENERIC = 8, ACC_PRED_NEG = 16, ACC_SHARED = 32 };
|
|
159
|
+
// SYNCSAN_PROFILE=1: per-kind work counters, printed at exit
|
|
160
|
+
enum ProfSlot : uint32_t { PROF_MEM, PROF_MEM_WORDS, PROF_ACQ_JOIN, PROF_ACQ_SKIP, PROF_REL, PROF_SC, PROF_BAR, PROF_JOIN_ENTRIES, PROF_SAME, PROF_N };
|
|
161
|
+
enum FenceKind : uint32_t { FENCE_MEMBAR = 0, FENCE_CCTL = 1, FENCE_SC = 2 };
|