Browse Source

vstudio: fix launch_bounds intellisense warnings in ide

master
Tanguy Pruvot 10 years ago
parent
commit
987edf63f3
  1. 5
      cuda_helper.h

5
cuda_helper.h

@ -4,10 +4,11 @@
#include <cuda.h> #include <cuda.h>
#include <cuda_runtime.h> #include <cuda_runtime.h>
#if defined(__INTELLISENSE__) #ifdef __INTELLISENSE__
/* reduce warnings */ /* reduce vstudio warnings (__byteperm, blockIdx...) */
#include <device_functions.h> #include <device_functions.h>
#include <device_launch_parameters.h> #include <device_launch_parameters.h>
#define __launch_bounds__(max_tpb, min_blocks)
#endif #endif
#include <stdint.h> #include <stdint.h>

Loading…
Cancel
Save