HIP backend hipify [detail/]execution_policy.h
MODIFY
thrust/system/hip/detail/execution_policy.h
thrust/system/hip/detail/execution_policy.h
#include <thrust/detail/execution_policy.h>
#include <thrust/iterator/detail/any_system_tag.h>
-#include <thrust/system/cuda/config.h>
+#include <thrust/system/hip/config.h>
BEGIN_NS_THRUST
-namespace cuda_cub {
+namespace hip_rocprim {
struct tag;
@@ -50,19 +50,19 @@ namespace cuda_cub {
{
inline operator tag() const { return tag(); }
};
-} // namespace cuda_cub
+} // namespace hip_rocprim
namespace system {
-namespace cuda {
- using thrust::cuda_cub::tag;
- using thrust::cuda_cub::execution_policy;
-} // namespace cuda
+namespace hip {
+ using thrust::hip_rocprim::tag;
+ using thrust::hip_rocprim::execution_policy;
+} // namespace hip
} // namespace system
-namespace cuda {
-using thrust::cuda_cub::execution_policy;
-using thrust::cuda_cub::tag;
-} // namespace cuda
+namespace hip {
+using thrust::hip_rocprim::execution_policy;
+using thrust::hip_rocprim::tag;
+} // namespace hip
END_NS_THRUST

MODIFY
thrust/system/hip/execution_policy.h
thrust/system/hip/execution_policy.h
******************************************************************************/
#pragma once
-// histogram
-// sort (radix-sort, merge-sort)
+#include <hip/hip_runtime.h>
#include <thrust/detail/config.h>
-#include <thrust/system/cuda/detail/execution_policy.h>
-#include <thrust/system/cuda/detail/par.h>
+#include <thrust/system/hip/detail/execution_policy.h>
+// #include <thrust/system/hip/detail/par.h>
-// pass
-// ----------------
-#include <thrust/system/cuda/detail/adjacent_difference.h>
-#include <thrust/system/cuda/detail/copy.h>
-#include <thrust/system/cuda/detail/copy_if.h>
-#include <thrust/system/cuda/detail/count.h>
-#include <thrust/system/cuda/detail/equal.h>
-#include <thrust/system/cuda/detail/extrema.h>
-#include <thrust/system/cuda/detail/fill.h>
-#include <thrust/system/cuda/detail/find.h>
-#include <thrust/system/cuda/detail/for_each.h>
-#include <thrust/system/cuda/detail/gather.h>
-#include <thrust/system/cuda/detail/generate.h>
-#include <thrust/system/cuda/detail/inner_product.h>
-#include <thrust/system/cuda/detail/mismatch.h>
-#include <thrust/system/cuda/detail/partition.h>
-#include <thrust/system/cuda/detail/reduce_by_key.h>
-#include <thrust/system/cuda/detail/remove.h>
-#include <thrust/system/cuda/detail/replace.h>
-#include <thrust/system/cuda/detail/reverse.h>
-#include <thrust/system/cuda/detail/scatter.h>
-#include <thrust/system/cuda/detail/swap_ranges.h>
-#include <thrust/system/cuda/detail/tabulate.h>
-#include <thrust/system/cuda/detail/transform.h>
-#include <thrust/system/cuda/detail/transform_reduce.h>
-#include <thrust/system/cuda/detail/transform_scan.h>
-#include <thrust/system/cuda/detail/uninitialized_copy.h>
-#include <thrust/system/cuda/detail/uninitialized_fill.h>
-#include <thrust/system/cuda/detail/unique.h>
-#include <thrust/system/cuda/detail/unique_by_key.h>
+// // pass
+// // ----------------
+// #include <thrust/system/cuda/detail/adjacent_difference.h>
+// #include <thrust/system/cuda/detail/copy.h>
+// #include <thrust/system/cuda/detail/copy_if.h>
+// #include <thrust/system/cuda/detail/count.h>
+// #include <thrust/system/cuda/detail/equal.h>
+// #include <thrust/system/cuda/detail/extrema.h>
+// #include <thrust/system/cuda/detail/fill.h>
+// #include <thrust/system/cuda/detail/find.h>
+// #include <thrust/system/cuda/detail/for_each.h>
+// #include <thrust/system/cuda/detail/gather.h>
+// #include <thrust/system/cuda/detail/generate.h>
+// #include <thrust/system/cuda/detail/inner_product.h>
+// #include <thrust/system/cuda/detail/mismatch.h>
+// #include <thrust/system/cuda/detail/partition.h>
+// #include <thrust/system/cuda/detail/reduce_by_key.h>
+// #include <thrust/system/cuda/detail/remove.h>
+// #include <thrust/system/cuda/detail/replace.h>
+// #include <thrust/system/cuda/detail/reverse.h>
+// #include <thrust/system/cuda/detail/scatter.h>
+// #include <thrust/system/cuda/detail/swap_ranges.h>
+// #include <thrust/system/cuda/detail/tabulate.h>
+// #include <thrust/system/cuda/detail/transform.h>
+// #include <thrust/system/cuda/detail/transform_reduce.h>
+// #include <thrust/system/cuda/detail/transform_scan.h>
+// #include <thrust/system/cuda/detail/uninitialized_copy.h>
+// #include <thrust/system/cuda/detail/uninitialized_fill.h>
+// #include <thrust/system/cuda/detail/unique.h>
+// #include <thrust/system/cuda/detail/unique_by_key.h>
-// fail
-// ----------------
-// fails with mixed types
-#include <thrust/system/cuda/detail/reduce.h>
+// // fail
+// // ----------------
+// // fails with mixed types
+// #include <thrust/system/cuda/detail/reduce.h>
-// mixed types are not compiling, commented in testing/scan.cu
-#include <thrust/system/cuda/detail/scan.h>
+// // mixed types are not compiling, commented in testing/scan.cu
+// #include <thrust/system/cuda/detail/scan.h>
-// stubs passed
-// ----------------
-#include <thrust/system/cuda/detail/binary_search.h>
-#include <thrust/system/cuda/detail/merge.h>
-#include <thrust/system/cuda/detail/scan_by_key.h>
-#include <thrust/system/cuda/detail/set_operations.h>
-#include <thrust/system/cuda/detail/sort.h>
+// // stubs passed
+// // ----------------
+// #include <thrust/system/cuda/detail/binary_search.h>
+// #include <thrust/system/cuda/detail/merge.h>
+// #include <thrust/system/cuda/detail/scan_by_key.h>
+// #include <thrust/system/cuda/detail/set_operations.h>
+// #include <thrust/system/cuda/detail/sort.h>
-// work in progress
+// // work in progress

HIP backend hipify [detail/]execution_policy.h