mirror of
https://github.com/wassname/Flex-Convolution.git
synced 2026-10-03 12:01:01 +08:00
Add more operation and some refactoring of the code to ease usage.
This commit is contained in:
1 parent
32e91a688f
commit
2cbeb7e699
27 files changed
+1264
-452
No files matched your search
@@ -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_
|
||||
Reference in new issue
Block a user