Skip to content

Commit

Permalink
Add <cstring> header file when using memset() function to avoid compi…
Browse files Browse the repository at this point in the history
…lation errors. (#4380)

Co-authored-by: liuxiaohui <[email protected]>
  • Loading branch information
LiuXiaohui123321 and abacus-ustc authored Jun 14, 2024
1 parent 6bf333d commit 46627fc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <iostream>
#include <cstring>

#include "cuda_tools.cuh"

Expand Down Expand Up @@ -266,4 +267,4 @@ inline T* Cuda_Mem_Wrapper<T>::get_host_pointer(int stream_id)
}
template class Cuda_Mem_Wrapper<double>;
template class Cuda_Mem_Wrapper<double*>;
template class Cuda_Mem_Wrapper<int>;
template class Cuda_Mem_Wrapper<int>;

0 comments on commit 46627fc

Please sign in to comment.