From 67b116e03da3bbd9c01e30de2cd0c37fb8d6d411 Mon Sep 17 00:00:00 2001 From: lthakur Date: Thu, 6 Feb 2020 13:17:43 +0530 Subject: [PATCH] replaced auto with cg::thread_block at the line 78. With auto the compilation is failing on cuda10 driver with v100 asic. replaced auto with cg::thread_block at the line 78. With auto the compilation is failing on cuda10 driver with v100 asic. --- moreCUDA/cooperative_groups/cg_eg.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moreCUDA/cooperative_groups/cg_eg.cu b/moreCUDA/cooperative_groups/cg_eg.cu index caa4d34..832bfb4 100644 --- a/moreCUDA/cooperative_groups/cg_eg.cu +++ b/moreCUDA/cooperative_groups/cg_eg.cu @@ -75,7 +75,7 @@ __global__ void sum_kernel_block(int *sum, int *input, int n) int my_sum = thread_sum(input, n); extern __shared__ int temp[]; - auto g = cg::this_thread_block(); + cg::thread_block g = cg::this_thread_block(); // cg::thread_block g = cg::this_thread int block_sum = reduce_sum(g,temp,my_sum);