Add more operation and some refactoring of the code to ease usage.

This commit is contained in:
Fabian Groh authored and PatWie committed 2018-11-06 14:00:16 +01:00
1 parent 32e91a688f
commit 2cbeb7e699
27 files changed
+1264 -452

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
#ifndef LIB_CUDA_UTILS_H_
#define LIB_CUDA_UTILS_H_
template <typename T>
__device__ T* DynamicSharedMemory() {
extern __shared__ __align__(sizeof(T)) unsigned char s_shm[];
return reinterpret_cast<T*>(s_shm);
}
#endif // LIB_CUDA_UTILS_H_