Skip to content

Commit

Permalink
update allocator
Browse files Browse the repository at this point in the history
  • Loading branch information
archibate committed Jan 10, 2023
1 parent 9133676 commit 8e1a189
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 08/include/CudaAllocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ struct CudaAllocator {
::new((void *)p) T(std::forward<Args>(args)...);
}

template <class U> // cihou shabi wendous
constexpr CudaAllocator(CudaAllocator<U> const &other) noexcept {
}

constexpr bool operator==(CudaAllocator<T> const &other) const {
return this == &other;
}
Expand Down
4 changes: 4 additions & 0 deletions 09/include/CudaAllocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ struct CudaAllocator {
::new((void *)p) T(std::forward<Args>(args)...);
}

template <class U> // cihou shabi wendous
constexpr CudaAllocator(CudaAllocator<U> const &other) noexcept {
}

constexpr bool operator==(CudaAllocator<T> const &other) const {
return this == &other;
}
Expand Down
1 change: 1 addition & 0 deletions specifelse/benchtest/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
jomtSettings/
.cache/
Binary file modified specifelse/slides.pptx
Binary file not shown.

0 comments on commit 8e1a189

Please sign in to comment.