Skip to content

Commit 46627fc

Browse files
Add <cstring> header file when using memset() function to avoid compilation errors. (deepmodeling#4380)
Co-authored-by: liuxiaohui <liuxiaohui@ustc.edu.cn>
1 parent 6bf333d commit 46627fc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎source/module_hamilt_lcao/module_gint/kernels/cuda/cuda_tools.cu‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include <iostream>
2+
#include <cstring>
23

34
#include "cuda_tools.cuh"
45

@@ -266,4 +267,4 @@ inline T* Cuda_Mem_Wrapper<T>::get_host_pointer(int stream_id)
266267
}
267268
template class Cuda_Mem_Wrapper<double>;
268269
template class Cuda_Mem_Wrapper<double*>;
269-
template class Cuda_Mem_Wrapper<int>;
270+
template class Cuda_Mem_Wrapper<int>;

0 commit comments

Comments
 (0)