1 | // Generated from "/code/pytorch/third_party/nvfuser/runtime/block_sync_default.cu" |
2 | // 2023-02-12 08:01:26 |
3 | |
4 | namespace nvfuser_resources { |
5 | |
6 | constexpr const char* block_sync_default_cu = R"( |
7 | |
8 | // Default block synchronization. Just use __barrier_sync |
9 | namespace block_sync { |
10 | |
11 | __forceinline__ __device__ void init() {} |
12 | |
13 | // Thread-block synchronization |
14 | __forceinline__ __device__ void sync() { |
15 | __barrier_sync(0); |
16 | } |
17 | |
18 | } // namespace block_sync |
19 | )" ; |
20 | |
21 | } // namespace nvfuser_resources |
22 | |