Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Rebuild atomic_cuda_generated
Browse files Browse the repository at this point in the history
  • Loading branch information
wmaxey committed Jul 15, 2021
1 parent 154c789 commit 2dab8e2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 36 deletions.
6 changes: 0 additions & 6 deletions codegen/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ int main() {
return "__cuda_fence_" + sem + "_" + scope;
};

out << "_LIBCUDACXX_BEGIN_NAMESPACE_CUDA\n";
out << "namespace detail {\n";
out << "\n";

for(auto& s : scopes) {
out << "static inline __device__ void __cuda_membar_" << s.first << "() { asm volatile(\"membar" << membar_scopes[s.first] << ";\":::\"memory\"); }\n";
for(auto& sem : fence_semantics)
Expand Down Expand Up @@ -316,8 +312,6 @@ int main() {
}

out << "\n";
out << "}\n";
out << "_LIBCUDACXX_END_NAMESPACE_CUDA\n";

return 0;
}
Loading

0 comments on commit 2dab8e2

Please sign in to comment.