mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Silenced some compilation warnings triggered by nvcc
This commit is contained in:
@@ -238,11 +238,14 @@ struct GpuDevice {
|
||||
|
||||
};
|
||||
|
||||
|
||||
#ifndef __CUDA_ARCH__
|
||||
#define LAUNCH_CUDA_KERNEL(kernel, gridsize, blocksize, sharedmem, device, ...) \
|
||||
(kernel) <<< (gridsize), (blocksize), (sharedmem), (device).stream() >>> (__VA_ARGS__); \
|
||||
assert(cudaGetLastError() == cudaSuccess);
|
||||
|
||||
#else
|
||||
#define LAUNCH_CUDA_KERNEL(...) \
|
||||
eigen_assert(false && "Cannot launch a kernel from another kernel");
|
||||
#endif
|
||||
|
||||
// FIXME: Should be device and kernel specific.
|
||||
#ifdef __CUDACC__
|
||||
|
||||
Reference in New Issue
Block a user