From 987edf63f3ce9bab30371768c3edabfdd7ee395d Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Sun, 9 Nov 2014 20:20:34 +0100 Subject: [PATCH] vstudio: fix launch_bounds intellisense warnings in ide --- cuda_helper.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cuda_helper.h b/cuda_helper.h index 0e65368..2e1a311 100644 --- a/cuda_helper.h +++ b/cuda_helper.h @@ -4,10 +4,11 @@ #include #include -#if defined(__INTELLISENSE__) -/* reduce warnings */ +#ifdef __INTELLISENSE__ +/* reduce vstudio warnings (__byteperm, blockIdx...) */ #include #include +#define __launch_bounds__(max_tpb, min_blocks) #endif #include