feat: make thust support new version more simple

This commit is contained in:
kradchen
2024-12-18 17:53:22 +08:00
parent 4e155617af
commit c5a64dccc0
2 changed files with 5 additions and 20 deletions

View File

@@ -11,10 +11,11 @@
#include <iostream>
#include <cmath>
#if THRUST_VERSION >= 200000
//this 2 header only need by cuda version >= 12
#include <thrust/sort.h>
#include <thrust/set_operations.h>
#endif
#include <thrust/device_vector.h>
#include <thrust/transform.h>
#include <thrust/reduce.h>