Silenced some compilation warnings triggered by nvcc

This commit is contained in:
Benoit Steiner
2015-12-17 13:39:01 -08:00
parent 40e6250fc3
commit 4aac55f684
3 changed files with 20 additions and 9 deletions

View File

@@ -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__