Skip to content

Commit 9a04824

Browse files
committed
add the missing #include <functional> header to fix the compilation errors
1 parent 8301996 commit 9a04824

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

modules/module6/examples/04_reduction_cuda.cu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include <cassert>
3030
#include <iomanip>
3131
#include <float.h>
32+
#include <functional>
3233

3334
namespace cg = cooperative_groups;
3435

modules/module6/examples/05_prefix_sum_cuda.cu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include <cassert>
3131
#include <iomanip>
3232
#include <numeric>
33+
#include <functional>
3334

3435
namespace cg = cooperative_groups;
3536

modules/module7/examples/01_sorting_cuda.cu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include <iomanip>
3131
#include <thrust/sort.h>
3232
#include <thrust/device_vector.h>
33+
#include <functional>
3334

3435
namespace cg = cooperative_groups;
3536

0 commit comments

Comments
 (0)