From f37a430547e5a84032590f2df8d476ba766ac959 Mon Sep 17 00:00:00 2001 From: Michael Schellenberger Costa Date: Mon, 16 Oct 2023 11:10:30 +0200 Subject: [PATCH] Fix nvc++ preprocessor issue around `#pragma GCC system_header` nvc++ breaks if we put `#pragma GCC system_header` into a macro. As we really want that macro for compilers that are different than gcc we work around this by special casing nvc++ in the individual header files --- cub/cub/agent/agent_adjacent_difference.cuh | 4 ++++ cub/cub/agent/agent_batch_memcpy.cuh | 4 ++++ cub/cub/agent/agent_histogram.cuh | 4 ++++ cub/cub/agent/agent_merge_sort.cuh | 4 ++++ cub/cub/agent/agent_radix_sort_downsweep.cuh | 4 ++++ cub/cub/agent/agent_radix_sort_histogram.cuh | 4 ++++ cub/cub/agent/agent_radix_sort_onesweep.cuh | 4 ++++ cub/cub/agent/agent_radix_sort_upsweep.cuh | 4 ++++ cub/cub/agent/agent_reduce.cuh | 4 ++++ cub/cub/agent/agent_reduce_by_key.cuh | 4 ++++ cub/cub/agent/agent_rle.cuh | 4 ++++ cub/cub/agent/agent_scan.cuh | 4 ++++ cub/cub/agent/agent_scan_by_key.cuh | 4 ++++ cub/cub/agent/agent_segment_fixup.cuh | 4 ++++ cub/cub/agent/agent_segmented_radix_sort.cuh | 4 ++++ cub/cub/agent/agent_select_if.cuh | 4 ++++ cub/cub/agent/agent_spmv_orig.cuh | 4 ++++ cub/cub/agent/agent_sub_warp_merge_sort.cuh | 4 ++++ cub/cub/agent/agent_three_way_partition.cuh | 4 ++++ cub/cub/agent/agent_unique_by_key.cuh | 4 ++++ cub/cub/agent/single_pass_scan_operators.cuh | 4 ++++ cub/cub/block/block_adjacent_difference.cuh | 4 ++++ cub/cub/block/block_discontinuity.cuh | 4 ++++ cub/cub/block/block_exchange.cuh | 4 ++++ cub/cub/block/block_histogram.cuh | 4 ++++ cub/cub/block/block_load.cuh | 4 ++++ cub/cub/block/block_merge_sort.cuh | 4 ++++ cub/cub/block/block_radix_rank.cuh | 4 ++++ cub/cub/block/block_radix_sort.cuh | 4 ++++ cub/cub/block/block_raking_layout.cuh | 4 ++++ cub/cub/block/block_reduce.cuh | 4 ++++ cub/cub/block/block_run_length_decode.cuh | 4 ++++ cub/cub/block/block_scan.cuh | 4 ++++ cub/cub/block/block_shuffle.cuh | 4 ++++ cub/cub/block/block_store.cuh | 4 ++++ cub/cub/block/radix_rank_sort_operations.cuh | 4 ++++ cub/cub/block/specializations/block_histogram_atomic.cuh | 4 ++++ cub/cub/block/specializations/block_histogram_sort.cuh | 4 ++++ cub/cub/block/specializations/block_reduce_raking.cuh | 4 ++++ .../block_reduce_raking_commutative_only.cuh | 4 ++++ .../specializations/block_reduce_warp_reductions.cuh | 4 ++++ cub/cub/block/specializations/block_scan_raking.cuh | 4 ++++ cub/cub/block/specializations/block_scan_warp_scans.cuh | 4 ++++ cub/cub/config.cuh | 6 +++++- cub/cub/cub.cuh | 4 ++++ cub/cub/detail/choose_offset.cuh | 4 ++++ cub/cub/detail/cpp_compatibility.cuh | 4 ++++ cub/cub/detail/detect_cuda_runtime.cuh | 4 ++++ cub/cub/detail/device_double_buffer.cuh | 4 ++++ cub/cub/detail/device_synchronize.cuh | 4 ++++ cub/cub/detail/exec_check_disable.cuh | 4 ++++ cub/cub/detail/strong_load.cuh | 4 ++++ cub/cub/detail/strong_store.cuh | 4 ++++ cub/cub/detail/temporary_storage.cuh | 4 ++++ cub/cub/detail/type_traits.cuh | 4 ++++ cub/cub/detail/uninitialized_copy.cuh | 4 ++++ cub/cub/device/device_adjacent_difference.cuh | 4 ++++ cub/cub/device/device_copy.cuh | 4 ++++ cub/cub/device/device_histogram.cuh | 4 ++++ cub/cub/device/device_memcpy.cuh | 4 ++++ cub/cub/device/device_merge_sort.cuh | 4 ++++ cub/cub/device/device_partition.cuh | 4 ++++ cub/cub/device/device_radix_sort.cuh | 4 ++++ cub/cub/device/device_reduce.cuh | 4 ++++ cub/cub/device/device_run_length_encode.cuh | 4 ++++ cub/cub/device/device_scan.cuh | 4 ++++ cub/cub/device/device_segmented_radix_sort.cuh | 4 ++++ cub/cub/device/device_segmented_reduce.cuh | 4 ++++ cub/cub/device/device_segmented_sort.cuh | 4 ++++ cub/cub/device/device_select.cuh | 4 ++++ cub/cub/device/device_spmv.cuh | 4 ++++ cub/cub/device/dispatch/dispatch_adjacent_difference.cuh | 4 ++++ cub/cub/device/dispatch/dispatch_batch_memcpy.cuh | 4 ++++ cub/cub/device/dispatch/dispatch_histogram.cuh | 4 ++++ cub/cub/device/dispatch/dispatch_merge_sort.cuh | 4 ++++ cub/cub/device/dispatch/dispatch_radix_sort.cuh | 4 ++++ cub/cub/device/dispatch/dispatch_reduce.cuh | 4 ++++ cub/cub/device/dispatch/dispatch_reduce_by_key.cuh | 4 ++++ cub/cub/device/dispatch/dispatch_rle.cuh | 4 ++++ cub/cub/device/dispatch/dispatch_scan.cuh | 4 ++++ cub/cub/device/dispatch/dispatch_scan_by_key.cuh | 4 ++++ cub/cub/device/dispatch/dispatch_segmented_sort.cuh | 4 ++++ cub/cub/device/dispatch/dispatch_select_if.cuh | 4 ++++ cub/cub/device/dispatch/dispatch_spmv_orig.cuh | 4 ++++ cub/cub/device/dispatch/dispatch_three_way_partition.cuh | 4 ++++ cub/cub/device/dispatch/tuning/tuning_histogram.cuh | 4 ++++ cub/cub/device/dispatch/tuning/tuning_reduce_by_key.cuh | 4 ++++ .../device/dispatch/tuning/tuning_run_length_encode.cuh | 4 ++++ cub/cub/device/dispatch/tuning/tuning_scan.cuh | 4 ++++ cub/cub/device/dispatch/tuning/tuning_scan_by_key.cuh | 4 ++++ cub/cub/device/dispatch/tuning/tuning_select_if.cuh | 4 ++++ .../dispatch/tuning/tuning_three_way_partition.cuh | 4 ++++ cub/cub/device/dispatch/tuning/tuning_unique_by_key.cuh | 4 ++++ cub/cub/grid/grid_barrier.cuh | 4 ++++ cub/cub/grid/grid_even_share.cuh | 4 ++++ cub/cub/grid/grid_mapping.cuh | 4 ++++ cub/cub/grid/grid_queue.cuh | 4 ++++ cub/cub/host/mutex.cuh | 4 ++++ cub/cub/iterator/arg_index_input_iterator.cuh | 4 ++++ cub/cub/iterator/cache_modified_input_iterator.cuh | 4 ++++ cub/cub/iterator/cache_modified_output_iterator.cuh | 4 ++++ cub/cub/iterator/constant_input_iterator.cuh | 4 ++++ cub/cub/iterator/counting_input_iterator.cuh | 4 ++++ cub/cub/iterator/discard_output_iterator.cuh | 4 ++++ cub/cub/iterator/tex_obj_input_iterator.cuh | 4 ++++ cub/cub/iterator/tex_ref_input_iterator.cuh | 4 ++++ cub/cub/iterator/transform_input_iterator.cuh | 4 ++++ cub/cub/thread/thread_load.cuh | 4 ++++ cub/cub/thread/thread_operators.cuh | 4 ++++ cub/cub/thread/thread_reduce.cuh | 4 ++++ cub/cub/thread/thread_scan.cuh | 4 ++++ cub/cub/thread/thread_search.cuh | 4 ++++ cub/cub/thread/thread_sort.cuh | 4 ++++ cub/cub/thread/thread_store.cuh | 4 ++++ cub/cub/util_allocator.cuh | 4 ++++ cub/cub/util_arch.cuh | 4 ++++ cub/cub/util_compiler.cuh | 6 +++++- cub/cub/util_cpp_dialect.cuh | 4 ++++ cub/cub/util_debug.cuh | 4 ++++ cub/cub/util_deprecated.cuh | 4 ++++ cub/cub/util_device.cuh | 4 ++++ cub/cub/util_macro.cuh | 4 ++++ cub/cub/util_math.cuh | 4 ++++ cub/cub/util_namespace.cuh | 4 ++++ cub/cub/util_ptx.cuh | 4 ++++ cub/cub/util_temporary_storage.cuh | 4 ++++ cub/cub/util_type.cuh | 4 ++++ cub/cub/version.cuh | 6 +++++- cub/cub/warp/specializations/warp_exchange_shfl.cuh | 4 ++++ cub/cub/warp/specializations/warp_exchange_smem.cuh | 4 ++++ cub/cub/warp/specializations/warp_reduce_shfl.cuh | 4 ++++ cub/cub/warp/specializations/warp_reduce_smem.cuh | 4 ++++ cub/cub/warp/specializations/warp_scan_shfl.cuh | 4 ++++ cub/cub/warp/specializations/warp_scan_smem.cuh | 4 ++++ cub/cub/warp/warp_exchange.cuh | 4 ++++ cub/cub/warp/warp_load.cuh | 4 ++++ cub/cub/warp/warp_merge_sort.cuh | 4 ++++ cub/cub/warp/warp_reduce.cuh | 4 ++++ cub/cub/warp/warp_scan.cuh | 4 ++++ cub/cub/warp/warp_store.cuh | 4 ++++ .../utils/generate_feature_test_macro_components.py | 4 ++++ .../std/detail/libcxx/include/__algorithm/swap_ranges.h | 4 ++++ .../include/cuda/std/detail/libcxx/include/__assert | 4 ++++ .../cuda/std/detail/libcxx/include/__availability | 4 ++++ .../cuda/std/detail/libcxx/include/__bit_reference | 4 ++++ .../std/detail/libcxx/include/__bsd_locale_defaults.h | 4 ++++ .../std/detail/libcxx/include/__bsd_locale_fallbacks.h | 4 ++++ .../cuda/std/detail/libcxx/include/__cccl/visibility.h | 9 +++++++-- .../include/cuda/std/detail/libcxx/include/__cccl_config | 5 +++++ .../cuda/std/detail/libcxx/include/__concepts/_One_of.h | 4 ++++ .../detail/libcxx/include/__concepts/__concept_macros.h | 6 ++++++ .../std/detail/libcxx/include/__concepts/arithmetic.h | 4 ++++ .../std/detail/libcxx/include/__concepts/assignable.h | 4 ++++ .../detail/libcxx/include/__concepts/boolean_testable.h | 4 ++++ .../std/detail/libcxx/include/__concepts/class_or_enum.h | 4 ++++ .../libcxx/include/__concepts/common_reference_with.h | 4 ++++ .../std/detail/libcxx/include/__concepts/common_with.h | 4 ++++ .../std/detail/libcxx/include/__concepts/constructible.h | 4 ++++ .../detail/libcxx/include/__concepts/convertible_to.h | 4 ++++ .../cuda/std/detail/libcxx/include/__concepts/copyable.h | 4 ++++ .../std/detail/libcxx/include/__concepts/derived_from.h | 4 ++++ .../std/detail/libcxx/include/__concepts/destructible.h | 4 ++++ .../detail/libcxx/include/__concepts/different_from.h | 4 ++++ .../libcxx/include/__concepts/equality_comparable.h | 4 ++++ .../std/detail/libcxx/include/__concepts/invocable.h | 4 ++++ .../cuda/std/detail/libcxx/include/__concepts/movable.h | 4 ++++ .../std/detail/libcxx/include/__concepts/predicate.h | 4 ++++ .../cuda/std/detail/libcxx/include/__concepts/regular.h | 4 ++++ .../cuda/std/detail/libcxx/include/__concepts/relation.h | 4 ++++ .../cuda/std/detail/libcxx/include/__concepts/same_as.h | 4 ++++ .../std/detail/libcxx/include/__concepts/semiregular.h | 4 ++++ .../std/detail/libcxx/include/__concepts/swappable.h | 4 ++++ .../detail/libcxx/include/__concepts/totally_ordered.h | 4 ++++ .../include/cuda/std/detail/libcxx/include/__config | 4 ++++ .../cuda/std/detail/libcxx/include/__cuda/atomic.h | 4 ++++ .../cuda/std/detail/libcxx/include/__cuda/barrier.h | 4 ++++ .../cuda/std/detail/libcxx/include/__cuda/chrono.h | 4 ++++ .../cuda/std/detail/libcxx/include/__cuda/semaphore.h | 4 ++++ .../include/cuda/std/detail/libcxx/include/__debug | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/__errc | 4 ++++ .../libcxx/include/__expected/bad_expected_access.h | 4 ++++ .../cuda/std/detail/libcxx/include/__expected/expected.h | 4 ++++ .../std/detail/libcxx/include/__expected/expected_base.h | 4 ++++ .../cuda/std/detail/libcxx/include/__expected/unexpect.h | 4 ++++ .../std/detail/libcxx/include/__expected/unexpected.h | 4 ++++ .../detail/libcxx/include/__functional/binary_function.h | 4 ++++ .../detail/libcxx/include/__functional/binary_negate.h | 4 ++++ .../cuda/std/detail/libcxx/include/__functional/bind.h | 4 ++++ .../std/detail/libcxx/include/__functional/bind_back.h | 4 ++++ .../std/detail/libcxx/include/__functional/bind_front.h | 4 ++++ .../std/detail/libcxx/include/__functional/binder1st.h | 4 ++++ .../std/detail/libcxx/include/__functional/binder2nd.h | 4 ++++ .../std/detail/libcxx/include/__functional/compose.h | 4 ++++ .../libcxx/include/__functional/default_searcher.h | 4 ++++ .../std/detail/libcxx/include/__functional/function.h | 4 ++++ .../cuda/std/detail/libcxx/include/__functional/hash.h | 4 ++++ .../std/detail/libcxx/include/__functional/identity.h | 4 ++++ .../cuda/std/detail/libcxx/include/__functional/invoke.h | 4 ++++ .../detail/libcxx/include/__functional/is_transparent.h | 4 ++++ .../cuda/std/detail/libcxx/include/__functional/mem_fn.h | 4 ++++ .../std/detail/libcxx/include/__functional/mem_fun_ref.h | 4 ++++ .../cuda/std/detail/libcxx/include/__functional/not_fn.h | 4 ++++ .../std/detail/libcxx/include/__functional/operations.h | 4 ++++ .../detail/libcxx/include/__functional/perfect_forward.h | 4 ++++ .../include/__functional/pointer_to_binary_function.h | 4 ++++ .../include/__functional/pointer_to_unary_function.h | 4 ++++ .../libcxx/include/__functional/ranges_operations.h | 4 ++++ .../libcxx/include/__functional/reference_wrapper.h | 4 ++++ .../detail/libcxx/include/__functional/unary_function.h | 4 ++++ .../detail/libcxx/include/__functional/unary_negate.h | 4 ++++ .../std/detail/libcxx/include/__functional/unwrap_ref.h | 4 ++++ .../libcxx/include/__functional/weak_result_type.h | 4 ++++ .../cuda/std/detail/libcxx/include/__functional_base | 4 ++++ .../include/cuda/std/detail/libcxx/include/__fwd/array.h | 4 ++++ .../include/cuda/std/detail/libcxx/include/__fwd/get.h | 4 ++++ .../include/cuda/std/detail/libcxx/include/__fwd/hash.h | 4 ++++ .../std/detail/libcxx/include/__fwd/memory_resource.h | 4 ++++ .../include/cuda/std/detail/libcxx/include/__fwd/pair.h | 4 ++++ .../include/cuda/std/detail/libcxx/include/__fwd/span.h | 4 ++++ .../cuda/std/detail/libcxx/include/__fwd/string.h | 4 ++++ .../cuda/std/detail/libcxx/include/__fwd/string_view.h | 4 ++++ .../include/cuda/std/detail/libcxx/include/__fwd/tuple.h | 4 ++++ .../include/cuda/std/detail/libcxx/include/__hash_table | 4 ++++ .../cuda/std/detail/libcxx/include/__iterator/access.h | 4 ++++ .../cuda/std/detail/libcxx/include/__iterator/advance.h | 4 ++++ .../libcxx/include/__iterator/back_insert_iterator.h | 4 ++++ .../std/detail/libcxx/include/__iterator/bounded_iter.h | 6 ++++-- .../cuda/std/detail/libcxx/include/__iterator/concepts.h | 4 ++++ .../cuda/std/detail/libcxx/include/__iterator/data.h | 4 ++++ .../detail/libcxx/include/__iterator/default_sentinel.h | 4 ++++ .../cuda/std/detail/libcxx/include/__iterator/distance.h | 4 ++++ .../cuda/std/detail/libcxx/include/__iterator/empty.h | 4 ++++ .../libcxx/include/__iterator/erase_if_container.h | 4 ++++ .../libcxx/include/__iterator/front_insert_iterator.h | 4 ++++ .../libcxx/include/__iterator/incrementable_traits.h | 4 ++++ .../libcxx/include/__iterator/indirectly_comparable.h | 4 ++++ .../detail/libcxx/include/__iterator/insert_iterator.h | 4 ++++ .../detail/libcxx/include/__iterator/istream_iterator.h | 4 ++++ .../libcxx/include/__iterator/istreambuf_iterator.h | 4 ++++ .../std/detail/libcxx/include/__iterator/iter_move.h | 4 ++++ .../std/detail/libcxx/include/__iterator/iter_swap.h | 4 ++++ .../cuda/std/detail/libcxx/include/__iterator/iterator.h | 4 ++++ .../detail/libcxx/include/__iterator/iterator_traits.h | 4 ++++ .../std/detail/libcxx/include/__iterator/mergeable.h | 4 ++++ .../std/detail/libcxx/include/__iterator/move_iterator.h | 4 ++++ .../std/detail/libcxx/include/__iterator/move_sentinel.h | 4 ++++ .../cuda/std/detail/libcxx/include/__iterator/next.h | 4 ++++ .../detail/libcxx/include/__iterator/ostream_iterator.h | 4 ++++ .../libcxx/include/__iterator/ostreambuf_iterator.h | 4 ++++ .../std/detail/libcxx/include/__iterator/permutable.h | 4 ++++ .../cuda/std/detail/libcxx/include/__iterator/prev.h | 4 ++++ .../std/detail/libcxx/include/__iterator/projected.h | 4 ++++ .../detail/libcxx/include/__iterator/readable_traits.h | 4 ++++ .../detail/libcxx/include/__iterator/reverse_access.h | 4 ++++ .../detail/libcxx/include/__iterator/reverse_iterator.h | 4 ++++ .../cuda/std/detail/libcxx/include/__iterator/size.h | 4 ++++ .../cuda/std/detail/libcxx/include/__iterator/sortable.h | 4 ++++ .../libcxx/include/__iterator/unreachable_sentinel.h | 4 ++++ .../std/detail/libcxx/include/__iterator/wrap_iter.h | 4 ++++ .../include/cuda/std/detail/libcxx/include/__locale | 4 ++++ .../std/detail/libcxx/include/__mdspan/compressed_pair.h | 4 ++++ .../detail/libcxx/include/__mdspan/default_accessor.h | 4 ++++ .../cuda/std/detail/libcxx/include/__mdspan/extents.h | 4 ++++ .../std/detail/libcxx/include/__mdspan/full_extent_t.h | 4 ++++ .../std/detail/libcxx/include/__mdspan/layout_left.h | 4 ++++ .../std/detail/libcxx/include/__mdspan/layout_right.h | 4 ++++ .../std/detail/libcxx/include/__mdspan/layout_stride.h | 4 ++++ .../cuda/std/detail/libcxx/include/__mdspan/macros.h | 4 ++++ .../detail/libcxx/include/__mdspan/maybe_static_value.h | 4 ++++ .../cuda/std/detail/libcxx/include/__mdspan/mdspan.h | 4 ++++ .../detail/libcxx/include/__mdspan/no_unique_address.h | 4 ++++ .../include/__mdspan/standard_layout_static_array.h | 4 ++++ .../std/detail/libcxx/include/__mdspan/static_array.h | 4 ++++ .../cuda/std/detail/libcxx/include/__mdspan/submdspan.h | 4 ++++ .../cuda/std/detail/libcxx/include/__mdspan/type_list.h | 4 ++++ .../cuda/std/detail/libcxx/include/__memory/addressof.h | 4 ++++ .../std/detail/libcxx/include/__memory/construct_at.h | 4 ++++ .../std/detail/libcxx/include/__memory/pointer_traits.h | 4 ++++ .../cuda/std/detail/libcxx/include/__memory/voidify.h | 4 ++++ .../include/cuda/std/detail/libcxx/include/__mutex_base | 4 ++++ .../include/cuda/std/detail/libcxx/include/__node_handle | 4 ++++ .../include/cuda/std/detail/libcxx/include/__nullptr | 4 ++++ .../cuda/std/detail/libcxx/include/__split_buffer | 4 ++++ .../cuda/std/detail/libcxx/include/__sso_allocator | 4 ++++ .../include/cuda/std/detail/libcxx/include/__std_stream | 4 ++++ .../include/cuda/std/detail/libcxx/include/__string | 4 ++++ .../cuda/std/detail/libcxx/include/__threading_support | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/__tree | 4 ++++ .../std/detail/libcxx/include/__tuple_dir/apply_cv.h | 4 ++++ .../detail/libcxx/include/__tuple_dir/make_tuple_types.h | 4 ++++ .../detail/libcxx/include/__tuple_dir/sfinae_helpers.h | 4 ++++ .../detail/libcxx/include/__tuple_dir/tuple_element.h | 4 ++++ .../detail/libcxx/include/__tuple_dir/tuple_indices.h | 4 ++++ .../std/detail/libcxx/include/__tuple_dir/tuple_like.h | 4 ++++ .../std/detail/libcxx/include/__tuple_dir/tuple_size.h | 4 ++++ .../std/detail/libcxx/include/__tuple_dir/tuple_types.h | 4 ++++ .../std/detail/libcxx/include/__type_traits/add_const.h | 4 ++++ .../std/detail/libcxx/include/__type_traits/add_cv.h | 4 ++++ .../libcxx/include/__type_traits/add_lvalue_reference.h | 4 ++++ .../detail/libcxx/include/__type_traits/add_pointer.h | 4 ++++ .../libcxx/include/__type_traits/add_rvalue_reference.h | 4 ++++ .../detail/libcxx/include/__type_traits/add_volatile.h | 4 ++++ .../libcxx/include/__type_traits/aligned_storage.h | 4 ++++ .../detail/libcxx/include/__type_traits/aligned_union.h | 4 ++++ .../detail/libcxx/include/__type_traits/alignment_of.h | 4 ++++ .../std/detail/libcxx/include/__type_traits/apply_cv.h | 4 ++++ .../libcxx/include/__type_traits/can_extract_key.h | 4 ++++ .../libcxx/include/__type_traits/common_reference.h | 4 ++++ .../detail/libcxx/include/__type_traits/common_type.h | 4 ++++ .../detail/libcxx/include/__type_traits/conditional.h | 4 ++++ .../detail/libcxx/include/__type_traits/conjunction.h | 4 ++++ .../std/detail/libcxx/include/__type_traits/copy_cv.h | 4 ++++ .../std/detail/libcxx/include/__type_traits/copy_cvref.h | 4 ++++ .../cuda/std/detail/libcxx/include/__type_traits/decay.h | 4 ++++ .../detail/libcxx/include/__type_traits/dependent_type.h | 4 ++++ .../detail/libcxx/include/__type_traits/disjunction.h | 4 ++++ .../std/detail/libcxx/include/__type_traits/enable_if.h | 4 ++++ .../std/detail/libcxx/include/__type_traits/extent.h | 4 ++++ .../__type_traits/has_unique_object_representation.h | 4 ++++ .../include/__type_traits/has_virtual_destructor.h | 4 ++++ .../libcxx/include/__type_traits/integral_constant.h | 4 ++++ .../detail/libcxx/include/__type_traits/is_abstract.h | 4 ++++ .../detail/libcxx/include/__type_traits/is_aggregate.h | 4 ++++ .../detail/libcxx/include/__type_traits/is_allocator.h | 4 ++++ .../detail/libcxx/include/__type_traits/is_arithmetic.h | 4 ++++ .../std/detail/libcxx/include/__type_traits/is_array.h | 4 ++++ .../detail/libcxx/include/__type_traits/is_assignable.h | 4 ++++ .../std/detail/libcxx/include/__type_traits/is_base_of.h | 4 ++++ .../libcxx/include/__type_traits/is_bounded_array.h | 4 ++++ .../detail/libcxx/include/__type_traits/is_callable.h | 4 ++++ .../libcxx/include/__type_traits/is_char_like_type.h | 4 ++++ .../std/detail/libcxx/include/__type_traits/is_class.h | 4 ++++ .../detail/libcxx/include/__type_traits/is_compound.h | 4 ++++ .../std/detail/libcxx/include/__type_traits/is_const.h | 4 ++++ .../libcxx/include/__type_traits/is_constant_evaluated.h | 4 ++++ .../libcxx/include/__type_traits/is_constructible.h | 4 ++++ .../detail/libcxx/include/__type_traits/is_convertible.h | 4 ++++ .../libcxx/include/__type_traits/is_copy_assignable.h | 4 ++++ .../libcxx/include/__type_traits/is_copy_constructible.h | 4 ++++ .../libcxx/include/__type_traits/is_core_convertible.h | 4 ++++ .../include/__type_traits/is_default_constructible.h | 4 ++++ .../libcxx/include/__type_traits/is_destructible.h | 4 ++++ .../std/detail/libcxx/include/__type_traits/is_empty.h | 4 ++++ .../std/detail/libcxx/include/__type_traits/is_enum.h | 4 ++++ .../std/detail/libcxx/include/__type_traits/is_final.h | 4 ++++ .../libcxx/include/__type_traits/is_floating_point.h | 4 ++++ .../detail/libcxx/include/__type_traits/is_function.h | 4 ++++ .../detail/libcxx/include/__type_traits/is_fundamental.h | 4 ++++ .../__type_traits/is_implicitly_default_constructible.h | 4 ++++ .../detail/libcxx/include/__type_traits/is_integral.h | 4 ++++ .../libcxx/include/__type_traits/is_literal_type.h | 4 ++++ .../include/__type_traits/is_member_function_pointer.h | 4 ++++ .../include/__type_traits/is_member_object_pointer.h | 4 ++++ .../libcxx/include/__type_traits/is_member_pointer.h | 4 ++++ .../libcxx/include/__type_traits/is_move_assignable.h | 4 ++++ .../libcxx/include/__type_traits/is_move_constructible.h | 4 ++++ .../libcxx/include/__type_traits/is_nothrow_assignable.h | 4 ++++ .../include/__type_traits/is_nothrow_constructible.h | 4 ++++ .../include/__type_traits/is_nothrow_convertible.h | 4 ++++ .../include/__type_traits/is_nothrow_copy_assignable.h | 4 ++++ .../__type_traits/is_nothrow_copy_constructible.h | 4 ++++ .../__type_traits/is_nothrow_default_constructible.h | 4 ++++ .../include/__type_traits/is_nothrow_destructible.h | 4 ++++ .../include/__type_traits/is_nothrow_move_assignable.h | 4 ++++ .../__type_traits/is_nothrow_move_constructible.h | 4 ++++ .../libcxx/include/__type_traits/is_null_pointer.h | 4 ++++ .../std/detail/libcxx/include/__type_traits/is_object.h | 4 ++++ .../std/detail/libcxx/include/__type_traits/is_pod.h | 4 ++++ .../std/detail/libcxx/include/__type_traits/is_pointer.h | 4 ++++ .../detail/libcxx/include/__type_traits/is_polymorphic.h | 4 ++++ .../libcxx/include/__type_traits/is_primary_template.h | 4 ++++ .../detail/libcxx/include/__type_traits/is_reference.h | 4 ++++ .../libcxx/include/__type_traits/is_reference_wrapper.h | 4 ++++ .../libcxx/include/__type_traits/is_referenceable.h | 4 ++++ .../std/detail/libcxx/include/__type_traits/is_same.h | 4 ++++ .../std/detail/libcxx/include/__type_traits/is_scalar.h | 4 ++++ .../detail/libcxx/include/__type_traits/is_scoped_enum.h | 4 ++++ .../std/detail/libcxx/include/__type_traits/is_signed.h | 4 ++++ .../libcxx/include/__type_traits/is_signed_integer.h | 4 ++++ .../libcxx/include/__type_traits/is_standard_layout.h | 4 ++++ .../detail/libcxx/include/__type_traits/is_swappable.h | 4 ++++ .../std/detail/libcxx/include/__type_traits/is_trivial.h | 4 ++++ .../include/__type_traits/is_trivially_assignable.h | 4 ++++ .../include/__type_traits/is_trivially_constructible.h | 4 ++++ .../include/__type_traits/is_trivially_copy_assignable.h | 4 ++++ .../__type_traits/is_trivially_copy_constructible.h | 4 ++++ .../libcxx/include/__type_traits/is_trivially_copyable.h | 4 ++++ .../__type_traits/is_trivially_default_constructible.h | 4 ++++ .../include/__type_traits/is_trivially_destructible.h | 4 ++++ .../include/__type_traits/is_trivially_move_assignable.h | 4 ++++ .../__type_traits/is_trivially_move_constructible.h | 4 ++++ .../libcxx/include/__type_traits/is_unbounded_array.h | 4 ++++ .../std/detail/libcxx/include/__type_traits/is_union.h | 4 ++++ .../detail/libcxx/include/__type_traits/is_unsigned.h | 4 ++++ .../libcxx/include/__type_traits/is_unsigned_integer.h | 4 ++++ .../libcxx/include/__type_traits/is_valid_expansion.h | 4 ++++ .../std/detail/libcxx/include/__type_traits/is_void.h | 4 ++++ .../detail/libcxx/include/__type_traits/is_volatile.h | 4 ++++ .../cuda/std/detail/libcxx/include/__type_traits/lazy.h | 4 ++++ .../libcxx/include/__type_traits/make_32_64_or_128_bit.h | 4 ++++ .../libcxx/include/__type_traits/make_const_lvalue_ref.h | 4 ++++ .../detail/libcxx/include/__type_traits/make_signed.h | 4 ++++ .../detail/libcxx/include/__type_traits/make_unsigned.h | 4 ++++ .../detail/libcxx/include/__type_traits/maybe_const.h | 4 ++++ .../cuda/std/detail/libcxx/include/__type_traits/nat.h | 4 ++++ .../std/detail/libcxx/include/__type_traits/negation.h | 4 ++++ .../std/detail/libcxx/include/__type_traits/promote.h | 4 ++++ .../cuda/std/detail/libcxx/include/__type_traits/rank.h | 4 ++++ .../libcxx/include/__type_traits/remove_all_extents.h | 4 ++++ .../detail/libcxx/include/__type_traits/remove_const.h | 4 ++++ .../libcxx/include/__type_traits/remove_const_ref.h | 4 ++++ .../std/detail/libcxx/include/__type_traits/remove_cv.h | 4 ++++ .../detail/libcxx/include/__type_traits/remove_cvref.h | 4 ++++ .../detail/libcxx/include/__type_traits/remove_extent.h | 4 ++++ .../detail/libcxx/include/__type_traits/remove_pointer.h | 4 ++++ .../libcxx/include/__type_traits/remove_reference.h | 4 ++++ .../libcxx/include/__type_traits/remove_volatile.h | 4 ++++ .../std/detail/libcxx/include/__type_traits/result_of.h | 4 ++++ .../detail/libcxx/include/__type_traits/type_identity.h | 4 ++++ .../std/detail/libcxx/include/__type_traits/type_list.h | 4 ++++ .../libcxx/include/__type_traits/underlying_type.h | 4 ++++ .../std/detail/libcxx/include/__type_traits/void_t.h | 4 ++++ .../cuda/std/detail/libcxx/include/__utility/as_const.h | 4 ++++ .../cuda/std/detail/libcxx/include/__utility/auto_cast.h | 4 ++++ .../cuda/std/detail/libcxx/include/__utility/cmp.h | 4 ++++ .../libcxx/include/__utility/convert_to_integral.h | 4 ++++ .../cuda/std/detail/libcxx/include/__utility/declval.h | 4 ++++ .../detail/libcxx/include/__utility/exception_guard.h | 4 ++++ .../cuda/std/detail/libcxx/include/__utility/exchange.h | 4 ++++ .../cuda/std/detail/libcxx/include/__utility/forward.h | 4 ++++ .../std/detail/libcxx/include/__utility/forward_like.h | 4 ++++ .../cuda/std/detail/libcxx/include/__utility/in_place.h | 4 ++++ .../detail/libcxx/include/__utility/integer_sequence.h | 4 ++++ .../cuda/std/detail/libcxx/include/__utility/move.h | 4 ++++ .../cuda/std/detail/libcxx/include/__utility/pair.h | 4 ++++ .../libcxx/include/__utility/piecewise_construct.h | 4 ++++ .../std/detail/libcxx/include/__utility/priority_tag.h | 4 ++++ .../cuda/std/detail/libcxx/include/__utility/rel_ops.h | 4 ++++ .../cuda/std/detail/libcxx/include/__utility/swap.h | 4 ++++ .../std/detail/libcxx/include/__utility/to_underlying.h | 4 ++++ .../std/detail/libcxx/include/__utility/unreachable.h | 4 ++++ .../cuda/std/detail/libcxx/include/__verbose_abort | 4 ++++ .../include/cuda/std/detail/libcxx/include/algorithm | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/any | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/array | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/atomic | 4 ++++ .../include/cuda/std/detail/libcxx/include/barrier | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/bit | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/bitset | 4 ++++ .../include/cuda/std/detail/libcxx/include/ccomplex | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/cctype | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/cerrno | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/cfenv | 4 ++++ .../include/cuda/std/detail/libcxx/include/charconv | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/chrono | 4 ++++ .../include/cuda/std/detail/libcxx/include/cinttypes | 4 ++++ .../include/cuda/std/detail/libcxx/include/climits | 4 ++++ .../include/cuda/std/detail/libcxx/include/clocale | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/cmath | 4 ++++ .../include/cuda/std/detail/libcxx/include/codecvt | 4 ++++ .../include/cuda/std/detail/libcxx/include/compare | 4 ++++ .../include/cuda/std/detail/libcxx/include/complex | 4 ++++ .../include/cuda/std/detail/libcxx/include/complex.h | 4 ++++ .../include/cuda/std/detail/libcxx/include/concepts | 4 ++++ .../cuda/std/detail/libcxx/include/condition_variable | 4 ++++ .../include/cuda/std/detail/libcxx/include/csetjmp | 4 ++++ .../include/cuda/std/detail/libcxx/include/csignal | 4 ++++ .../include/cuda/std/detail/libcxx/include/cstdarg | 4 ++++ .../include/cuda/std/detail/libcxx/include/cstdbool | 4 ++++ .../include/cuda/std/detail/libcxx/include/cstddef | 4 ++++ .../include/cuda/std/detail/libcxx/include/cstdint | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/cstdio | 4 ++++ .../include/cuda/std/detail/libcxx/include/cstdlib | 4 ++++ .../include/cuda/std/detail/libcxx/include/cstring | 4 ++++ .../include/cuda/std/detail/libcxx/include/ctgmath | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/ctime | 4 ++++ .../include/cuda/std/detail/libcxx/include/ctype.h | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/cwchar | 4 ++++ .../include/cuda/std/detail/libcxx/include/cwctype | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/deque | 4 ++++ .../include/cuda/std/detail/libcxx/include/errno.h | 4 ++++ .../include/cuda/std/detail/libcxx/include/exception | 4 ++++ .../include/cuda/std/detail/libcxx/include/expected | 4 ++++ .../cuda/std/detail/libcxx/include/experimental/__config | 4 ++++ .../std/detail/libcxx/include/experimental/algorithm | 4 ++++ .../std/detail/libcxx/include/experimental/coroutine | 4 ++++ .../cuda/std/detail/libcxx/include/experimental/deque | 4 ++++ .../std/detail/libcxx/include/experimental/filesystem | 4 ++++ .../std/detail/libcxx/include/experimental/forward_list | 4 ++++ .../std/detail/libcxx/include/experimental/functional | 4 ++++ .../cuda/std/detail/libcxx/include/experimental/list | 4 ++++ .../cuda/std/detail/libcxx/include/experimental/map | 4 ++++ .../detail/libcxx/include/experimental/memory_resource | 4 ++++ .../detail/libcxx/include/experimental/propagate_const | 6 +++++- .../cuda/std/detail/libcxx/include/experimental/regex | 4 ++++ .../cuda/std/detail/libcxx/include/experimental/set | 4 ++++ .../cuda/std/detail/libcxx/include/experimental/simd | 4 ++++ .../cuda/std/detail/libcxx/include/experimental/string | 4 ++++ .../std/detail/libcxx/include/experimental/type_traits | 4 ++++ .../std/detail/libcxx/include/experimental/unordered_map | 4 ++++ .../std/detail/libcxx/include/experimental/unordered_set | 4 ++++ .../cuda/std/detail/libcxx/include/experimental/utility | 4 ++++ .../cuda/std/detail/libcxx/include/experimental/vector | 4 ++++ .../include/cuda/std/detail/libcxx/include/ext/hash_map | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/fenv.h | 4 ++++ .../include/cuda/std/detail/libcxx/include/filesystem | 4 ++++ .../include/cuda/std/detail/libcxx/include/float.h | 4 ++++ .../include/cuda/std/detail/libcxx/include/forward_list | 4 ++++ .../include/cuda/std/detail/libcxx/include/fstream | 4 ++++ .../include/cuda/std/detail/libcxx/include/functional | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/future | 4 ++++ .../cuda/std/detail/libcxx/include/initializer_list | 4 ++++ .../include/cuda/std/detail/libcxx/include/inttypes.h | 4 ++++ .../include/cuda/std/detail/libcxx/include/iomanip | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/ios | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/iosfwd | 4 ++++ .../include/cuda/std/detail/libcxx/include/iostream | 4 ++++ .../include/cuda/std/detail/libcxx/include/istream | 4 ++++ .../include/cuda/std/detail/libcxx/include/iterator | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/latch | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/limits | 4 ++++ .../include/cuda/std/detail/libcxx/include/limits.h | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/list | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/locale | 4 ++++ .../include/cuda/std/detail/libcxx/include/locale.h | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/map | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/math.h | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/memory | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/mutex | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/new | 4 ++++ .../include/cuda/std/detail/libcxx/include/numeric | 4 ++++ .../include/cuda/std/detail/libcxx/include/optional | 4 ++++ .../include/cuda/std/detail/libcxx/include/ostream | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/queue | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/random | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/ratio | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/regex | 4 ++++ .../cuda/std/detail/libcxx/include/scoped_allocator | 4 ++++ .../include/cuda/std/detail/libcxx/include/semaphore | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/set | 4 ++++ .../include/cuda/std/detail/libcxx/include/setjmp.h | 4 ++++ .../include/cuda/std/detail/libcxx/include/shared_mutex | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/span | 4 ++++ .../include/cuda/std/detail/libcxx/include/sstream | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/stack | 4 ++++ .../include/cuda/std/detail/libcxx/include/stdbool.h | 4 ++++ .../include/cuda/std/detail/libcxx/include/stddef.h | 8 ++++++++ .../include/cuda/std/detail/libcxx/include/stdexcept | 4 ++++ .../include/cuda/std/detail/libcxx/include/stdint.h | 4 ++++ .../include/cuda/std/detail/libcxx/include/stdio.h | 8 ++++++++ .../include/cuda/std/detail/libcxx/include/stdlib.h | 8 ++++++++ .../include/cuda/std/detail/libcxx/include/streambuf | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/string | 4 ++++ .../include/cuda/std/detail/libcxx/include/string.h | 4 ++++ .../include/cuda/std/detail/libcxx/include/string_view | 4 ++++ .../include/cuda/std/detail/libcxx/include/strstream | 4 ++++ .../include/cuda/std/detail/libcxx/include/system_error | 4 ++++ .../include/cuda/std/detail/libcxx/include/tgmath.h | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/thread | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/tuple | 4 ++++ .../include/cuda/std/detail/libcxx/include/type_traits | 4 ++++ .../include/cuda/std/detail/libcxx/include/typeindex | 4 ++++ .../include/cuda/std/detail/libcxx/include/typeinfo | 4 ++++ .../include/cuda/std/detail/libcxx/include/unordered_map | 4 ++++ .../include/cuda/std/detail/libcxx/include/unordered_set | 4 ++++ .../include/cuda/std/detail/libcxx/include/utility | 4 ++++ .../include/cuda/std/detail/libcxx/include/valarray | 4 ++++ .../include/cuda/std/detail/libcxx/include/variant | 4 ++++ libcudacxx/include/cuda/std/detail/libcxx/include/vector | 4 ++++ .../include/cuda/std/detail/libcxx/include/version | 4 ++++ .../include/cuda/std/detail/libcxx/include/wchar.h | 8 ++++++++ .../include/cuda/std/detail/libcxx/include/wctype.h | 4 ++++ .../utils/generate_feature_test_macro_components.py | 4 ++++ thrust/thrust/addressof.h | 4 ++++ thrust/thrust/adjacent_difference.h | 4 ++++ thrust/thrust/advance.h | 4 ++++ thrust/thrust/allocate_unique.h | 4 ++++ thrust/thrust/async/copy.h | 4 ++++ thrust/thrust/async/for_each.h | 4 ++++ thrust/thrust/async/reduce.h | 4 ++++ thrust/thrust/async/scan.h | 4 ++++ thrust/thrust/async/sort.h | 4 ++++ thrust/thrust/async/transform.h | 4 ++++ thrust/thrust/binary_search.h | 4 ++++ thrust/thrust/complex.h | 4 ++++ thrust/thrust/copy.h | 4 ++++ thrust/thrust/count.h | 4 ++++ thrust/thrust/detail/adjacent_difference.inl | 4 ++++ thrust/thrust/detail/advance.inl | 4 ++++ thrust/thrust/detail/algorithm_wrapper.h | 4 ++++ thrust/thrust/detail/alignment.h | 4 ++++ thrust/thrust/detail/allocator/allocator_traits.h | 4 ++++ thrust/thrust/detail/allocator/allocator_traits.inl | 4 ++++ thrust/thrust/detail/allocator/copy_construct_range.h | 4 ++++ thrust/thrust/detail/allocator/copy_construct_range.inl | 4 ++++ thrust/thrust/detail/allocator/default_construct_range.h | 4 ++++ .../thrust/detail/allocator/default_construct_range.inl | 4 ++++ thrust/thrust/detail/allocator/destroy_range.h | 4 ++++ thrust/thrust/detail/allocator/destroy_range.inl | 4 ++++ thrust/thrust/detail/allocator/fill_construct_range.h | 4 ++++ thrust/thrust/detail/allocator/fill_construct_range.inl | 4 ++++ thrust/thrust/detail/allocator/malloc_allocator.h | 4 ++++ thrust/thrust/detail/allocator/malloc_allocator.inl | 4 ++++ thrust/thrust/detail/allocator/no_throw_allocator.h | 4 ++++ thrust/thrust/detail/allocator/tagged_allocator.h | 4 ++++ thrust/thrust/detail/allocator/tagged_allocator.inl | 4 ++++ thrust/thrust/detail/allocator/temporary_allocator.h | 4 ++++ thrust/thrust/detail/allocator/temporary_allocator.inl | 4 ++++ thrust/thrust/detail/allocator_aware_execution_policy.h | 4 ++++ thrust/thrust/detail/binary_search.inl | 4 ++++ thrust/thrust/detail/caching_allocator.h | 4 ++++ thrust/thrust/detail/config.h | 4 ++++ thrust/thrust/detail/config/compiler.h | 4 ++++ thrust/thrust/detail/config/compiler_fence.h | 4 ++++ thrust/thrust/detail/config/config.h | 6 +++++- thrust/thrust/detail/config/cpp_compatibility.h | 4 ++++ thrust/thrust/detail/config/cpp_dialect.h | 4 ++++ thrust/thrust/detail/config/debug.h | 4 ++++ thrust/thrust/detail/config/deprecated.h | 4 ++++ thrust/thrust/detail/config/device_system.h | 4 ++++ thrust/thrust/detail/config/exec_check_disable.h | 4 ++++ thrust/thrust/detail/config/forceinline.h | 4 ++++ thrust/thrust/detail/config/global_workarounds.h | 4 ++++ thrust/thrust/detail/config/host_device.h | 4 ++++ thrust/thrust/detail/config/host_system.h | 4 ++++ thrust/thrust/detail/config/memory_resource.h | 4 ++++ thrust/thrust/detail/config/namespace.h | 4 ++++ thrust/thrust/detail/config/simple_defines.h | 4 ++++ thrust/thrust/detail/contiguous_storage.h | 4 ++++ thrust/thrust/detail/contiguous_storage.inl | 4 ++++ thrust/thrust/detail/copy.h | 4 ++++ thrust/thrust/detail/copy.inl | 4 ++++ thrust/thrust/detail/copy_if.h | 4 ++++ thrust/thrust/detail/copy_if.inl | 4 ++++ thrust/thrust/detail/count.h | 4 ++++ thrust/thrust/detail/count.inl | 4 ++++ thrust/thrust/detail/cpp11_required.h | 4 ++++ thrust/thrust/detail/cpp14_required.h | 4 ++++ thrust/thrust/detail/cstdint.h | 4 ++++ .../thrust/detail/dependencies_aware_execution_policy.h | 4 ++++ thrust/thrust/detail/device_delete.inl | 4 ++++ thrust/thrust/detail/device_free.inl | 4 ++++ thrust/thrust/detail/device_malloc.inl | 4 ++++ thrust/thrust/detail/device_new.inl | 4 ++++ thrust/thrust/detail/device_ptr.inl | 4 ++++ thrust/thrust/detail/distance.inl | 4 ++++ thrust/thrust/detail/equal.inl | 4 ++++ thrust/thrust/detail/event_error.h | 4 ++++ thrust/thrust/detail/execute_with_allocator.h | 4 ++++ thrust/thrust/detail/execute_with_allocator_fwd.h | 4 ++++ thrust/thrust/detail/execute_with_dependencies.h | 4 ++++ thrust/thrust/detail/execution_policy.h | 4 ++++ thrust/thrust/detail/extrema.inl | 4 ++++ thrust/thrust/detail/fill.inl | 4 ++++ thrust/thrust/detail/find.inl | 4 ++++ thrust/thrust/detail/for_each.inl | 4 ++++ thrust/thrust/detail/function.h | 4 ++++ thrust/thrust/detail/functional.inl | 4 ++++ thrust/thrust/detail/functional/actor.h | 4 ++++ thrust/thrust/detail/functional/actor.inl | 4 ++++ thrust/thrust/detail/functional/argument.h | 4 ++++ thrust/thrust/detail/functional/composite.h | 4 ++++ thrust/thrust/detail/functional/operators.h | 4 ++++ .../detail/functional/operators/arithmetic_operators.h | 4 ++++ .../detail/functional/operators/assignment_operator.h | 4 ++++ .../detail/functional/operators/bitwise_operators.h | 4 ++++ .../functional/operators/compound_assignment_operators.h | 4 ++++ .../detail/functional/operators/logical_operators.h | 4 ++++ .../detail/functional/operators/operator_adaptors.h | 4 ++++ .../detail/functional/operators/relational_operators.h | 4 ++++ thrust/thrust/detail/functional/placeholder.h | 4 ++++ thrust/thrust/detail/functional/value.h | 4 ++++ thrust/thrust/detail/gather.inl | 4 ++++ thrust/thrust/detail/generate.inl | 4 ++++ thrust/thrust/detail/get_iterator_value.h | 4 ++++ thrust/thrust/detail/inner_product.inl | 4 ++++ thrust/thrust/detail/integer_math.h | 4 ++++ thrust/thrust/detail/integer_traits.h | 4 ++++ thrust/thrust/detail/internal_functional.h | 4 ++++ thrust/thrust/detail/logical.inl | 4 ++++ thrust/thrust/detail/malloc_and_free.h | 4 ++++ thrust/thrust/detail/memory_algorithms.h | 4 ++++ thrust/thrust/detail/memory_wrapper.h | 4 ++++ thrust/thrust/detail/merge.inl | 4 ++++ thrust/thrust/detail/minmax.h | 4 ++++ thrust/thrust/detail/mismatch.inl | 4 ++++ thrust/thrust/detail/modern_gcc_required.h | 4 ++++ thrust/thrust/detail/mpl/math.h | 4 ++++ thrust/thrust/detail/numeric_traits.h | 4 ++++ thrust/thrust/detail/numeric_wrapper.h | 4 ++++ thrust/thrust/detail/overlapped_copy.h | 4 ++++ thrust/thrust/detail/pair.inl | 4 ++++ thrust/thrust/detail/partition.inl | 4 ++++ thrust/thrust/detail/pointer.h | 4 ++++ thrust/thrust/detail/pointer.inl | 4 ++++ thrust/thrust/detail/preprocessor.h | 4 ++++ thrust/thrust/detail/range/head_flags.h | 4 ++++ thrust/thrust/detail/range/tail_flags.h | 4 ++++ thrust/thrust/detail/raw_pointer_cast.h | 4 ++++ thrust/thrust/detail/raw_reference_cast.h | 4 ++++ thrust/thrust/detail/reduce.inl | 4 ++++ thrust/thrust/detail/reference.h | 4 ++++ thrust/thrust/detail/reference_forward_declaration.h | 4 ++++ thrust/thrust/detail/remove.inl | 4 ++++ thrust/thrust/detail/replace.inl | 4 ++++ thrust/thrust/detail/reverse.inl | 4 ++++ thrust/thrust/detail/scan.inl | 4 ++++ thrust/thrust/detail/scatter.inl | 4 ++++ thrust/thrust/detail/select_system.h | 4 ++++ thrust/thrust/detail/seq.h | 4 ++++ thrust/thrust/detail/sequence.inl | 4 ++++ thrust/thrust/detail/set_operations.inl | 4 ++++ thrust/thrust/detail/shuffle.inl | 4 ++++ thrust/thrust/detail/sort.inl | 4 ++++ thrust/thrust/detail/static_assert.h | 4 ++++ thrust/thrust/detail/static_map.h | 4 ++++ thrust/thrust/detail/swap.h | 4 ++++ thrust/thrust/detail/swap.inl | 4 ++++ thrust/thrust/detail/swap_ranges.inl | 4 ++++ thrust/thrust/detail/tabulate.inl | 4 ++++ thrust/thrust/detail/temporary_array.h | 4 ++++ thrust/thrust/detail/temporary_array.inl | 4 ++++ thrust/thrust/detail/temporary_buffer.h | 4 ++++ thrust/thrust/detail/transform.inl | 4 ++++ thrust/thrust/detail/transform_reduce.inl | 4 ++++ thrust/thrust/detail/transform_scan.inl | 4 ++++ thrust/thrust/detail/trivial_sequence.h | 4 ++++ thrust/thrust/detail/tuple.inl | 4 ++++ thrust/thrust/detail/tuple_algorithms.h | 4 ++++ thrust/thrust/detail/tuple_meta_transform.h | 4 ++++ thrust/thrust/detail/tuple_transform.h | 4 ++++ thrust/thrust/detail/type_deduction.h | 4 ++++ thrust/thrust/detail/type_traits.h | 4 ++++ thrust/thrust/detail/type_traits/function_traits.h | 4 ++++ thrust/thrust/detail/type_traits/has_member_function.h | 4 ++++ thrust/thrust/detail/type_traits/has_nested_type.h | 4 ++++ thrust/thrust/detail/type_traits/has_trivial_assign.h | 4 ++++ thrust/thrust/detail/type_traits/is_call_possible.h | 4 ++++ .../thrust/detail/type_traits/is_metafunction_defined.h | 4 ++++ .../detail/type_traits/iterator/is_discard_iterator.h | 4 ++++ .../detail/type_traits/iterator/is_output_iterator.h | 4 ++++ thrust/thrust/detail/type_traits/minimum_type.h | 4 ++++ thrust/thrust/detail/type_traits/pointer_traits.h | 4 ++++ .../detail/type_traits/result_of_adaptable_function.h | 4 ++++ thrust/thrust/detail/uninitialized_copy.inl | 4 ++++ thrust/thrust/detail/uninitialized_fill.inl | 4 ++++ thrust/thrust/detail/unique.inl | 4 ++++ thrust/thrust/detail/use_default.h | 4 ++++ thrust/thrust/detail/util/align.h | 4 ++++ thrust/thrust/detail/vector_base.h | 4 ++++ thrust/thrust/detail/vector_base.inl | 4 ++++ thrust/thrust/device_allocator.h | 4 ++++ thrust/thrust/device_delete.h | 4 ++++ thrust/thrust/device_free.h | 4 ++++ thrust/thrust/device_make_unique.h | 4 ++++ thrust/thrust/device_malloc.h | 4 ++++ thrust/thrust/device_malloc_allocator.h | 4 ++++ thrust/thrust/device_new.h | 4 ++++ thrust/thrust/device_new_allocator.h | 4 ++++ thrust/thrust/device_ptr.h | 4 ++++ thrust/thrust/device_reference.h | 4 ++++ thrust/thrust/device_vector.h | 4 ++++ thrust/thrust/distance.h | 4 ++++ thrust/thrust/equal.h | 4 ++++ thrust/thrust/event.h | 4 ++++ thrust/thrust/execution_policy.h | 4 ++++ thrust/thrust/extrema.h | 4 ++++ thrust/thrust/fill.h | 4 ++++ thrust/thrust/find.h | 4 ++++ thrust/thrust/for_each.h | 4 ++++ thrust/thrust/functional.h | 4 ++++ thrust/thrust/future.h | 4 ++++ thrust/thrust/gather.h | 4 ++++ thrust/thrust/generate.h | 4 ++++ thrust/thrust/host_vector.h | 4 ++++ thrust/thrust/inner_product.h | 4 ++++ thrust/thrust/iterator/constant_iterator.h | 4 ++++ thrust/thrust/iterator/counting_iterator.h | 4 ++++ thrust/thrust/iterator/detail/any_assign.h | 4 ++++ thrust/thrust/iterator/detail/any_system_tag.h | 4 ++++ thrust/thrust/iterator/detail/constant_iterator_base.h | 4 ++++ thrust/thrust/iterator/detail/counting_iterator.inl | 4 ++++ thrust/thrust/iterator/detail/device_system_tag.h | 4 ++++ thrust/thrust/iterator/detail/discard_iterator_base.h | 4 ++++ thrust/thrust/iterator/detail/distance_from_result.h | 4 ++++ thrust/thrust/iterator/detail/host_system_tag.h | 4 ++++ thrust/thrust/iterator/detail/is_iterator_category.h | 4 ++++ thrust/thrust/iterator/detail/iterator_adaptor_base.h | 4 ++++ .../thrust/iterator/detail/iterator_category_to_system.h | 4 ++++ .../iterator/detail/iterator_category_to_traversal.h | 4 ++++ .../detail/iterator_category_with_system_and_traversal.h | 4 ++++ thrust/thrust/iterator/detail/iterator_facade_category.h | 4 ++++ thrust/thrust/iterator/detail/iterator_traits.inl | 4 ++++ thrust/thrust/iterator/detail/iterator_traversal_tags.h | 4 ++++ thrust/thrust/iterator/detail/join_iterator.h | 4 ++++ thrust/thrust/iterator/detail/minimum_category.h | 4 ++++ thrust/thrust/iterator/detail/minimum_system.h | 4 ++++ thrust/thrust/iterator/detail/normal_iterator.h | 4 ++++ .../thrust/iterator/detail/permutation_iterator_base.h | 4 ++++ thrust/thrust/iterator/detail/retag.h | 4 ++++ thrust/thrust/iterator/detail/reverse_iterator.inl | 4 ++++ thrust/thrust/iterator/detail/reverse_iterator_base.h | 4 ++++ thrust/thrust/iterator/detail/tagged_iterator.h | 4 ++++ .../iterator/detail/transform_input_output_iterator.inl | 4 ++++ thrust/thrust/iterator/detail/transform_iterator.inl | 4 ++++ .../thrust/iterator/detail/transform_output_iterator.inl | 4 ++++ .../iterator/detail/tuple_of_iterator_references.h | 4 ++++ thrust/thrust/iterator/detail/universal_categories.h | 4 ++++ thrust/thrust/iterator/detail/zip_iterator.inl | 4 ++++ thrust/thrust/iterator/detail/zip_iterator_base.h | 4 ++++ thrust/thrust/iterator/discard_iterator.h | 4 ++++ thrust/thrust/iterator/iterator_adaptor.h | 4 ++++ thrust/thrust/iterator/iterator_categories.h | 4 ++++ thrust/thrust/iterator/iterator_facade.h | 4 ++++ thrust/thrust/iterator/iterator_traits.h | 4 ++++ thrust/thrust/iterator/permutation_iterator.h | 4 ++++ thrust/thrust/iterator/retag.h | 4 ++++ thrust/thrust/iterator/reverse_iterator.h | 4 ++++ thrust/thrust/iterator/transform_input_output_iterator.h | 4 ++++ thrust/thrust/iterator/transform_iterator.h | 4 ++++ thrust/thrust/iterator/transform_output_iterator.h | 4 ++++ thrust/thrust/iterator/zip_iterator.h | 4 ++++ thrust/thrust/limits.h | 4 ++++ thrust/thrust/logical.h | 4 ++++ thrust/thrust/memory.h | 4 ++++ thrust/thrust/merge.h | 4 ++++ thrust/thrust/mismatch.h | 4 ++++ thrust/thrust/mr/allocator.h | 4 ++++ thrust/thrust/mr/device_memory_resource.h | 4 ++++ thrust/thrust/mr/disjoint_pool.h | 4 ++++ thrust/thrust/mr/disjoint_sync_pool.h | 4 ++++ thrust/thrust/mr/disjoint_tls_pool.h | 4 ++++ thrust/thrust/mr/fancy_pointer_resource.h | 4 ++++ thrust/thrust/mr/host_memory_resource.h | 4 ++++ thrust/thrust/mr/memory_resource.h | 4 ++++ thrust/thrust/mr/new.h | 4 ++++ thrust/thrust/mr/polymorphic_adaptor.h | 4 ++++ thrust/thrust/mr/pool.h | 4 ++++ thrust/thrust/mr/pool_options.h | 4 ++++ thrust/thrust/mr/sync_pool.h | 4 ++++ thrust/thrust/mr/tls_pool.h | 4 ++++ thrust/thrust/mr/universal_memory_resource.h | 4 ++++ thrust/thrust/mr/validator.h | 4 ++++ thrust/thrust/optional.h | 4 ++++ thrust/thrust/pair.h | 4 ++++ thrust/thrust/partition.h | 4 ++++ thrust/thrust/per_device_resource.h | 4 ++++ thrust/thrust/random.h | 4 ++++ thrust/thrust/random/detail/discard_block_engine.inl | 4 ++++ .../thrust/random/detail/linear_congruential_engine.inl | 4 ++++ .../random/detail/linear_congruential_engine_discard.h | 4 ++++ .../random/detail/linear_feedback_shift_engine.inl | 4 ++++ .../detail/linear_feedback_shift_engine_wordmask.h | 4 ++++ thrust/thrust/random/detail/mod.h | 4 ++++ thrust/thrust/random/detail/normal_distribution.inl | 4 ++++ thrust/thrust/random/detail/normal_distribution_base.h | 4 ++++ thrust/thrust/random/detail/random_core_access.h | 4 ++++ .../thrust/random/detail/subtract_with_carry_engine.inl | 4 ++++ thrust/thrust/random/detail/uniform_int_distribution.inl | 4 ++++ .../thrust/random/detail/uniform_real_distribution.inl | 4 ++++ thrust/thrust/random/detail/xor_combine_engine.inl | 4 ++++ thrust/thrust/random/detail/xor_combine_engine_max.h | 4 ++++ thrust/thrust/random/discard_block_engine.h | 4 ++++ thrust/thrust/random/linear_congruential_engine.h | 4 ++++ thrust/thrust/random/linear_feedback_shift_engine.h | 4 ++++ thrust/thrust/random/normal_distribution.h | 4 ++++ thrust/thrust/random/subtract_with_carry_engine.h | 4 ++++ thrust/thrust/random/uniform_int_distribution.h | 4 ++++ thrust/thrust/random/uniform_real_distribution.h | 4 ++++ thrust/thrust/random/xor_combine_engine.h | 4 ++++ thrust/thrust/reduce.h | 4 ++++ thrust/thrust/remove.h | 4 ++++ thrust/thrust/replace.h | 4 ++++ thrust/thrust/reverse.h | 4 ++++ thrust/thrust/scan.h | 4 ++++ thrust/thrust/scatter.h | 4 ++++ thrust/thrust/sequence.h | 4 ++++ thrust/thrust/set_operations.h | 4 ++++ thrust/thrust/shuffle.h | 4 ++++ thrust/thrust/sort.h | 4 ++++ thrust/thrust/swap.h | 4 ++++ thrust/thrust/system/cpp/detail/adjacent_difference.h | 4 ++++ thrust/thrust/system/cpp/detail/assign_value.h | 4 ++++ thrust/thrust/system/cpp/detail/binary_search.h | 4 ++++ thrust/thrust/system/cpp/detail/copy.h | 4 ++++ thrust/thrust/system/cpp/detail/copy_if.h | 4 ++++ thrust/thrust/system/cpp/detail/count.h | 4 ++++ thrust/thrust/system/cpp/detail/equal.h | 4 ++++ thrust/thrust/system/cpp/detail/execution_policy.h | 4 ++++ thrust/thrust/system/cpp/detail/extrema.h | 4 ++++ thrust/thrust/system/cpp/detail/fill.h | 4 ++++ thrust/thrust/system/cpp/detail/find.h | 4 ++++ thrust/thrust/system/cpp/detail/for_each.h | 4 ++++ thrust/thrust/system/cpp/detail/gather.h | 4 ++++ thrust/thrust/system/cpp/detail/generate.h | 4 ++++ thrust/thrust/system/cpp/detail/get_value.h | 4 ++++ thrust/thrust/system/cpp/detail/inner_product.h | 4 ++++ thrust/thrust/system/cpp/detail/iter_swap.h | 4 ++++ thrust/thrust/system/cpp/detail/logical.h | 4 ++++ thrust/thrust/system/cpp/detail/malloc_and_free.h | 4 ++++ thrust/thrust/system/cpp/detail/memory.inl | 4 ++++ thrust/thrust/system/cpp/detail/merge.h | 4 ++++ thrust/thrust/system/cpp/detail/mismatch.h | 4 ++++ thrust/thrust/system/cpp/detail/par.h | 4 ++++ thrust/thrust/system/cpp/detail/partition.h | 4 ++++ thrust/thrust/system/cpp/detail/per_device_resource.h | 4 ++++ thrust/thrust/system/cpp/detail/reduce.h | 4 ++++ thrust/thrust/system/cpp/detail/reduce_by_key.h | 4 ++++ thrust/thrust/system/cpp/detail/remove.h | 4 ++++ thrust/thrust/system/cpp/detail/replace.h | 4 ++++ thrust/thrust/system/cpp/detail/reverse.h | 4 ++++ thrust/thrust/system/cpp/detail/scan.h | 4 ++++ thrust/thrust/system/cpp/detail/scan_by_key.h | 4 ++++ thrust/thrust/system/cpp/detail/scatter.h | 4 ++++ thrust/thrust/system/cpp/detail/sequence.h | 4 ++++ thrust/thrust/system/cpp/detail/set_operations.h | 4 ++++ thrust/thrust/system/cpp/detail/sort.h | 4 ++++ thrust/thrust/system/cpp/detail/swap_ranges.h | 4 ++++ thrust/thrust/system/cpp/detail/tabulate.h | 4 ++++ thrust/thrust/system/cpp/detail/temporary_buffer.h | 4 ++++ thrust/thrust/system/cpp/detail/transform.h | 4 ++++ thrust/thrust/system/cpp/detail/transform_reduce.h | 4 ++++ thrust/thrust/system/cpp/detail/transform_scan.h | 4 ++++ thrust/thrust/system/cpp/detail/uninitialized_copy.h | 4 ++++ thrust/thrust/system/cpp/detail/uninitialized_fill.h | 4 ++++ thrust/thrust/system/cpp/detail/unique.h | 4 ++++ thrust/thrust/system/cpp/detail/unique_by_key.h | 4 ++++ thrust/thrust/system/cpp/detail/vector.inl | 4 ++++ thrust/thrust/system/cpp/execution_policy.h | 4 ++++ thrust/thrust/system/cpp/memory.h | 4 ++++ thrust/thrust/system/cpp/memory_resource.h | 4 ++++ thrust/thrust/system/cpp/pointer.h | 4 ++++ thrust/thrust/system/cpp/vector.h | 4 ++++ thrust/thrust/system/cuda/config.h | 4 ++++ thrust/thrust/system/cuda/detail/adjacent_difference.h | 4 ++++ thrust/thrust/system/cuda/detail/assign_value.h | 4 ++++ thrust/thrust/system/cuda/detail/async/copy.h | 4 ++++ thrust/thrust/system/cuda/detail/async/customization.h | 4 ++++ thrust/thrust/system/cuda/detail/async/exclusive_scan.h | 4 ++++ thrust/thrust/system/cuda/detail/async/for_each.h | 4 ++++ thrust/thrust/system/cuda/detail/async/inclusive_scan.h | 4 ++++ thrust/thrust/system/cuda/detail/async/reduce.h | 4 ++++ thrust/thrust/system/cuda/detail/async/scan.h | 4 ++++ thrust/thrust/system/cuda/detail/async/sort.h | 4 ++++ thrust/thrust/system/cuda/detail/async/transform.h | 4 ++++ thrust/thrust/system/cuda/detail/binary_search.h | 4 ++++ thrust/thrust/system/cuda/detail/cdp_dispatch.h | 4 ++++ thrust/thrust/system/cuda/detail/copy.h | 4 ++++ thrust/thrust/system/cuda/detail/copy_if.h | 4 ++++ thrust/thrust/system/cuda/detail/core/agent_launcher.h | 4 ++++ thrust/thrust/system/cuda/detail/core/alignment.h | 4 ++++ .../system/cuda/detail/core/triple_chevron_launch.h | 4 ++++ thrust/thrust/system/cuda/detail/core/util.h | 4 ++++ thrust/thrust/system/cuda/detail/count.h | 4 ++++ thrust/thrust/system/cuda/detail/cross_system.h | 4 ++++ thrust/thrust/system/cuda/detail/dispatch.h | 4 ++++ thrust/thrust/system/cuda/detail/equal.h | 4 ++++ thrust/thrust/system/cuda/detail/error.inl | 4 ++++ thrust/thrust/system/cuda/detail/execution_policy.h | 4 ++++ thrust/thrust/system/cuda/detail/extrema.h | 4 ++++ thrust/thrust/system/cuda/detail/fill.h | 4 ++++ thrust/thrust/system/cuda/detail/find.h | 4 ++++ thrust/thrust/system/cuda/detail/for_each.h | 4 ++++ thrust/thrust/system/cuda/detail/future.inl | 4 ++++ thrust/thrust/system/cuda/detail/gather.h | 4 ++++ thrust/thrust/system/cuda/detail/generate.h | 4 ++++ thrust/thrust/system/cuda/detail/get_value.h | 4 ++++ .../thrust/system/cuda/detail/guarded_cuda_runtime_api.h | 4 ++++ thrust/thrust/system/cuda/detail/guarded_driver_types.h | 4 ++++ thrust/thrust/system/cuda/detail/inner_product.h | 4 ++++ .../system/cuda/detail/internal/copy_cross_system.h | 4 ++++ .../system/cuda/detail/internal/copy_device_to_device.h | 4 ++++ thrust/thrust/system/cuda/detail/iter_swap.h | 4 ++++ thrust/thrust/system/cuda/detail/logical.h | 4 ++++ thrust/thrust/system/cuda/detail/make_unsigned_special.h | 4 ++++ thrust/thrust/system/cuda/detail/malloc_and_free.h | 4 ++++ thrust/thrust/system/cuda/detail/memory.inl | 4 ++++ thrust/thrust/system/cuda/detail/merge.h | 4 ++++ thrust/thrust/system/cuda/detail/mismatch.h | 4 ++++ thrust/thrust/system/cuda/detail/par.h | 4 ++++ thrust/thrust/system/cuda/detail/par_to_seq.h | 4 ++++ thrust/thrust/system/cuda/detail/parallel_for.h | 4 ++++ thrust/thrust/system/cuda/detail/partition.h | 4 ++++ thrust/thrust/system/cuda/detail/per_device_resource.h | 4 ++++ thrust/thrust/system/cuda/detail/reduce.h | 4 ++++ thrust/thrust/system/cuda/detail/reduce_by_key.h | 4 ++++ thrust/thrust/system/cuda/detail/remove.h | 4 ++++ thrust/thrust/system/cuda/detail/replace.h | 4 ++++ thrust/thrust/system/cuda/detail/reverse.h | 4 ++++ thrust/thrust/system/cuda/detail/scan.h | 4 ++++ thrust/thrust/system/cuda/detail/scan_by_key.h | 4 ++++ thrust/thrust/system/cuda/detail/scatter.h | 4 ++++ thrust/thrust/system/cuda/detail/sequence.h | 4 ++++ thrust/thrust/system/cuda/detail/set_operations.h | 4 ++++ thrust/thrust/system/cuda/detail/sort.h | 4 ++++ thrust/thrust/system/cuda/detail/swap_ranges.h | 4 ++++ thrust/thrust/system/cuda/detail/tabulate.h | 4 ++++ thrust/thrust/system/cuda/detail/temporary_buffer.h | 4 ++++ thrust/thrust/system/cuda/detail/terminate.h | 4 ++++ thrust/thrust/system/cuda/detail/transform.h | 4 ++++ thrust/thrust/system/cuda/detail/transform_reduce.h | 4 ++++ thrust/thrust/system/cuda/detail/transform_scan.h | 4 ++++ thrust/thrust/system/cuda/detail/uninitialized_copy.h | 4 ++++ thrust/thrust/system/cuda/detail/uninitialized_fill.h | 4 ++++ thrust/thrust/system/cuda/detail/unique.h | 4 ++++ thrust/thrust/system/cuda/detail/unique_by_key.h | 4 ++++ thrust/thrust/system/cuda/detail/util.h | 4 ++++ thrust/thrust/system/cuda/error.h | 4 ++++ thrust/thrust/system/cuda/execution_policy.h | 4 ++++ thrust/thrust/system/cuda/future.h | 4 ++++ thrust/thrust/system/cuda/memory.h | 4 ++++ thrust/thrust/system/cuda/memory_resource.h | 4 ++++ thrust/thrust/system/cuda/pointer.h | 4 ++++ thrust/thrust/system/cuda/vector.h | 4 ++++ thrust/thrust/system/detail/adl/adjacent_difference.h | 4 ++++ thrust/thrust/system/detail/adl/assign_value.h | 4 ++++ thrust/thrust/system/detail/adl/async/copy.h | 4 ++++ thrust/thrust/system/detail/adl/async/for_each.h | 4 ++++ thrust/thrust/system/detail/adl/async/reduce.h | 4 ++++ thrust/thrust/system/detail/adl/async/scan.h | 4 ++++ thrust/thrust/system/detail/adl/async/sort.h | 4 ++++ thrust/thrust/system/detail/adl/async/transform.h | 4 ++++ thrust/thrust/system/detail/adl/binary_search.h | 4 ++++ thrust/thrust/system/detail/adl/copy.h | 4 ++++ thrust/thrust/system/detail/adl/copy_if.h | 4 ++++ thrust/thrust/system/detail/adl/count.h | 4 ++++ thrust/thrust/system/detail/adl/equal.h | 4 ++++ thrust/thrust/system/detail/adl/extrema.h | 4 ++++ thrust/thrust/system/detail/adl/fill.h | 4 ++++ thrust/thrust/system/detail/adl/find.h | 4 ++++ thrust/thrust/system/detail/adl/for_each.h | 4 ++++ thrust/thrust/system/detail/adl/gather.h | 4 ++++ thrust/thrust/system/detail/adl/generate.h | 4 ++++ thrust/thrust/system/detail/adl/get_value.h | 4 ++++ thrust/thrust/system/detail/adl/inner_product.h | 4 ++++ thrust/thrust/system/detail/adl/iter_swap.h | 4 ++++ thrust/thrust/system/detail/adl/logical.h | 4 ++++ thrust/thrust/system/detail/adl/malloc_and_free.h | 4 ++++ thrust/thrust/system/detail/adl/merge.h | 4 ++++ thrust/thrust/system/detail/adl/mismatch.h | 4 ++++ thrust/thrust/system/detail/adl/partition.h | 4 ++++ thrust/thrust/system/detail/adl/per_device_resource.h | 4 ++++ thrust/thrust/system/detail/adl/reduce.h | 4 ++++ thrust/thrust/system/detail/adl/reduce_by_key.h | 4 ++++ thrust/thrust/system/detail/adl/remove.h | 4 ++++ thrust/thrust/system/detail/adl/replace.h | 4 ++++ thrust/thrust/system/detail/adl/reverse.h | 4 ++++ thrust/thrust/system/detail/adl/scan.h | 4 ++++ thrust/thrust/system/detail/adl/scan_by_key.h | 4 ++++ thrust/thrust/system/detail/adl/scatter.h | 4 ++++ thrust/thrust/system/detail/adl/sequence.h | 4 ++++ thrust/thrust/system/detail/adl/set_operations.h | 4 ++++ thrust/thrust/system/detail/adl/sort.h | 4 ++++ thrust/thrust/system/detail/adl/swap_ranges.h | 4 ++++ thrust/thrust/system/detail/adl/tabulate.h | 4 ++++ thrust/thrust/system/detail/adl/temporary_buffer.h | 4 ++++ thrust/thrust/system/detail/adl/transform.h | 4 ++++ thrust/thrust/system/detail/adl/transform_reduce.h | 4 ++++ thrust/thrust/system/detail/adl/transform_scan.h | 4 ++++ thrust/thrust/system/detail/adl/uninitialized_copy.h | 4 ++++ thrust/thrust/system/detail/adl/uninitialized_fill.h | 4 ++++ thrust/thrust/system/detail/adl/unique.h | 4 ++++ thrust/thrust/system/detail/adl/unique_by_key.h | 4 ++++ thrust/thrust/system/detail/bad_alloc.h | 4 ++++ thrust/thrust/system/detail/errno.h | 4 ++++ thrust/thrust/system/detail/error_category.inl | 4 ++++ thrust/thrust/system/detail/error_code.inl | 4 ++++ thrust/thrust/system/detail/error_condition.inl | 4 ++++ .../thrust/system/detail/generic/adjacent_difference.h | 4 ++++ .../thrust/system/detail/generic/adjacent_difference.inl | 4 ++++ thrust/thrust/system/detail/generic/advance.h | 4 ++++ thrust/thrust/system/detail/generic/advance.inl | 4 ++++ thrust/thrust/system/detail/generic/binary_search.h | 4 ++++ thrust/thrust/system/detail/generic/binary_search.inl | 4 ++++ thrust/thrust/system/detail/generic/copy.h | 4 ++++ thrust/thrust/system/detail/generic/copy.inl | 4 ++++ thrust/thrust/system/detail/generic/copy_if.h | 4 ++++ thrust/thrust/system/detail/generic/copy_if.inl | 4 ++++ thrust/thrust/system/detail/generic/count.h | 4 ++++ thrust/thrust/system/detail/generic/count.inl | 4 ++++ thrust/thrust/system/detail/generic/distance.h | 4 ++++ thrust/thrust/system/detail/generic/distance.inl | 4 ++++ thrust/thrust/system/detail/generic/equal.h | 4 ++++ thrust/thrust/system/detail/generic/equal.inl | 4 ++++ thrust/thrust/system/detail/generic/extrema.h | 4 ++++ thrust/thrust/system/detail/generic/extrema.inl | 4 ++++ thrust/thrust/system/detail/generic/fill.h | 4 ++++ thrust/thrust/system/detail/generic/find.h | 4 ++++ thrust/thrust/system/detail/generic/find.inl | 4 ++++ thrust/thrust/system/detail/generic/for_each.h | 4 ++++ thrust/thrust/system/detail/generic/gather.h | 4 ++++ thrust/thrust/system/detail/generic/gather.inl | 4 ++++ thrust/thrust/system/detail/generic/generate.h | 4 ++++ thrust/thrust/system/detail/generic/generate.inl | 4 ++++ thrust/thrust/system/detail/generic/inner_product.h | 4 ++++ thrust/thrust/system/detail/generic/inner_product.inl | 4 ++++ thrust/thrust/system/detail/generic/logical.h | 4 ++++ thrust/thrust/system/detail/generic/memory.h | 4 ++++ thrust/thrust/system/detail/generic/memory.inl | 4 ++++ thrust/thrust/system/detail/generic/merge.h | 4 ++++ thrust/thrust/system/detail/generic/merge.inl | 4 ++++ thrust/thrust/system/detail/generic/mismatch.h | 4 ++++ thrust/thrust/system/detail/generic/mismatch.inl | 4 ++++ thrust/thrust/system/detail/generic/partition.h | 4 ++++ thrust/thrust/system/detail/generic/partition.inl | 4 ++++ .../thrust/system/detail/generic/per_device_resource.h | 4 ++++ thrust/thrust/system/detail/generic/reduce.h | 4 ++++ thrust/thrust/system/detail/generic/reduce.inl | 4 ++++ thrust/thrust/system/detail/generic/reduce_by_key.h | 4 ++++ thrust/thrust/system/detail/generic/reduce_by_key.inl | 4 ++++ thrust/thrust/system/detail/generic/remove.h | 4 ++++ thrust/thrust/system/detail/generic/remove.inl | 4 ++++ thrust/thrust/system/detail/generic/replace.h | 4 ++++ thrust/thrust/system/detail/generic/replace.inl | 4 ++++ thrust/thrust/system/detail/generic/reverse.h | 4 ++++ thrust/thrust/system/detail/generic/reverse.inl | 4 ++++ .../thrust/system/detail/generic/scalar/binary_search.h | 4 ++++ .../system/detail/generic/scalar/binary_search.inl | 4 ++++ thrust/thrust/system/detail/generic/scan.h | 4 ++++ thrust/thrust/system/detail/generic/scan.inl | 4 ++++ thrust/thrust/system/detail/generic/scan_by_key.h | 4 ++++ thrust/thrust/system/detail/generic/scan_by_key.inl | 4 ++++ thrust/thrust/system/detail/generic/scatter.h | 4 ++++ thrust/thrust/system/detail/generic/scatter.inl | 4 ++++ thrust/thrust/system/detail/generic/select_system.h | 4 ++++ thrust/thrust/system/detail/generic/select_system.inl | 4 ++++ .../thrust/system/detail/generic/select_system_exists.h | 4 ++++ thrust/thrust/system/detail/generic/sequence.h | 4 ++++ thrust/thrust/system/detail/generic/sequence.inl | 4 ++++ thrust/thrust/system/detail/generic/set_operations.h | 4 ++++ thrust/thrust/system/detail/generic/set_operations.inl | 4 ++++ thrust/thrust/system/detail/generic/shuffle.h | 4 ++++ thrust/thrust/system/detail/generic/sort.h | 4 ++++ thrust/thrust/system/detail/generic/sort.inl | 4 ++++ thrust/thrust/system/detail/generic/swap_ranges.h | 4 ++++ thrust/thrust/system/detail/generic/swap_ranges.inl | 4 ++++ thrust/thrust/system/detail/generic/tabulate.h | 4 ++++ thrust/thrust/system/detail/generic/tabulate.inl | 4 ++++ thrust/thrust/system/detail/generic/tag.h | 4 ++++ thrust/thrust/system/detail/generic/temporary_buffer.h | 4 ++++ thrust/thrust/system/detail/generic/temporary_buffer.inl | 4 ++++ thrust/thrust/system/detail/generic/transform.h | 4 ++++ thrust/thrust/system/detail/generic/transform.inl | 4 ++++ thrust/thrust/system/detail/generic/transform_reduce.h | 4 ++++ thrust/thrust/system/detail/generic/transform_reduce.inl | 4 ++++ thrust/thrust/system/detail/generic/transform_scan.h | 4 ++++ thrust/thrust/system/detail/generic/transform_scan.inl | 4 ++++ thrust/thrust/system/detail/generic/uninitialized_copy.h | 4 ++++ .../thrust/system/detail/generic/uninitialized_copy.inl | 4 ++++ thrust/thrust/system/detail/generic/uninitialized_fill.h | 4 ++++ .../thrust/system/detail/generic/uninitialized_fill.inl | 4 ++++ thrust/thrust/system/detail/generic/unique.h | 4 ++++ thrust/thrust/system/detail/generic/unique.inl | 4 ++++ thrust/thrust/system/detail/generic/unique_by_key.h | 4 ++++ thrust/thrust/system/detail/generic/unique_by_key.inl | 4 ++++ thrust/thrust/system/detail/internal/decompose.h | 4 ++++ .../system/detail/sequential/adjacent_difference.h | 4 ++++ thrust/thrust/system/detail/sequential/assign_value.h | 4 ++++ thrust/thrust/system/detail/sequential/binary_search.h | 4 ++++ thrust/thrust/system/detail/sequential/copy.h | 4 ++++ thrust/thrust/system/detail/sequential/copy.inl | 4 ++++ thrust/thrust/system/detail/sequential/copy_backward.h | 4 ++++ thrust/thrust/system/detail/sequential/copy_if.h | 4 ++++ thrust/thrust/system/detail/sequential/count.h | 4 ++++ thrust/thrust/system/detail/sequential/equal.h | 4 ++++ .../thrust/system/detail/sequential/execution_policy.h | 4 ++++ thrust/thrust/system/detail/sequential/extrema.h | 4 ++++ thrust/thrust/system/detail/sequential/fill.h | 4 ++++ thrust/thrust/system/detail/sequential/find.h | 4 ++++ thrust/thrust/system/detail/sequential/for_each.h | 4 ++++ thrust/thrust/system/detail/sequential/gather.h | 4 ++++ thrust/thrust/system/detail/sequential/general_copy.h | 4 ++++ thrust/thrust/system/detail/sequential/generate.h | 4 ++++ thrust/thrust/system/detail/sequential/get_value.h | 4 ++++ thrust/thrust/system/detail/sequential/inner_product.h | 4 ++++ thrust/thrust/system/detail/sequential/insertion_sort.h | 4 ++++ thrust/thrust/system/detail/sequential/iter_swap.h | 4 ++++ thrust/thrust/system/detail/sequential/logical.h | 4 ++++ thrust/thrust/system/detail/sequential/malloc_and_free.h | 4 ++++ thrust/thrust/system/detail/sequential/merge.h | 4 ++++ thrust/thrust/system/detail/sequential/merge.inl | 4 ++++ thrust/thrust/system/detail/sequential/mismatch.h | 4 ++++ thrust/thrust/system/detail/sequential/partition.h | 4 ++++ .../system/detail/sequential/per_device_resource.h | 4 ++++ thrust/thrust/system/detail/sequential/reduce.h | 4 ++++ thrust/thrust/system/detail/sequential/reduce_by_key.h | 4 ++++ thrust/thrust/system/detail/sequential/remove.h | 4 ++++ thrust/thrust/system/detail/sequential/replace.h | 4 ++++ thrust/thrust/system/detail/sequential/reverse.h | 4 ++++ thrust/thrust/system/detail/sequential/scan.h | 4 ++++ thrust/thrust/system/detail/sequential/scan_by_key.h | 4 ++++ thrust/thrust/system/detail/sequential/scatter.h | 4 ++++ thrust/thrust/system/detail/sequential/sequence.h | 4 ++++ thrust/thrust/system/detail/sequential/set_operations.h | 4 ++++ thrust/thrust/system/detail/sequential/sort.h | 4 ++++ thrust/thrust/system/detail/sequential/sort.inl | 4 ++++ .../thrust/system/detail/sequential/stable_merge_sort.h | 4 ++++ .../system/detail/sequential/stable_merge_sort.inl | 4 ++++ .../system/detail/sequential/stable_primitive_sort.h | 4 ++++ .../system/detail/sequential/stable_primitive_sort.inl | 4 ++++ .../thrust/system/detail/sequential/stable_radix_sort.h | 4 ++++ .../system/detail/sequential/stable_radix_sort.inl | 4 ++++ thrust/thrust/system/detail/sequential/swap_ranges.h | 4 ++++ thrust/thrust/system/detail/sequential/tabulate.h | 4 ++++ .../thrust/system/detail/sequential/temporary_buffer.h | 4 ++++ thrust/thrust/system/detail/sequential/transform.h | 4 ++++ .../thrust/system/detail/sequential/transform_reduce.h | 4 ++++ thrust/thrust/system/detail/sequential/transform_scan.h | 4 ++++ thrust/thrust/system/detail/sequential/trivial_copy.h | 4 ++++ .../thrust/system/detail/sequential/uninitialized_copy.h | 4 ++++ .../thrust/system/detail/sequential/uninitialized_fill.h | 4 ++++ thrust/thrust/system/detail/sequential/unique.h | 4 ++++ thrust/thrust/system/detail/sequential/unique_by_key.h | 4 ++++ thrust/thrust/system/detail/system_error.inl | 4 ++++ thrust/thrust/system/error_code.h | 4 ++++ thrust/thrust/system/omp/detail/adjacent_difference.h | 4 ++++ thrust/thrust/system/omp/detail/assign_value.h | 4 ++++ thrust/thrust/system/omp/detail/binary_search.h | 4 ++++ thrust/thrust/system/omp/detail/copy.h | 4 ++++ thrust/thrust/system/omp/detail/copy.inl | 4 ++++ thrust/thrust/system/omp/detail/copy_if.h | 4 ++++ thrust/thrust/system/omp/detail/copy_if.inl | 4 ++++ thrust/thrust/system/omp/detail/count.h | 4 ++++ thrust/thrust/system/omp/detail/default_decomposition.h | 4 ++++ .../thrust/system/omp/detail/default_decomposition.inl | 4 ++++ thrust/thrust/system/omp/detail/equal.h | 4 ++++ thrust/thrust/system/omp/detail/execution_policy.h | 4 ++++ thrust/thrust/system/omp/detail/extrema.h | 4 ++++ thrust/thrust/system/omp/detail/fill.h | 4 ++++ thrust/thrust/system/omp/detail/find.h | 4 ++++ thrust/thrust/system/omp/detail/for_each.h | 4 ++++ thrust/thrust/system/omp/detail/for_each.inl | 4 ++++ thrust/thrust/system/omp/detail/gather.h | 4 ++++ thrust/thrust/system/omp/detail/generate.h | 4 ++++ thrust/thrust/system/omp/detail/get_value.h | 4 ++++ thrust/thrust/system/omp/detail/inner_product.h | 4 ++++ thrust/thrust/system/omp/detail/iter_swap.h | 4 ++++ thrust/thrust/system/omp/detail/logical.h | 4 ++++ thrust/thrust/system/omp/detail/malloc_and_free.h | 4 ++++ thrust/thrust/system/omp/detail/memory.inl | 4 ++++ thrust/thrust/system/omp/detail/merge.h | 4 ++++ thrust/thrust/system/omp/detail/mismatch.h | 4 ++++ thrust/thrust/system/omp/detail/par.h | 4 ++++ thrust/thrust/system/omp/detail/partition.h | 4 ++++ thrust/thrust/system/omp/detail/partition.inl | 4 ++++ thrust/thrust/system/omp/detail/per_device_resource.h | 4 ++++ thrust/thrust/system/omp/detail/pragma_omp.h | 4 ++++ thrust/thrust/system/omp/detail/reduce.h | 4 ++++ thrust/thrust/system/omp/detail/reduce.inl | 4 ++++ thrust/thrust/system/omp/detail/reduce_by_key.h | 4 ++++ thrust/thrust/system/omp/detail/reduce_by_key.inl | 4 ++++ thrust/thrust/system/omp/detail/reduce_intervals.h | 4 ++++ thrust/thrust/system/omp/detail/reduce_intervals.inl | 4 ++++ thrust/thrust/system/omp/detail/remove.h | 4 ++++ thrust/thrust/system/omp/detail/remove.inl | 4 ++++ thrust/thrust/system/omp/detail/replace.h | 4 ++++ thrust/thrust/system/omp/detail/reverse.h | 4 ++++ thrust/thrust/system/omp/detail/scan.h | 4 ++++ thrust/thrust/system/omp/detail/scan_by_key.h | 4 ++++ thrust/thrust/system/omp/detail/scatter.h | 4 ++++ thrust/thrust/system/omp/detail/sequence.h | 4 ++++ thrust/thrust/system/omp/detail/set_operations.h | 4 ++++ thrust/thrust/system/omp/detail/sort.h | 4 ++++ thrust/thrust/system/omp/detail/sort.inl | 4 ++++ thrust/thrust/system/omp/detail/swap_ranges.h | 4 ++++ thrust/thrust/system/omp/detail/tabulate.h | 4 ++++ thrust/thrust/system/omp/detail/temporary_buffer.h | 4 ++++ thrust/thrust/system/omp/detail/transform.h | 4 ++++ thrust/thrust/system/omp/detail/transform_reduce.h | 4 ++++ thrust/thrust/system/omp/detail/transform_scan.h | 4 ++++ thrust/thrust/system/omp/detail/uninitialized_copy.h | 4 ++++ thrust/thrust/system/omp/detail/uninitialized_fill.h | 4 ++++ thrust/thrust/system/omp/detail/unique.h | 4 ++++ thrust/thrust/system/omp/detail/unique.inl | 4 ++++ thrust/thrust/system/omp/detail/unique_by_key.h | 4 ++++ thrust/thrust/system/omp/detail/unique_by_key.inl | 4 ++++ thrust/thrust/system/omp/execution_policy.h | 4 ++++ thrust/thrust/system/omp/memory.h | 4 ++++ thrust/thrust/system/omp/memory_resource.h | 4 ++++ thrust/thrust/system/omp/pointer.h | 4 ++++ thrust/thrust/system/omp/vector.h | 4 ++++ thrust/thrust/system/system_error.h | 4 ++++ thrust/thrust/system/tbb/detail/adjacent_difference.h | 4 ++++ thrust/thrust/system/tbb/detail/assign_value.h | 4 ++++ thrust/thrust/system/tbb/detail/binary_search.h | 4 ++++ thrust/thrust/system/tbb/detail/copy.h | 4 ++++ thrust/thrust/system/tbb/detail/copy.inl | 4 ++++ thrust/thrust/system/tbb/detail/copy_if.h | 4 ++++ thrust/thrust/system/tbb/detail/copy_if.inl | 4 ++++ thrust/thrust/system/tbb/detail/count.h | 4 ++++ thrust/thrust/system/tbb/detail/equal.h | 4 ++++ thrust/thrust/system/tbb/detail/execution_policy.h | 4 ++++ thrust/thrust/system/tbb/detail/extrema.h | 4 ++++ thrust/thrust/system/tbb/detail/fill.h | 4 ++++ thrust/thrust/system/tbb/detail/find.h | 4 ++++ thrust/thrust/system/tbb/detail/for_each.h | 4 ++++ thrust/thrust/system/tbb/detail/for_each.inl | 4 ++++ thrust/thrust/system/tbb/detail/gather.h | 4 ++++ thrust/thrust/system/tbb/detail/generate.h | 4 ++++ thrust/thrust/system/tbb/detail/get_value.h | 4 ++++ thrust/thrust/system/tbb/detail/inner_product.h | 4 ++++ thrust/thrust/system/tbb/detail/iter_swap.h | 4 ++++ thrust/thrust/system/tbb/detail/logical.h | 4 ++++ thrust/thrust/system/tbb/detail/malloc_and_free.h | 4 ++++ thrust/thrust/system/tbb/detail/memory.inl | 4 ++++ thrust/thrust/system/tbb/detail/merge.h | 4 ++++ thrust/thrust/system/tbb/detail/merge.inl | 4 ++++ thrust/thrust/system/tbb/detail/mismatch.h | 4 ++++ thrust/thrust/system/tbb/detail/par.h | 4 ++++ thrust/thrust/system/tbb/detail/partition.h | 4 ++++ thrust/thrust/system/tbb/detail/partition.inl | 4 ++++ thrust/thrust/system/tbb/detail/per_device_resource.h | 4 ++++ thrust/thrust/system/tbb/detail/reduce.h | 4 ++++ thrust/thrust/system/tbb/detail/reduce.inl | 4 ++++ thrust/thrust/system/tbb/detail/reduce_by_key.h | 4 ++++ thrust/thrust/system/tbb/detail/reduce_by_key.inl | 4 ++++ thrust/thrust/system/tbb/detail/reduce_intervals.h | 4 ++++ thrust/thrust/system/tbb/detail/remove.h | 4 ++++ thrust/thrust/system/tbb/detail/remove.inl | 4 ++++ thrust/thrust/system/tbb/detail/replace.h | 4 ++++ thrust/thrust/system/tbb/detail/reverse.h | 4 ++++ thrust/thrust/system/tbb/detail/scan.h | 4 ++++ thrust/thrust/system/tbb/detail/scan.inl | 4 ++++ thrust/thrust/system/tbb/detail/scan_by_key.h | 4 ++++ thrust/thrust/system/tbb/detail/scatter.h | 4 ++++ thrust/thrust/system/tbb/detail/sequence.h | 4 ++++ thrust/thrust/system/tbb/detail/set_operations.h | 4 ++++ thrust/thrust/system/tbb/detail/sort.h | 4 ++++ thrust/thrust/system/tbb/detail/sort.inl | 4 ++++ thrust/thrust/system/tbb/detail/swap_ranges.h | 4 ++++ thrust/thrust/system/tbb/detail/tabulate.h | 4 ++++ thrust/thrust/system/tbb/detail/temporary_buffer.h | 4 ++++ thrust/thrust/system/tbb/detail/transform.h | 4 ++++ thrust/thrust/system/tbb/detail/transform_reduce.h | 4 ++++ thrust/thrust/system/tbb/detail/transform_scan.h | 4 ++++ thrust/thrust/system/tbb/detail/uninitialized_copy.h | 4 ++++ thrust/thrust/system/tbb/detail/uninitialized_fill.h | 4 ++++ thrust/thrust/system/tbb/detail/unique.h | 4 ++++ thrust/thrust/system/tbb/detail/unique.inl | 4 ++++ thrust/thrust/system/tbb/detail/unique_by_key.h | 4 ++++ thrust/thrust/system/tbb/detail/unique_by_key.inl | 4 ++++ thrust/thrust/system/tbb/execution_policy.h | 4 ++++ thrust/thrust/system/tbb/memory.h | 4 ++++ thrust/thrust/system/tbb/memory_resource.h | 4 ++++ thrust/thrust/system/tbb/pointer.h | 4 ++++ thrust/thrust/system/tbb/vector.h | 4 ++++ thrust/thrust/system_error.h | 4 ++++ thrust/thrust/tabulate.h | 4 ++++ thrust/thrust/transform.h | 4 ++++ thrust/thrust/transform_reduce.h | 4 ++++ thrust/thrust/transform_scan.h | 4 ++++ thrust/thrust/tuple.h | 4 ++++ thrust/thrust/type_traits/integer_sequence.h | 4 ++++ thrust/thrust/type_traits/is_contiguous_iterator.h | 4 ++++ thrust/thrust/type_traits/is_execution_policy.h | 4 ++++ .../is_operator_less_or_greater_function_object.h | 4 ++++ .../type_traits/is_operator_plus_function_object.h | 4 ++++ thrust/thrust/type_traits/is_trivially_relocatable.h | 4 ++++ thrust/thrust/type_traits/logical_metafunctions.h | 4 ++++ thrust/thrust/type_traits/remove_cvref.h | 4 ++++ thrust/thrust/type_traits/void_t.h | 4 ++++ thrust/thrust/uninitialized_copy.h | 4 ++++ thrust/thrust/uninitialized_fill.h | 4 ++++ thrust/thrust/unique.h | 4 ++++ thrust/thrust/universal_allocator.h | 4 ++++ thrust/thrust/universal_ptr.h | 4 ++++ thrust/thrust/universal_vector.h | 4 ++++ thrust/thrust/version.h | 4 ++++ thrust/thrust/zip_function.h | 4 ++++ 1369 files changed, 5503 insertions(+), 9 deletions(-) diff --git a/cub/cub/agent/agent_adjacent_difference.cuh b/cub/cub/agent/agent_adjacent_difference.cuh index 2855242e7eb..f5b89daecfe 100644 --- a/cub/cub/agent/agent_adjacent_difference.cuh +++ b/cub/cub/agent/agent_adjacent_difference.cuh @@ -29,7 +29,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include "../util_type.cuh" #include "../util_namespace.cuh" diff --git a/cub/cub/agent/agent_batch_memcpy.cuh b/cub/cub/agent/agent_batch_memcpy.cuh index a7602f7786c..78f89c61823 100644 --- a/cub/cub/agent/agent_batch_memcpy.cuh +++ b/cub/cub/agent/agent_batch_memcpy.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/agent/agent_histogram.cuh b/cub/cub/agent/agent_histogram.cuh index ddae3ec9cad..c4226ba913e 100644 --- a/cub/cub/agent/agent_histogram.cuh +++ b/cub/cub/agent/agent_histogram.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/cub/cub/agent/agent_merge_sort.cuh b/cub/cub/agent/agent_merge_sort.cuh index adbaa572d2b..6a50f3347a4 100644 --- a/cub/cub/agent/agent_merge_sort.cuh +++ b/cub/cub/agent/agent_merge_sort.cuh @@ -29,7 +29,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include "../util_type.cuh" #include "../util_namespace.cuh" diff --git a/cub/cub/agent/agent_radix_sort_downsweep.cuh b/cub/cub/agent/agent_radix_sort_downsweep.cuh index b66ad972a5c..a28bbdfa597 100644 --- a/cub/cub/agent/agent_radix_sort_downsweep.cuh +++ b/cub/cub/agent/agent_radix_sort_downsweep.cuh @@ -37,7 +37,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/agent/agent_radix_sort_histogram.cuh b/cub/cub/agent/agent_radix_sort_histogram.cuh index b5af14e8145..5d571011482 100644 --- a/cub/cub/agent/agent_radix_sort_histogram.cuh +++ b/cub/cub/agent/agent_radix_sort_histogram.cuh @@ -36,7 +36,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include "../block/block_load.cuh" #include "../block/radix_rank_sort_operations.cuh" diff --git a/cub/cub/agent/agent_radix_sort_onesweep.cuh b/cub/cub/agent/agent_radix_sort_onesweep.cuh index e4d47c9797f..190c6c29eb8 100644 --- a/cub/cub/agent/agent_radix_sort_onesweep.cuh +++ b/cub/cub/agent/agent_radix_sort_onesweep.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include "../block/block_radix_rank.cuh" #include "../block/radix_rank_sort_operations.cuh" diff --git a/cub/cub/agent/agent_radix_sort_upsweep.cuh b/cub/cub/agent/agent_radix_sort_upsweep.cuh index 6b387b0b771..da048835da9 100644 --- a/cub/cub/agent/agent_radix_sort_upsweep.cuh +++ b/cub/cub/agent/agent_radix_sort_upsweep.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include "../thread/thread_reduce.cuh" #include "../thread/thread_load.cuh" diff --git a/cub/cub/agent/agent_reduce.cuh b/cub/cub/agent/agent_reduce.cuh index 15da056b57b..697f427eda5 100644 --- a/cub/cub/agent/agent_reduce.cuh +++ b/cub/cub/agent/agent_reduce.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/cub/cub/agent/agent_reduce_by_key.cuh b/cub/cub/agent/agent_reduce_by_key.cuh index 428bc06591e..79ee04dd85c 100644 --- a/cub/cub/agent/agent_reduce_by_key.cuh +++ b/cub/cub/agent/agent_reduce_by_key.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/agent/agent_rle.cuh b/cub/cub/agent/agent_rle.cuh index 0082dd00b90..15f27bd4c53 100644 --- a/cub/cub/agent/agent_rle.cuh +++ b/cub/cub/agent/agent_rle.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/cub/cub/agent/agent_scan.cuh b/cub/cub/agent/agent_scan.cuh index 5b201a8d0c0..86ffc781f65 100644 --- a/cub/cub/agent/agent_scan.cuh +++ b/cub/cub/agent/agent_scan.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/cub/cub/agent/agent_scan_by_key.cuh b/cub/cub/agent/agent_scan_by_key.cuh index 16229220a80..9155beb5faa 100644 --- a/cub/cub/agent/agent_scan_by_key.cuh +++ b/cub/cub/agent/agent_scan_by_key.cuh @@ -34,7 +34,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/agent/agent_segment_fixup.cuh b/cub/cub/agent/agent_segment_fixup.cuh index 5be44b0fa4a..84d8af5aa6a 100644 --- a/cub/cub/agent/agent_segment_fixup.cuh +++ b/cub/cub/agent/agent_segment_fixup.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/cub/cub/agent/agent_segmented_radix_sort.cuh b/cub/cub/agent/agent_segmented_radix_sort.cuh index f791e2b609e..b869ec60908 100644 --- a/cub/cub/agent/agent_segmented_radix_sort.cuh +++ b/cub/cub/agent/agent_segmented_radix_sort.cuh @@ -29,7 +29,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/agent/agent_select_if.cuh b/cub/cub/agent/agent_select_if.cuh index 6faa04cbed0..564316b30dd 100644 --- a/cub/cub/agent/agent_select_if.cuh +++ b/cub/cub/agent/agent_select_if.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/cub/cub/agent/agent_spmv_orig.cuh b/cub/cub/agent/agent_spmv_orig.cuh index bca147a5530..4d9ce6ce582 100644 --- a/cub/cub/agent/agent_spmv_orig.cuh +++ b/cub/cub/agent/agent_spmv_orig.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/cub/cub/agent/agent_sub_warp_merge_sort.cuh b/cub/cub/agent/agent_sub_warp_merge_sort.cuh index 80c8c7caa95..e53ec5e6f7e 100644 --- a/cub/cub/agent/agent_sub_warp_merge_sort.cuh +++ b/cub/cub/agent/agent_sub_warp_merge_sort.cuh @@ -29,7 +29,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/agent/agent_three_way_partition.cuh b/cub/cub/agent/agent_three_way_partition.cuh index 4186f61895c..17ec5aa0fe2 100644 --- a/cub/cub/agent/agent_three_way_partition.cuh +++ b/cub/cub/agent/agent_three_way_partition.cuh @@ -29,7 +29,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/agent/agent_unique_by_key.cuh b/cub/cub/agent/agent_unique_by_key.cuh index 4d406f653a6..a7b9e0a367b 100644 --- a/cub/cub/agent/agent_unique_by_key.cuh +++ b/cub/cub/agent/agent_unique_by_key.cuh @@ -34,7 +34,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/agent/single_pass_scan_operators.cuh b/cub/cub/agent/single_pass_scan_operators.cuh index c222718601e..ff8a4e18347 100644 --- a/cub/cub/agent/single_pass_scan_operators.cuh +++ b/cub/cub/agent/single_pass_scan_operators.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/cub/cub/block/block_adjacent_difference.cuh b/cub/cub/block/block_adjacent_difference.cuh index ca42f103bac..b24b4bf5c5d 100644 --- a/cub/cub/block/block_adjacent_difference.cuh +++ b/cub/cub/block/block_adjacent_difference.cuh @@ -37,7 +37,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include "../util_type.cuh" #include "../util_ptx.cuh" diff --git a/cub/cub/block/block_discontinuity.cuh b/cub/cub/block/block_discontinuity.cuh index 98801ef3c88..b94e125e93c 100644 --- a/cub/cub/block/block_discontinuity.cuh +++ b/cub/cub/block/block_discontinuity.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include "../util_type.cuh" #include "../util_ptx.cuh" diff --git a/cub/cub/block/block_exchange.cuh b/cub/cub/block/block_exchange.cuh index ae96f8abfe3..d6a7cfbbbe8 100644 --- a/cub/cub/block/block_exchange.cuh +++ b/cub/cub/block/block_exchange.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/block/block_histogram.cuh b/cub/cub/block/block_histogram.cuh index ee0c851e892..949bd2bcb34 100644 --- a/cub/cub/block/block_histogram.cuh +++ b/cub/cub/block/block_histogram.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include "specializations/block_histogram_sort.cuh" #include "specializations/block_histogram_atomic.cuh" diff --git a/cub/cub/block/block_load.cuh b/cub/cub/block/block_load.cuh index bb6081b5b57..5af8abca9e1 100644 --- a/cub/cub/block/block_load.cuh +++ b/cub/cub/block/block_load.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/block/block_merge_sort.cuh b/cub/cub/block/block_merge_sort.cuh index 49693540fba..7e414cdc4be 100644 --- a/cub/cub/block/block_merge_sort.cuh +++ b/cub/cub/block/block_merge_sort.cuh @@ -29,7 +29,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/block/block_radix_rank.cuh b/cub/cub/block/block_radix_rank.cuh index 64fcd7979c7..8495947789c 100644 --- a/cub/cub/block/block_radix_rank.cuh +++ b/cub/cub/block/block_radix_rank.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/cub/cub/block/block_radix_sort.cuh b/cub/cub/block/block_radix_sort.cuh index 0a7dc571c1b..1a98a66f646 100644 --- a/cub/cub/block/block_radix_sort.cuh +++ b/cub/cub/block/block_radix_sort.cuh @@ -36,7 +36,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include "block_exchange.cuh" #include "block_radix_rank.cuh" diff --git a/cub/cub/block/block_raking_layout.cuh b/cub/cub/block/block_raking_layout.cuh index 573252bae44..fbe332c9e07 100644 --- a/cub/cub/block/block_raking_layout.cuh +++ b/cub/cub/block/block_raking_layout.cuh @@ -36,7 +36,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include "../util_type.cuh" diff --git a/cub/cub/block/block_reduce.cuh b/cub/cub/block/block_reduce.cuh index eae6257009f..8e0814604e0 100644 --- a/cub/cub/block/block_reduce.cuh +++ b/cub/cub/block/block_reduce.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include "specializations/block_reduce_raking.cuh" #include "specializations/block_reduce_raking_commutative_only.cuh" diff --git a/cub/cub/block/block_run_length_decode.cuh b/cub/cub/block/block_run_length_decode.cuh index dd0340a25ee..c14d36fa015 100644 --- a/cub/cub/block/block_run_length_decode.cuh +++ b/cub/cub/block/block_run_length_decode.cuh @@ -29,7 +29,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include "../thread/thread_search.cuh" #include "../util_math.cuh" diff --git a/cub/cub/block/block_scan.cuh b/cub/cub/block/block_scan.cuh index 22689972cd5..6629fc8b087 100644 --- a/cub/cub/block/block_scan.cuh +++ b/cub/cub/block/block_scan.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include "specializations/block_scan_raking.cuh" #include "specializations/block_scan_warp_scans.cuh" diff --git a/cub/cub/block/block_shuffle.cuh b/cub/cub/block/block_shuffle.cuh index c96b8066ae6..4118344df7a 100644 --- a/cub/cub/block/block_shuffle.cuh +++ b/cub/cub/block/block_shuffle.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include "../util_ptx.cuh" #include "../util_type.cuh" diff --git a/cub/cub/block/block_store.cuh b/cub/cub/block/block_store.cuh index adbb5506ebe..2c7c93347ea 100644 --- a/cub/cub/block/block_store.cuh +++ b/cub/cub/block/block_store.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/block/radix_rank_sort_operations.cuh b/cub/cub/block/radix_rank_sort_operations.cuh index 31c0225488d..6567cbfac0f 100644 --- a/cub/cub/block/radix_rank_sort_operations.cuh +++ b/cub/cub/block/radix_rank_sort_operations.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/cub/cub/block/specializations/block_histogram_atomic.cuh b/cub/cub/block/specializations/block_histogram_atomic.cuh index 1e777ee4a7f..367599b3dc2 100644 --- a/cub/cub/block/specializations/block_histogram_atomic.cuh +++ b/cub/cub/block/specializations/block_histogram_atomic.cuh @@ -35,7 +35,11 @@ #include "../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC CUB_NAMESPACE_BEGIN diff --git a/cub/cub/block/specializations/block_histogram_sort.cuh b/cub/cub/block/specializations/block_histogram_sort.cuh index c23cdb0f6e1..4ae46fc9af4 100644 --- a/cub/cub/block/specializations/block_histogram_sort.cuh +++ b/cub/cub/block/specializations/block_histogram_sort.cuh @@ -35,7 +35,11 @@ #include "../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include "../../block/block_radix_sort.cuh" #include "../../block/block_discontinuity.cuh" diff --git a/cub/cub/block/specializations/block_reduce_raking.cuh b/cub/cub/block/specializations/block_reduce_raking.cuh index 7790a9de7c1..98ab45c794d 100644 --- a/cub/cub/block/specializations/block_reduce_raking.cuh +++ b/cub/cub/block/specializations/block_reduce_raking.cuh @@ -35,7 +35,11 @@ #include "../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include "../../block/block_raking_layout.cuh" #include "../../warp/warp_reduce.cuh" diff --git a/cub/cub/block/specializations/block_reduce_raking_commutative_only.cuh b/cub/cub/block/specializations/block_reduce_raking_commutative_only.cuh index f0d119a01ea..f4178f31edd 100644 --- a/cub/cub/block/specializations/block_reduce_raking_commutative_only.cuh +++ b/cub/cub/block/specializations/block_reduce_raking_commutative_only.cuh @@ -35,7 +35,11 @@ #include "../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include "block_reduce_raking.cuh" #include "../../warp/warp_reduce.cuh" diff --git a/cub/cub/block/specializations/block_reduce_warp_reductions.cuh b/cub/cub/block/specializations/block_reduce_warp_reductions.cuh index d7db7b8f1d2..3b68a283bcb 100644 --- a/cub/cub/block/specializations/block_reduce_warp_reductions.cuh +++ b/cub/cub/block/specializations/block_reduce_warp_reductions.cuh @@ -35,7 +35,11 @@ #include "../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/block/specializations/block_scan_raking.cuh b/cub/cub/block/specializations/block_scan_raking.cuh index b35e71d45c4..b1aad44e04e 100644 --- a/cub/cub/block/specializations/block_scan_raking.cuh +++ b/cub/cub/block/specializations/block_scan_raking.cuh @@ -36,7 +36,11 @@ #include "../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/block/specializations/block_scan_warp_scans.cuh b/cub/cub/block/specializations/block_scan_warp_scans.cuh index e050a9b88b4..f48b6dec0a4 100644 --- a/cub/cub/block/specializations/block_scan_warp_scans.cuh +++ b/cub/cub/block/specializations/block_scan_warp_scans.cuh @@ -35,7 +35,11 @@ #include "../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/config.cuh b/cub/cub/config.cuh index f399327d432..ea2591b4447 100644 --- a/cub/cub/config.cuh +++ b/cub/cub/config.cuh @@ -32,10 +32,14 @@ #pragma once -// For `_CCCL_IMPLICIT_SYSTEM_HEADER` +// For _CCCL_IMPLICIT_SYSTEM_HEADER #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include "util_arch.cuh" #include "util_compiler.cuh" diff --git a/cub/cub/cub.cuh b/cub/cub/cub.cuh index 81c3d38a98d..edb7ea0b256 100644 --- a/cub/cub/cub.cuh +++ b/cub/cub/cub.cuh @@ -36,7 +36,11 @@ // Static configuration #include "config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // Block #include "block/block_adjacent_difference.cuh" diff --git a/cub/cub/detail/choose_offset.cuh b/cub/cub/detail/choose_offset.cuh index b3ea6bcf27f..2894abe01e7 100644 --- a/cub/cub/detail/choose_offset.cuh +++ b/cub/cub/detail/choose_offset.cuh @@ -29,7 +29,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/cub/cub/detail/cpp_compatibility.cuh b/cub/cub/detail/cpp_compatibility.cuh index c0770598141..ce29f92fa31 100644 --- a/cub/cub/detail/cpp_compatibility.cuh +++ b/cub/cub/detail/cpp_compatibility.cuh @@ -19,7 +19,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if CUB_CPP_DIALECT >= 2017 && __cpp_if_constexpr # define CUB_IF_CONSTEXPR if constexpr diff --git a/cub/cub/detail/detect_cuda_runtime.cuh b/cub/cub/detail/detect_cuda_runtime.cuh index 3d2c2b3a262..0707182bb96 100644 --- a/cub/cub/detail/detect_cuda_runtime.cuh +++ b/cub/cub/detail/detect_cuda_runtime.cuh @@ -36,7 +36,11 @@ // We cannot use `cub/config.cuh` here due to circular dependencies #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/cub/cub/detail/device_double_buffer.cuh b/cub/cub/detail/device_double_buffer.cuh index ee7670a06ba..382d0c7bf02 100644 --- a/cub/cub/detail/device_double_buffer.cuh +++ b/cub/cub/detail/device_double_buffer.cuh @@ -18,7 +18,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/cub/cub/detail/device_synchronize.cuh b/cub/cub/detail/device_synchronize.cuh index 273d03fd374..8f015f7a41e 100644 --- a/cub/cub/detail/device_synchronize.cuh +++ b/cub/cub/detail/device_synchronize.cuh @@ -18,7 +18,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/detail/exec_check_disable.cuh b/cub/cub/detail/exec_check_disable.cuh index 8a4fe75fad8..bd7d6704d66 100644 --- a/cub/cub/detail/exec_check_disable.cuh +++ b/cub/cub/detail/exec_check_disable.cuh @@ -18,7 +18,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC /** * @def CUB_EXEC_CHECK_DISABLE diff --git a/cub/cub/detail/strong_load.cuh b/cub/cub/detail/strong_load.cuh index 5dcf6d1f8ea..8d80eaa3466 100644 --- a/cub/cub/detail/strong_load.cuh +++ b/cub/cub/detail/strong_load.cuh @@ -34,7 +34,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/detail/strong_store.cuh b/cub/cub/detail/strong_store.cuh index ab9805218e1..59530983726 100644 --- a/cub/cub/detail/strong_store.cuh +++ b/cub/cub/detail/strong_store.cuh @@ -34,7 +34,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/detail/temporary_storage.cuh b/cub/cub/detail/temporary_storage.cuh index 9881b0950bd..22696beb46f 100644 --- a/cub/cub/detail/temporary_storage.cuh +++ b/cub/cub/detail/temporary_storage.cuh @@ -18,7 +18,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/detail/type_traits.cuh b/cub/cub/detail/type_traits.cuh index c07ee7a5aad..cc0722c81ae 100644 --- a/cub/cub/detail/type_traits.cuh +++ b/cub/cub/detail/type_traits.cuh @@ -34,7 +34,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/detail/uninitialized_copy.cuh b/cub/cub/detail/uninitialized_copy.cuh index 807a458011e..257e5d38639 100644 --- a/cub/cub/detail/uninitialized_copy.cuh +++ b/cub/cub/detail/uninitialized_copy.cuh @@ -29,7 +29,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/cub/cub/device/device_adjacent_difference.cuh b/cub/cub/device/device_adjacent_difference.cuh index aedac4f69f9..e007e3bc9ae 100644 --- a/cub/cub/device/device_adjacent_difference.cuh +++ b/cub/cub/device/device_adjacent_difference.cuh @@ -29,7 +29,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/device_copy.cuh b/cub/cub/device/device_copy.cuh index 54ac962f273..d3d67b5bc5d 100644 --- a/cub/cub/device/device_copy.cuh +++ b/cub/cub/device/device_copy.cuh @@ -34,7 +34,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/cub/cub/device/device_histogram.cuh b/cub/cub/device/device_histogram.cuh index a4cddfd105d..6a8e7323370 100644 --- a/cub/cub/device/device_histogram.cuh +++ b/cub/cub/device/device_histogram.cuh @@ -36,7 +36,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/device_memcpy.cuh b/cub/cub/device/device_memcpy.cuh index 9171a67e2bc..bba6b0e001b 100644 --- a/cub/cub/device/device_memcpy.cuh +++ b/cub/cub/device/device_memcpy.cuh @@ -34,7 +34,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/cub/cub/device/device_merge_sort.cuh b/cub/cub/device/device_merge_sort.cuh index 7806921ab12..cc9865bce9b 100644 --- a/cub/cub/device/device_merge_sort.cuh +++ b/cub/cub/device/device_merge_sort.cuh @@ -29,7 +29,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/device_partition.cuh b/cub/cub/device/device_partition.cuh index 491e8b2e56b..4c311d39e3f 100644 --- a/cub/cub/device/device_partition.cuh +++ b/cub/cub/device/device_partition.cuh @@ -36,7 +36,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/device_radix_sort.cuh b/cub/cub/device/device_radix_sort.cuh index 6644adff2a7..adf2385ab6d 100644 --- a/cub/cub/device/device_radix_sort.cuh +++ b/cub/cub/device/device_radix_sort.cuh @@ -34,7 +34,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/device_reduce.cuh b/cub/cub/device/device_reduce.cuh index 1606042f184..5bd12bc3c28 100644 --- a/cub/cub/device/device_reduce.cuh +++ b/cub/cub/device/device_reduce.cuh @@ -36,7 +36,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/device_run_length_encode.cuh b/cub/cub/device/device_run_length_encode.cuh index 8a5630a0cc9..e7dbd21d0fc 100644 --- a/cub/cub/device/device_run_length_encode.cuh +++ b/cub/cub/device/device_run_length_encode.cuh @@ -36,7 +36,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/device_scan.cuh b/cub/cub/device/device_scan.cuh index 1f8442fb1d5..9f7fd725f49 100644 --- a/cub/cub/device/device_scan.cuh +++ b/cub/cub/device/device_scan.cuh @@ -36,7 +36,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/device_segmented_radix_sort.cuh b/cub/cub/device/device_segmented_radix_sort.cuh index 425dece845f..dbec93997f0 100644 --- a/cub/cub/device/device_segmented_radix_sort.cuh +++ b/cub/cub/device/device_segmented_radix_sort.cuh @@ -37,7 +37,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/device_segmented_reduce.cuh b/cub/cub/device/device_segmented_reduce.cuh index 64de08f5fc1..c0bc292a2ec 100644 --- a/cub/cub/device/device_segmented_reduce.cuh +++ b/cub/cub/device/device_segmented_reduce.cuh @@ -36,7 +36,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/device_segmented_sort.cuh b/cub/cub/device/device_segmented_sort.cuh index 4d2aebd64f4..823df17e249 100644 --- a/cub/cub/device/device_segmented_sort.cuh +++ b/cub/cub/device/device_segmented_sort.cuh @@ -36,7 +36,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/device_select.cuh b/cub/cub/device/device_select.cuh index 1c93894c95c..22599ea82b1 100644 --- a/cub/cub/device/device_select.cuh +++ b/cub/cub/device/device_select.cuh @@ -36,7 +36,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/device_spmv.cuh b/cub/cub/device/device_spmv.cuh index c23fce98439..ac6fd123142 100644 --- a/cub/cub/device/device_spmv.cuh +++ b/cub/cub/device/device_spmv.cuh @@ -36,7 +36,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/dispatch/dispatch_adjacent_difference.cuh b/cub/cub/device/dispatch/dispatch_adjacent_difference.cuh index be0be052a54..a7fcc713ea7 100644 --- a/cub/cub/device/dispatch/dispatch_adjacent_difference.cuh +++ b/cub/cub/device/dispatch/dispatch_adjacent_difference.cuh @@ -29,7 +29,11 @@ #include "../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/dispatch/dispatch_batch_memcpy.cuh b/cub/cub/device/dispatch/dispatch_batch_memcpy.cuh index 61b4232bf15..ae9026df3a7 100644 --- a/cub/cub/device/dispatch/dispatch_batch_memcpy.cuh +++ b/cub/cub/device/dispatch/dispatch_batch_memcpy.cuh @@ -35,7 +35,11 @@ #include "../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/dispatch/dispatch_histogram.cuh b/cub/cub/device/dispatch/dispatch_histogram.cuh index 921eeef7258..aa6bc4b23e6 100644 --- a/cub/cub/device/dispatch/dispatch_histogram.cuh +++ b/cub/cub/device/dispatch/dispatch_histogram.cuh @@ -37,7 +37,11 @@ #include "../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/dispatch/dispatch_merge_sort.cuh b/cub/cub/device/dispatch/dispatch_merge_sort.cuh index b4169a77f5f..c3b4f87d711 100644 --- a/cub/cub/device/dispatch/dispatch_merge_sort.cuh +++ b/cub/cub/device/dispatch/dispatch_merge_sort.cuh @@ -29,7 +29,11 @@ #include "../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/dispatch/dispatch_radix_sort.cuh b/cub/cub/device/dispatch/dispatch_radix_sort.cuh index f64f16d6bb7..aef8df7a8da 100644 --- a/cub/cub/device/dispatch/dispatch_radix_sort.cuh +++ b/cub/cub/device/dispatch/dispatch_radix_sort.cuh @@ -35,7 +35,11 @@ #include "../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/dispatch/dispatch_reduce.cuh b/cub/cub/device/dispatch/dispatch_reduce.cuh index e6b6ab0d452..ca4f1ee5b05 100644 --- a/cub/cub/device/dispatch/dispatch_reduce.cuh +++ b/cub/cub/device/dispatch/dispatch_reduce.cuh @@ -36,7 +36,11 @@ #include "../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/dispatch/dispatch_reduce_by_key.cuh b/cub/cub/device/dispatch/dispatch_reduce_by_key.cuh index 7e4deb4c3d6..3ff8b936821 100644 --- a/cub/cub/device/dispatch/dispatch_reduce_by_key.cuh +++ b/cub/cub/device/dispatch/dispatch_reduce_by_key.cuh @@ -35,7 +35,11 @@ #include "../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/dispatch/dispatch_rle.cuh b/cub/cub/device/dispatch/dispatch_rle.cuh index 34ecc13a0a1..ca7b7242b80 100644 --- a/cub/cub/device/dispatch/dispatch_rle.cuh +++ b/cub/cub/device/dispatch/dispatch_rle.cuh @@ -36,7 +36,11 @@ #include "../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/dispatch/dispatch_scan.cuh b/cub/cub/device/dispatch/dispatch_scan.cuh index 89bdb36c178..7b76c02ba80 100644 --- a/cub/cub/device/dispatch/dispatch_scan.cuh +++ b/cub/cub/device/dispatch/dispatch_scan.cuh @@ -37,7 +37,11 @@ #include "../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/dispatch/dispatch_scan_by_key.cuh b/cub/cub/device/dispatch/dispatch_scan_by_key.cuh index 13a4f354f00..75cb2829bc4 100644 --- a/cub/cub/device/dispatch/dispatch_scan_by_key.cuh +++ b/cub/cub/device/dispatch/dispatch_scan_by_key.cuh @@ -35,7 +35,11 @@ #include "../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/dispatch/dispatch_segmented_sort.cuh b/cub/cub/device/dispatch/dispatch_segmented_sort.cuh index 68db255b044..e31fcebe321 100644 --- a/cub/cub/device/dispatch/dispatch_segmented_sort.cuh +++ b/cub/cub/device/dispatch/dispatch_segmented_sort.cuh @@ -29,7 +29,11 @@ #include "../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/dispatch/dispatch_select_if.cuh b/cub/cub/device/dispatch/dispatch_select_if.cuh index 8b84113bb2b..32fe0a153a2 100644 --- a/cub/cub/device/dispatch/dispatch_select_if.cuh +++ b/cub/cub/device/dispatch/dispatch_select_if.cuh @@ -36,7 +36,11 @@ #include "../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/dispatch/dispatch_spmv_orig.cuh b/cub/cub/device/dispatch/dispatch_spmv_orig.cuh index 89376f617df..fda0d518d58 100644 --- a/cub/cub/device/dispatch/dispatch_spmv_orig.cuh +++ b/cub/cub/device/dispatch/dispatch_spmv_orig.cuh @@ -36,7 +36,11 @@ #include "../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/dispatch/dispatch_three_way_partition.cuh b/cub/cub/device/dispatch/dispatch_three_way_partition.cuh index 3e36e336dfc..083c84f6274 100644 --- a/cub/cub/device/dispatch/dispatch_three_way_partition.cuh +++ b/cub/cub/device/dispatch/dispatch_three_way_partition.cuh @@ -29,7 +29,11 @@ #include "../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/dispatch/tuning/tuning_histogram.cuh b/cub/cub/device/dispatch/tuning/tuning_histogram.cuh index 9cdc7173f62..eca09e9b4cf 100644 --- a/cub/cub/device/dispatch/tuning/tuning_histogram.cuh +++ b/cub/cub/device/dispatch/tuning/tuning_histogram.cuh @@ -29,7 +29,11 @@ #include "../../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/dispatch/tuning/tuning_reduce_by_key.cuh b/cub/cub/device/dispatch/tuning/tuning_reduce_by_key.cuh index 1ea37100a07..38900bdee60 100644 --- a/cub/cub/device/dispatch/tuning/tuning_reduce_by_key.cuh +++ b/cub/cub/device/dispatch/tuning/tuning_reduce_by_key.cuh @@ -29,7 +29,11 @@ #include "../../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/dispatch/tuning/tuning_run_length_encode.cuh b/cub/cub/device/dispatch/tuning/tuning_run_length_encode.cuh index cfad085825f..c057d31c60c 100644 --- a/cub/cub/device/dispatch/tuning/tuning_run_length_encode.cuh +++ b/cub/cub/device/dispatch/tuning/tuning_run_length_encode.cuh @@ -29,7 +29,11 @@ #include "../../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/dispatch/tuning/tuning_scan.cuh b/cub/cub/device/dispatch/tuning/tuning_scan.cuh index f26a1655f9c..dae9ce4c9c2 100644 --- a/cub/cub/device/dispatch/tuning/tuning_scan.cuh +++ b/cub/cub/device/dispatch/tuning/tuning_scan.cuh @@ -29,7 +29,11 @@ #include "../../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/dispatch/tuning/tuning_scan_by_key.cuh b/cub/cub/device/dispatch/tuning/tuning_scan_by_key.cuh index 9f7e679c45a..b6756c92a3d 100644 --- a/cub/cub/device/dispatch/tuning/tuning_scan_by_key.cuh +++ b/cub/cub/device/dispatch/tuning/tuning_scan_by_key.cuh @@ -29,7 +29,11 @@ #include "../../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/dispatch/tuning/tuning_select_if.cuh b/cub/cub/device/dispatch/tuning/tuning_select_if.cuh index 1d1dc6eb587..865c376b739 100644 --- a/cub/cub/device/dispatch/tuning/tuning_select_if.cuh +++ b/cub/cub/device/dispatch/tuning/tuning_select_if.cuh @@ -29,7 +29,11 @@ #include "../../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/dispatch/tuning/tuning_three_way_partition.cuh b/cub/cub/device/dispatch/tuning/tuning_three_way_partition.cuh index a73e8eed295..0144c9c8f9d 100644 --- a/cub/cub/device/dispatch/tuning/tuning_three_way_partition.cuh +++ b/cub/cub/device/dispatch/tuning/tuning_three_way_partition.cuh @@ -29,7 +29,11 @@ #include "../../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/device/dispatch/tuning/tuning_unique_by_key.cuh b/cub/cub/device/dispatch/tuning/tuning_unique_by_key.cuh index 3fffeb055a2..32c9b05c3bd 100644 --- a/cub/cub/device/dispatch/tuning/tuning_unique_by_key.cuh +++ b/cub/cub/device/dispatch/tuning/tuning_unique_by_key.cuh @@ -29,7 +29,11 @@ #include "../../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/grid/grid_barrier.cuh b/cub/cub/grid/grid_barrier.cuh index c91d8c8624d..516703cdbdb 100644 --- a/cub/cub/grid/grid_barrier.cuh +++ b/cub/cub/grid/grid_barrier.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include "../util_debug.cuh" #include "../thread/thread_load.cuh" diff --git a/cub/cub/grid/grid_even_share.cuh b/cub/cub/grid/grid_even_share.cuh index 56e396e4c87..f86b885a5c8 100644 --- a/cub/cub/grid/grid_even_share.cuh +++ b/cub/cub/grid/grid_even_share.cuh @@ -36,7 +36,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include "../util_math.cuh" #include "../util_type.cuh" diff --git a/cub/cub/grid/grid_mapping.cuh b/cub/cub/grid/grid_mapping.cuh index cf69555a9a0..3b4abf41bff 100644 --- a/cub/cub/grid/grid_mapping.cuh +++ b/cub/cub/grid/grid_mapping.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC CUB_NAMESPACE_BEGIN diff --git a/cub/cub/grid/grid_queue.cuh b/cub/cub/grid/grid_queue.cuh index 6dba6fe55d2..7a8f2887cce 100644 --- a/cub/cub/grid/grid_queue.cuh +++ b/cub/cub/grid/grid_queue.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/cub/cub/host/mutex.cuh b/cub/cub/host/mutex.cuh index dbd6435db00..22773be0014 100644 --- a/cub/cub/host/mutex.cuh +++ b/cub/cub/host/mutex.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/cub/cub/iterator/arg_index_input_iterator.cuh b/cub/cub/iterator/arg_index_input_iterator.cuh index eb94aace2a2..d895a53e72f 100644 --- a/cub/cub/iterator/arg_index_input_iterator.cuh +++ b/cub/cub/iterator/arg_index_input_iterator.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/iterator/cache_modified_input_iterator.cuh b/cub/cub/iterator/cache_modified_input_iterator.cuh index dae5c0bb63f..b42e5b3cb49 100644 --- a/cub/cub/iterator/cache_modified_input_iterator.cuh +++ b/cub/cub/iterator/cache_modified_input_iterator.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/iterator/cache_modified_output_iterator.cuh b/cub/cub/iterator/cache_modified_output_iterator.cuh index daf3b5e905e..92024af04d8 100644 --- a/cub/cub/iterator/cache_modified_output_iterator.cuh +++ b/cub/cub/iterator/cache_modified_output_iterator.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/iterator/constant_input_iterator.cuh b/cub/cub/iterator/constant_input_iterator.cuh index c9128d5101c..38816f5cbe1 100644 --- a/cub/cub/iterator/constant_input_iterator.cuh +++ b/cub/cub/iterator/constant_input_iterator.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/iterator/counting_input_iterator.cuh b/cub/cub/iterator/counting_input_iterator.cuh index ed6d254ef47..dc0108ac6f8 100644 --- a/cub/cub/iterator/counting_input_iterator.cuh +++ b/cub/cub/iterator/counting_input_iterator.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/iterator/discard_output_iterator.cuh b/cub/cub/iterator/discard_output_iterator.cuh index 29a30060123..66e764412b5 100644 --- a/cub/cub/iterator/discard_output_iterator.cuh +++ b/cub/cub/iterator/discard_output_iterator.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/iterator/tex_obj_input_iterator.cuh b/cub/cub/iterator/tex_obj_input_iterator.cuh index 7e7e3fc0ea2..24cdd165a34 100644 --- a/cub/cub/iterator/tex_obj_input_iterator.cuh +++ b/cub/cub/iterator/tex_obj_input_iterator.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/iterator/tex_ref_input_iterator.cuh b/cub/cub/iterator/tex_ref_input_iterator.cuh index cc29c69e2f3..67217a0f803 100644 --- a/cub/cub/iterator/tex_ref_input_iterator.cuh +++ b/cub/cub/iterator/tex_ref_input_iterator.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/cub/cub/iterator/transform_input_iterator.cuh b/cub/cub/iterator/transform_input_iterator.cuh index 99979655a15..de69a64ae76 100644 --- a/cub/cub/iterator/transform_input_iterator.cuh +++ b/cub/cub/iterator/transform_input_iterator.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/thread/thread_load.cuh b/cub/cub/thread/thread_load.cuh index 0127e899d81..fc83bbe8c3a 100644 --- a/cub/cub/thread/thread_load.cuh +++ b/cub/cub/thread/thread_load.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/cub/cub/thread/thread_operators.cuh b/cub/cub/thread/thread_operators.cuh index db0e8d1ce9c..af1fe845b71 100644 --- a/cub/cub/thread/thread_operators.cuh +++ b/cub/cub/thread/thread_operators.cuh @@ -39,7 +39,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/thread/thread_reduce.cuh b/cub/cub/thread/thread_reduce.cuh index 55b15db8143..8384b0cc401 100644 --- a/cub/cub/thread/thread_reduce.cuh +++ b/cub/cub/thread/thread_reduce.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include "../thread/thread_operators.cuh" #include "../detail/type_traits.cuh" diff --git a/cub/cub/thread/thread_scan.cuh b/cub/cub/thread/thread_scan.cuh index 7b051d88e6c..bc3840ec9c8 100644 --- a/cub/cub/thread/thread_scan.cuh +++ b/cub/cub/thread/thread_scan.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include "../thread/thread_operators.cuh" diff --git a/cub/cub/thread/thread_search.cuh b/cub/cub/thread/thread_search.cuh index 86bdb4a59ec..e18caf09a09 100644 --- a/cub/cub/thread/thread_search.cuh +++ b/cub/cub/thread/thread_search.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/thread/thread_sort.cuh b/cub/cub/thread/thread_sort.cuh index 68280db8dc6..caeb22e7801 100644 --- a/cub/cub/thread/thread_sort.cuh +++ b/cub/cub/thread/thread_sort.cuh @@ -29,7 +29,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include "../util_ptx.cuh" #include "../util_type.cuh" diff --git a/cub/cub/thread/thread_store.cuh b/cub/cub/thread/thread_store.cuh index 6ccbb9d8819..9d24aa54ad9 100644 --- a/cub/cub/thread/thread_store.cuh +++ b/cub/cub/thread/thread_store.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/util_allocator.cuh b/cub/cub/util_allocator.cuh index b0f3d22ec6c..8172dd919f8 100644 --- a/cub/cub/util_allocator.cuh +++ b/cub/cub/util_allocator.cuh @@ -35,7 +35,11 @@ #include "config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include "util_namespace.cuh" #include "util_debug.cuh" diff --git a/cub/cub/util_arch.cuh b/cub/cub/util_arch.cuh index 4d8608e8e88..2a09635ac34 100644 --- a/cub/cub/util_arch.cuh +++ b/cub/cub/util_arch.cuh @@ -35,7 +35,11 @@ #include "config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include "util_cpp_dialect.cuh" #include "util_namespace.cuh" diff --git a/cub/cub/util_compiler.cuh b/cub/cub/util_compiler.cuh index 3541d2e9f8e..3286c07db43 100644 --- a/cub/cub/util_compiler.cuh +++ b/cub/cub/util_compiler.cuh @@ -32,10 +32,14 @@ #pragma once -// For `_CCCL_IMPLICIT_SYSTEM_HEADER` +// For _CCCL_IMPLICIT_SYSTEM_HEADER #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // enumerate host compilers we know about #define CUB_HOST_COMPILER_UNKNOWN 0 diff --git a/cub/cub/util_cpp_dialect.cuh b/cub/cub/util_cpp_dialect.cuh index 52b7803c3e3..81c01203fe0 100644 --- a/cub/cub/util_cpp_dialect.cuh +++ b/cub/cub/util_cpp_dialect.cuh @@ -33,7 +33,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include "util_compiler.cuh" diff --git a/cub/cub/util_debug.cuh b/cub/cub/util_debug.cuh index 6584afb5172..4f7bdd86205 100644 --- a/cub/cub/util_debug.cuh +++ b/cub/cub/util_debug.cuh @@ -38,7 +38,11 @@ #include "config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/cub/cub/util_deprecated.cuh b/cub/cub/util_deprecated.cuh index 842f3560146..7b8834cc929 100644 --- a/cub/cub/util_deprecated.cuh +++ b/cub/cub/util_deprecated.cuh @@ -34,7 +34,11 @@ #include "config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/util_device.cuh b/cub/cub/util_device.cuh index dd7bfaace9f..d8bb40cdcc4 100644 --- a/cub/cub/util_device.cuh +++ b/cub/cub/util_device.cuh @@ -39,7 +39,11 @@ #include "config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/cub/cub/util_macro.cuh b/cub/cub/util_macro.cuh index f9244d9a245..99bd0165fe7 100644 --- a/cub/cub/util_macro.cuh +++ b/cub/cub/util_macro.cuh @@ -34,7 +34,11 @@ #include "version.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/util_math.cuh b/cub/cub/util_math.cuh index 8d27c26003e..018c2a615d5 100644 --- a/cub/cub/util_math.cuh +++ b/cub/cub/util_math.cuh @@ -34,7 +34,11 @@ #include "config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/cub/cub/util_namespace.cuh b/cub/cub/util_namespace.cuh index 7289ebe02b4..5139c8a571b 100644 --- a/cub/cub/util_namespace.cuh +++ b/cub/cub/util_namespace.cuh @@ -40,7 +40,11 @@ // version.cuh. #include "version.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/cub/cub/util_ptx.cuh b/cub/cub/util_ptx.cuh index 425eec2e7a0..4c5d01e5e54 100644 --- a/cub/cub/util_ptx.cuh +++ b/cub/cub/util_ptx.cuh @@ -36,7 +36,11 @@ #include "config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include "util_debug.cuh" #include "util_type.cuh" diff --git a/cub/cub/util_temporary_storage.cuh b/cub/cub/util_temporary_storage.cuh index c5695ff56f9..17548600a47 100644 --- a/cub/cub/util_temporary_storage.cuh +++ b/cub/cub/util_temporary_storage.cuh @@ -35,7 +35,11 @@ #include "config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/util_type.cuh b/cub/cub/util_type.cuh index bb207a4972f..6fbe3413760 100644 --- a/cub/cub/util_type.cuh +++ b/cub/cub/util_type.cuh @@ -35,7 +35,11 @@ #include "config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/version.cuh b/cub/cub/version.cuh index 0d66b886b0c..9934b92eff9 100644 --- a/cub/cub/version.cuh +++ b/cub/cub/version.cuh @@ -35,10 +35,14 @@ #pragma once -// For `_CCCL_IMPLICIT_SYSTEM_HEADER` +// For _CCCL_IMPLICIT_SYSTEM_HEADER #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC /*! \def CUB_VERSION * \brief The preprocessor macro \p CUB_VERSION encodes the version diff --git a/cub/cub/warp/specializations/warp_exchange_shfl.cuh b/cub/cub/warp/specializations/warp_exchange_shfl.cuh index f7d214f8b2f..ae1327ee6c1 100644 --- a/cub/cub/warp/specializations/warp_exchange_shfl.cuh +++ b/cub/cub/warp/specializations/warp_exchange_shfl.cuh @@ -29,7 +29,11 @@ #include "../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/warp/specializations/warp_exchange_smem.cuh b/cub/cub/warp/specializations/warp_exchange_smem.cuh index 372e1def2b0..fc9fcbc5939 100644 --- a/cub/cub/warp/specializations/warp_exchange_smem.cuh +++ b/cub/cub/warp/specializations/warp_exchange_smem.cuh @@ -35,7 +35,11 @@ #include "../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/warp/specializations/warp_reduce_shfl.cuh b/cub/cub/warp/specializations/warp_reduce_shfl.cuh index fabea446673..dd0e82bf0b2 100644 --- a/cub/cub/warp/specializations/warp_reduce_shfl.cuh +++ b/cub/cub/warp/specializations/warp_reduce_shfl.cuh @@ -35,7 +35,11 @@ #include "../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include "../../thread/thread_operators.cuh" #include "../../util_ptx.cuh" diff --git a/cub/cub/warp/specializations/warp_reduce_smem.cuh b/cub/cub/warp/specializations/warp_reduce_smem.cuh index fc86802cb53..a2077940c7b 100644 --- a/cub/cub/warp/specializations/warp_reduce_smem.cuh +++ b/cub/cub/warp/specializations/warp_reduce_smem.cuh @@ -35,7 +35,11 @@ #include "../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include "../../thread/thread_operators.cuh" #include "../../thread/thread_load.cuh" diff --git a/cub/cub/warp/specializations/warp_scan_shfl.cuh b/cub/cub/warp/specializations/warp_scan_shfl.cuh index cb452c40967..81db566c184 100644 --- a/cub/cub/warp/specializations/warp_scan_shfl.cuh +++ b/cub/cub/warp/specializations/warp_scan_shfl.cuh @@ -35,7 +35,11 @@ #include "../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include "../../thread/thread_operators.cuh" #include "../../util_type.cuh" diff --git a/cub/cub/warp/specializations/warp_scan_smem.cuh b/cub/cub/warp/specializations/warp_scan_smem.cuh index a7768233aa4..8f76b3c6253 100644 --- a/cub/cub/warp/specializations/warp_scan_smem.cuh +++ b/cub/cub/warp/specializations/warp_scan_smem.cuh @@ -35,7 +35,11 @@ #include "../../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include "../../thread/thread_operators.cuh" #include "../../thread/thread_load.cuh" diff --git a/cub/cub/warp/warp_exchange.cuh b/cub/cub/warp/warp_exchange.cuh index 798b3bbacba..9bb36bdfe6f 100644 --- a/cub/cub/warp/warp_exchange.cuh +++ b/cub/cub/warp/warp_exchange.cuh @@ -35,7 +35,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/warp/warp_load.cuh b/cub/cub/warp/warp_load.cuh index 0d917f953f8..4af6223c533 100644 --- a/cub/cub/warp/warp_load.cuh +++ b/cub/cub/warp/warp_load.cuh @@ -31,7 +31,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/warp/warp_merge_sort.cuh b/cub/cub/warp/warp_merge_sort.cuh index 7f7beb7796b..4da00d162c7 100644 --- a/cub/cub/warp/warp_merge_sort.cuh +++ b/cub/cub/warp/warp_merge_sort.cuh @@ -29,7 +29,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/warp/warp_reduce.cuh b/cub/cub/warp/warp_reduce.cuh index 7b636fa3c46..f00f13a5b06 100644 --- a/cub/cub/warp/warp_reduce.cuh +++ b/cub/cub/warp/warp_reduce.cuh @@ -36,7 +36,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/warp/warp_scan.cuh b/cub/cub/warp/warp_scan.cuh index 0d4bb31ff4e..80df80a2356 100644 --- a/cub/cub/warp/warp_scan.cuh +++ b/cub/cub/warp/warp_scan.cuh @@ -36,7 +36,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/cub/cub/warp/warp_store.cuh b/cub/cub/warp/warp_store.cuh index cbb426aa68f..f3564e4315e 100644 --- a/cub/cub/warp/warp_store.cuh +++ b/cub/cub/warp/warp_store.cuh @@ -31,7 +31,11 @@ #include "../config.cuh" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/libcudacxx/.upstream-tests/utils/generate_feature_test_macro_components.py b/libcudacxx/.upstream-tests/utils/generate_feature_test_macro_components.py index 5d9dda49ef9..a0530a2de50 100755 --- a/libcudacxx/.upstream-tests/utils/generate_feature_test_macro_components.py +++ b/libcudacxx/.upstream-tests/utils/generate_feature_test_macro_components.py @@ -722,7 +722,11 @@ def produce_version_header(): #include <__config> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if _LIBCUDACXX_STD_VER > 11 {cxx14_macros} diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__algorithm/swap_ranges.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__algorithm/swap_ranges.h index bb150c748b4..52524acc387 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__algorithm/swap_ranges.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__algorithm/swap_ranges.h @@ -16,7 +16,11 @@ #include "../__utility/swap.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__assert b/libcudacxx/include/cuda/std/detail/libcxx/include/__assert index 4db1d23b117..7d8d58f3eb2 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__assert +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__assert @@ -17,7 +17,11 @@ #include "__verbose_abort" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // This is for backwards compatibility with code that might have been enabling // assertions through the Debug mode previously. diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__availability b/libcudacxx/include/cuda/std/detail/libcxx/include/__availability index 97d28e12a95..b90ebf1f278 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__availability +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__availability @@ -15,7 +15,11 @@ #include <__config> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // Libc++ is shipped by various vendors. In particular, it is used as a system // library on macOS, iOS and other Apple platforms. In order for users to be diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__bit_reference b/libcudacxx/include/cuda/std/detail/libcxx/include/__bit_reference index 9734f4ae917..84411dfacda 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__bit_reference +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__bit_reference @@ -14,7 +14,11 @@ #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_PUSH_MACROS #include <__undef_macros> diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__bsd_locale_defaults.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__bsd_locale_defaults.h index a267972da20..71ed40cff60 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__bsd_locale_defaults.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__bsd_locale_defaults.h @@ -14,7 +14,11 @@ #ifndef _LIBCUDACXX_BSD_LOCALE_DEFAULTS_H #define _LIBCUDACXX_BSD_LOCALE_DEFAULTS_H +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #define __libcpp_mb_cur_max_l(loc) MB_CUR_MAX_L(loc) #define __libcpp_btowc_l(ch, loc) btowc_l(ch, loc) diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__bsd_locale_fallbacks.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__bsd_locale_fallbacks.h index ef72623b110..128ced77337 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__bsd_locale_fallbacks.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__bsd_locale_fallbacks.h @@ -17,7 +17,11 @@ #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__cccl/visibility.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__cccl/visibility.h index 390a857db70..b8e9d337414 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__cccl/visibility.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__cccl/visibility.h @@ -18,13 +18,18 @@ // We want to ensure that all warning emmiting from this header are supressed // We define cub and thrust kernels as hidden. However, this triggers errors about missing external linkage iff the // definition of the _CCCL_ATTRIBUTE_HIDDEN macro is not in a system header :shrug: -// FIXME: this currently breaks nvc++ #if defined(_CCCL_COMPILER_NVHPC) -_CCCL_IMPLICIT_SYSTEM_HEADER +#pragma GCC system_header #else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_FORCE_SYSTEM_HEADER #endif // !_CCCL_COMPILER_NVHPC +// For unknown reasons, nvc++ need to selectively disable this warning +// We do not want to use our usual macro because that would have push / pop semantics +#if defined(_CCCL_COMPILER_NVHPC) +#pragma nv_diag_suppress 1407 +#endif // _CCCL_COMPILER_NVHPC + // Enable us to hide kernels #if defined(_CCCL_COMPILER_MSVC) # define _CCCL_ATTRIBUTE_HIDDEN diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__cccl_config b/libcudacxx/include/cuda/std/detail/libcxx/include/__cccl_config index 007fe605eee..49cafa2db2e 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__cccl_config +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__cccl_config @@ -70,11 +70,16 @@ #elif defined(_LIBCUDACXX_DISABLE_PRAGMA_GCC_SYSTEM_HEADER) # define _CCCL_IMPLICIT_SYSTEM_HEADER #else +# define _CCCL_USE_IMPLICIT_SYSTEM_DEADER # define _CCCL_IMPLICIT_SYSTEM_HEADER _CCCL_FORCE_SYSTEM_HEADER #endif // We want to ensure that all warning emmiting from this header are supressed +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // Enable us to selectively silence host compiler warnings #define _CCCL_TOSTRING2(_STR) #_STR diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/_One_of.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/_One_of.h index 9510a97f75b..aabfa399425 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/_One_of.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/_One_of.h @@ -18,7 +18,11 @@ #include "../__type_traits/disjunction.h" #include "../__type_traits/is_same.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/__concept_macros.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/__concept_macros.h index fb95cbf4552..347e2ae9b5a 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/__concept_macros.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/__concept_macros.h @@ -18,6 +18,12 @@ #include <__config> #endif //__cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv +_CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC + #if _LIBCUDACXX_STD_VER > 11 #define _LIBCUDACXX_PP_CAT_(_Xp, ...) _Xp##__VA_ARGS__ diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/arithmetic.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/arithmetic.h index 1a13bdee337..a05c05b0183 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/arithmetic.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/arithmetic.h @@ -22,7 +22,11 @@ #include "../__type_traits/is_signed.h" #include "../__type_traits/is_unsigned_integer.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/assignable.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/assignable.h index cd4abb6b3f2..bb5a0e3aadf 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/assignable.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/assignable.h @@ -21,7 +21,11 @@ #include "../__type_traits/make_const_lvalue_ref.h" #include "../__utility/forward.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/boolean_testable.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/boolean_testable.h index 738dbfe1453..6ed6b8246c3 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/boolean_testable.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/boolean_testable.h @@ -18,7 +18,11 @@ #include "../__concepts/convertible_to.h" #include "../__utility/forward.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/class_or_enum.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/class_or_enum.h index ba185112e9d..026e99af01e 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/class_or_enum.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/class_or_enum.h @@ -20,7 +20,11 @@ #include "../__type_traits/is_union.h" #include "../__type_traits/remove_cvref.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/common_reference_with.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/common_reference_with.h index 6d8f0c39018..777a50f12ca 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/common_reference_with.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/common_reference_with.h @@ -21,7 +21,11 @@ #include "../__type_traits/copy_cv.h" #include "../__type_traits/copy_cvref.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/common_with.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/common_with.h index fc7405ba641..4ad58c4f20c 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/common_with.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/common_with.h @@ -21,7 +21,11 @@ #include "../__type_traits/common_type.h" #include "../__utility/declval.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/constructible.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/constructible.h index 3b7826bb916..0443ebab28f 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/constructible.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/constructible.h @@ -20,7 +20,11 @@ #include "../__type_traits/add_lvalue_reference.h" #include "../__type_traits/is_constructible.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/convertible_to.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/convertible_to.h index ebd565036fa..85a1eea229d 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/convertible_to.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/convertible_to.h @@ -18,7 +18,11 @@ #include "../__type_traits/is_convertible.h" #include "../__utility/declval.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/copyable.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/copyable.h index 2e0b37246cc..15ad7790030 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/copyable.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/copyable.h @@ -19,7 +19,11 @@ #include "../__concepts/constructible.h" #include "../__concepts/movable.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/derived_from.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/derived_from.h index dbaf27be229..571430b5341 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/derived_from.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/derived_from.h @@ -19,7 +19,11 @@ #include "../__type_traits/is_base_of.h" #include "../__type_traits/is_convertible.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/destructible.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/destructible.h index 05f6c96b2e8..6e24a7bb899 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/destructible.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/destructible.h @@ -22,7 +22,11 @@ #include "../__type_traits/void_t.h" #include "../__utility/declval.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/different_from.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/different_from.h index b7317c36cf3..a99effd2e77 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/different_from.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/different_from.h @@ -18,7 +18,11 @@ #include "../__concepts/same_as.h" #include "../__type_traits/remove_cvref.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/equality_comparable.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/equality_comparable.h index 637663894b5..cfe374fce77 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/equality_comparable.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/equality_comparable.h @@ -20,7 +20,11 @@ #include "../__type_traits/common_reference.h" #include "../__type_traits/make_const_lvalue_ref.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/invocable.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/invocable.h index 7392cc010c2..227a9c2694b 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/invocable.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/invocable.h @@ -18,7 +18,11 @@ #include "../__functional/invoke.h" #include "../__utility/forward.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/movable.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/movable.h index 8861b5ed125..28d01625e4a 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/movable.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/movable.h @@ -20,7 +20,11 @@ #include "../__concepts/swappable.h" #include "../__type_traits/is_object.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/predicate.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/predicate.h index 44ae87759c2..b88aab51641 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/predicate.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/predicate.h @@ -19,7 +19,11 @@ #include "../__concepts/invocable.h" #include "../__functional/invoke.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/regular.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/regular.h index ae8bca11608..05979362388 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/regular.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/regular.h @@ -18,7 +18,11 @@ #include "../__concepts/equality_comparable.h" #include "../__concepts/semiregular.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/relation.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/relation.h index 4376d79d1b3..c3ed2e90dc3 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/relation.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/relation.h @@ -17,7 +17,11 @@ #include "../__concepts/__concept_macros.h" #include "../__concepts/predicate.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/same_as.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/same_as.h index 733b66df412..0b4668a86a1 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/same_as.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/same_as.h @@ -17,7 +17,11 @@ #include "../__concepts/__concept_macros.h" #include "../__type_traits/is_same.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/semiregular.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/semiregular.h index c688926991f..46c3bca6d4d 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/semiregular.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/semiregular.h @@ -18,7 +18,11 @@ #include "../__concepts/constructible.h" #include "../__concepts/copyable.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/swappable.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/swappable.h index fd156208991..b5c1f1b666b 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/swappable.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/swappable.h @@ -31,7 +31,11 @@ #include "../__utility/forward.h" #include "../__utility/move.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if defined(_LIBCUDACXX_COMPILER_MSVC) _LIBCUDACXX_NV_DIAG_SUPPRESS(461) // nonstandard cast to array type ignored diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/totally_ordered.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/totally_ordered.h index 61b405d087a..d1973c7c80d 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/totally_ordered.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__concepts/totally_ordered.h @@ -20,7 +20,11 @@ #include "../__type_traits/common_reference.h" #include "../__type_traits/make_const_lvalue_ref.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__config b/libcudacxx/include/cuda/std/detail/libcxx/include/__config index 052ce385fe3..f71aa623243 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__config +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__config @@ -12,7 +12,11 @@ #include "__cccl_config" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if defined(__NVCOMPILER) # define _LIBCUDACXX_COMPILER_NVHPC diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__cuda/atomic.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__cuda/atomic.h index e2128b5c8db..9e53acce011 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__cuda/atomic.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__cuda/atomic.h @@ -15,7 +15,11 @@ #error "<__cuda/atomic> should only be included in from " #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_CUDA diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__cuda/barrier.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__cuda/barrier.h index e8bf2dee7d8..115e57a27d9 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__cuda/barrier.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__cuda/barrier.h @@ -19,7 +19,11 @@ # error "CUDA synchronization primitives are only supported for sm_70 and up." #endif +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include "../cstdlib" // _LIBCUDACXX_UNREACHABLE #include "../__type_traits/void_t.h" // _CUDA_VSTD::__void_t diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__cuda/chrono.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__cuda/chrono.h index 1b5c806aca0..225123ff80c 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__cuda/chrono.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__cuda/chrono.h @@ -17,7 +17,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__cuda/semaphore.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__cuda/semaphore.h index 18833694a6a..0e7b9ae95c8 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__cuda/semaphore.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__cuda/semaphore.h @@ -15,7 +15,11 @@ #error "<__cuda/semaphore> should only be included in from " #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_CUDA diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__debug b/libcudacxx/include/cuda/std/detail/libcxx/include/__debug index 731df5f4d75..70f25f4241f 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__debug +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__debug @@ -19,7 +19,11 @@ #include "__type_traits/is_constant_evaluated.h" #include "cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if defined(_LIBCUDACXX_ENABLE_DEBUG_MODE) && !defined(_LIBCUDACXX_DEBUG_RANDOMIZE_UNSPECIFIED_STABILITY) # define _LIBCUDACXX_DEBUG_RANDOMIZE_UNSPECIFIED_STABILITY diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__errc b/libcudacxx/include/cuda/std/detail/libcxx/include/__errc index b3d896a1334..1143fcf7460 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__errc +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__errc @@ -103,7 +103,11 @@ enum class errc #include <__config> #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__expected/bad_expected_access.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__expected/bad_expected_access.h index d1a0bb96afc..82880af230a 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__expected/bad_expected_access.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__expected/bad_expected_access.h @@ -16,7 +16,11 @@ #include "../__utility/move.h" #include "../exception" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if _LIBCUDACXX_STD_VER > 11 diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__expected/expected.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__expected/expected.h index 29a68b39817..39fce36d6da 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__expected/expected.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__expected/expected.h @@ -60,7 +60,11 @@ #include "../cstdlib" #include "../initializer_list" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if _LIBCUDACXX_STD_VER > 11 diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__expected/expected_base.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__expected/expected_base.h index 4f4c103fc14..26e911667d5 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__expected/expected_base.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__expected/expected_base.h @@ -45,7 +45,11 @@ #include "../__utility/in_place.h" #include "../__utility/move.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if _LIBCUDACXX_STD_VER > 11 diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__expected/unexpect.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__expected/unexpect.h index 3cf696c3753..f4a55f5bdd2 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__expected/unexpect.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__expected/unexpect.h @@ -13,7 +13,11 @@ #include <__config> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if _LIBCUDACXX_STD_VER > 11 diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__expected/unexpected.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__expected/unexpected.h index 386582b5cde..d8529a04344 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__expected/unexpected.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__expected/unexpected.h @@ -31,7 +31,11 @@ #include "../initializer_list" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/binary_function.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/binary_function.h index 7c1d480800f..25751f5be0b 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/binary_function.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/binary_function.h @@ -14,7 +14,11 @@ #include <__config> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/binary_negate.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/binary_negate.h index fb7f3851d35..96d72a5515d 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/binary_negate.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/binary_negate.h @@ -17,7 +17,11 @@ #include "../__functional/binary_function.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/bind.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/bind.h index 2efab8c833f..1d7f9d38125 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/bind.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/bind.h @@ -41,7 +41,11 @@ #include "../cstddef" #include "../tuple" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/bind_back.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/bind_back.h index 4f9655a6bb8..9d7b7eddc1d 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/bind_back.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/bind_back.h @@ -28,7 +28,11 @@ #include "../tuple" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/bind_front.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/bind_front.h index 4c5e415a6f5..0ee3921c118 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/bind_front.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/bind_front.h @@ -25,7 +25,11 @@ #include "../__type_traits/is_nothrow_constructible.h" #include "../__utility/forward.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/binder1st.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/binder1st.h index 0ca0d4cfb30..702187d0197 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/binder1st.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/binder1st.h @@ -17,7 +17,11 @@ #include "../__functional/unary_function.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/binder2nd.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/binder2nd.h index e8c903c230d..f8238309f7c 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/binder2nd.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/binder2nd.h @@ -17,7 +17,11 @@ #include "../__functional/unary_function.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/compose.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/compose.h index 5a52560bea0..6a61be4e4ee 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/compose.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/compose.h @@ -20,7 +20,11 @@ #include "../__type_traits/decay.h" #include "../__utility/forward.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/default_searcher.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/default_searcher.h index 8309d1900fc..1e7a5cd7b2b 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/default_searcher.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/default_searcher.h @@ -21,7 +21,11 @@ #include "../__iterator/iterator_traits.h" #include "../__utility/pair.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/function.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/function.h index 74cd8c5b641..14707ceb605 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/function.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/function.h @@ -44,7 +44,11 @@ #include "../__utility/swap.h" #include "../tuple" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/hash.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/hash.h index 77b3a04f5d4..4ed859a0379 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/hash.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/hash.h @@ -31,7 +31,11 @@ #include "../__utility/swap.h" #include "../cstdint" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #ifndef __cuda_std__ diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/identity.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/identity.h index cabcb6c1f7b..b1a2d4116ce 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/identity.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/identity.h @@ -17,7 +17,11 @@ #include "../__utility/forward.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/invoke.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/invoke.h index 91bb9171f10..95ebdae81f6 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/invoke.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/invoke.h @@ -33,7 +33,11 @@ #include "../__utility/declval.h" #include "../__utility/forward.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // TODO: Disentangle the type traits and _CUDA_VSTD::invoke properly diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/is_transparent.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/is_transparent.h index 363e820ab58..42b512ef1ec 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/is_transparent.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/is_transparent.h @@ -18,7 +18,11 @@ #include "../__type_traits/integral_constant.h" #include "../__type_traits/void_t.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/mem_fn.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/mem_fn.h index 7d8f7a2d43c..6f9674e5b1c 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/mem_fn.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/mem_fn.h @@ -20,7 +20,11 @@ #include "../__functional/weak_result_type.h" #include "../__utility/forward.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/mem_fun_ref.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/mem_fun_ref.h index de185dcd904..ad2e6ec1146 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/mem_fun_ref.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/mem_fun_ref.h @@ -18,7 +18,11 @@ #include "../__functional/binary_function.h" #include "../__functional/unary_function.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/not_fn.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/not_fn.h index 38feb75d9ab..31e48c544ec 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/not_fn.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/not_fn.h @@ -23,7 +23,11 @@ #include "../__type_traits/is_move_constructible.h" #include "../__utility/forward.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/operations.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/operations.h index 7f3f60eaa72..5c35a84a307 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/operations.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/operations.h @@ -19,7 +19,11 @@ #include "../__functional/unary_function.h" #include "../__utility/forward.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/perfect_forward.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/perfect_forward.h index 2b67db7a5cd..a84212a0cb2 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/perfect_forward.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/perfect_forward.h @@ -27,7 +27,11 @@ #include "../tuple" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/pointer_to_binary_function.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/pointer_to_binary_function.h index 47574431735..72c46a411a4 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/pointer_to_binary_function.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/pointer_to_binary_function.h @@ -17,7 +17,11 @@ #include "../__functional/binary_function.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/pointer_to_unary_function.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/pointer_to_unary_function.h index f9b8ad2df1f..a528d8c5c2b 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/pointer_to_unary_function.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/pointer_to_unary_function.h @@ -17,7 +17,11 @@ #include "../__functional/unary_function.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/ranges_operations.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/ranges_operations.h index 9a76f785bc2..210ce402a3e 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/ranges_operations.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/ranges_operations.h @@ -18,7 +18,11 @@ #include "../__concepts/totally_ordered.h" #include "../__utility/forward.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if _LIBCUDACXX_STD_VER > 14 diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/reference_wrapper.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/reference_wrapper.h index b1b7827a581..c8e3c0f7e7e 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/reference_wrapper.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/reference_wrapper.h @@ -17,7 +17,11 @@ #include "../__functional/weak_result_type.h" #include "../__memory/addressof.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/unary_function.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/unary_function.h index 08317c35291..6545c451f33 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/unary_function.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/unary_function.h @@ -13,7 +13,11 @@ #include <__config> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/unary_negate.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/unary_negate.h index 9c7658e279c..2a6adfd5e97 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/unary_negate.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/unary_negate.h @@ -17,7 +17,11 @@ #include "../__functional/unary_function.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/unwrap_ref.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/unwrap_ref.h index cfa6644aae1..c0f522ede1a 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/unwrap_ref.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/unwrap_ref.h @@ -14,7 +14,11 @@ #include <__config> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/weak_result_type.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/weak_result_type.h index 18606e3b061..911263b8331 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/weak_result_type.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional/weak_result_type.h @@ -21,7 +21,11 @@ #include "../__type_traits/is_same.h" #include "../__utility/declval.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional_base b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional_base index 17cb75321e6..dc28633036e 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__functional_base +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__functional_base @@ -32,7 +32,11 @@ #include <__pragma_push> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/array.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/array.h index 040ec41283f..9161771b523 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/array.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/array.h @@ -16,7 +16,11 @@ #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/get.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/get.h index 7aaa51ae621..2d68f304009 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/get.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/get.h @@ -20,7 +20,11 @@ #include "../__tuple_dir/tuple_element.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/hash.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/hash.h index 1e162abf0a8..16df8ee9d6a 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/hash.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/hash.h @@ -14,7 +14,11 @@ #include <__config> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/memory_resource.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/memory_resource.h index 66989d10f39..130da942a52 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/memory_resource.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/memory_resource.h @@ -14,7 +14,11 @@ #include <__config> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/pair.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/pair.h index 4cb43984e63..7d19a66520e 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/pair.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/pair.h @@ -14,7 +14,11 @@ #include <__config> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/span.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/span.h index d8bc48703d7..06b3a667e98 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/span.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/span.h @@ -17,7 +17,11 @@ #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/string.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/string.h index ee4925b816c..5a408b7df5f 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/string.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/string.h @@ -16,7 +16,11 @@ #include "../__fwd/memory_resource.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/string_view.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/string_view.h index 87d2e3f531c..670de6771c2 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/string_view.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/string_view.h @@ -17,7 +17,11 @@ #include "../__fwd/string.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/tuple.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/tuple.h index 430602b5912..7fbf47e9174 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/tuple.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__fwd/tuple.h @@ -14,7 +14,11 @@ #include <__config> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__hash_table b/libcudacxx/include/cuda/std/detail/libcxx/include/__hash_table index 6c48f329e8b..899800339c5 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__hash_table +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__hash_table @@ -22,7 +22,11 @@ #include "__assert" // all public C++ headers provide the assertion handler #include "__debug" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_PUSH_MACROS #include <__undef_macros> diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/access.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/access.h index b05b5a86503..248ec11f575 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/access.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/access.h @@ -17,7 +17,11 @@ #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/advance.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/advance.h index fbec91bd7a9..a9257b833a9 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/advance.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/advance.h @@ -19,7 +19,11 @@ #include "../__iterator/iterator_traits.h" #include "../cstdlib" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/back_insert_iterator.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/back_insert_iterator.h index 72c32feb2ca..8d62a4e9b32 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/back_insert_iterator.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/back_insert_iterator.h @@ -21,7 +21,11 @@ #include "../__utility/move.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/bounded_iter.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/bounded_iter.h index 924279e4c96..adb69566e8e 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/bounded_iter.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/bounded_iter.h @@ -22,9 +22,11 @@ #include "../__type_traits/is_convertible.h" #include "../__utility/move.h" -#if defined(_LIBCUDACXX_USE_PRAGMA_GCC_SYSTEM_HEADER) +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) #pragma GCC system_header -#endif +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv +_CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/concepts.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/concepts.h index ea02efad6fa..7b0cee8406c 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/concepts.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/concepts.h @@ -45,7 +45,11 @@ #include "../__type_traits/remove_cvref.h" #include "../__type_traits/void_t.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/data.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/data.h index 93544ccb206..4d2bda2bed7 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/data.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/data.h @@ -18,7 +18,11 @@ #include "../cstddef" #include "../initializer_list" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/default_sentinel.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/default_sentinel.h index f60f1e0c9f7..f1859e1a413 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/default_sentinel.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/default_sentinel.h @@ -15,7 +15,11 @@ #include <__config> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/distance.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/distance.h index 82bbc1b2f70..d4cd2de3128 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/distance.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/distance.h @@ -17,7 +17,11 @@ #include "../__iterator/iterator_traits.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/empty.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/empty.h index db0f6ab5bac..7a2a655f80d 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/empty.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/empty.h @@ -18,7 +18,11 @@ #include "../cstddef" #include "../initializer_list" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/erase_if_container.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/erase_if_container.h index 5416726df75..31160203a6c 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/erase_if_container.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/erase_if_container.h @@ -15,7 +15,11 @@ #include <__config> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/front_insert_iterator.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/front_insert_iterator.h index bfb06cbb358..0fdde41a2db 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/front_insert_iterator.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/front_insert_iterator.h @@ -21,7 +21,11 @@ #include "../__utility/move.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/incrementable_traits.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/incrementable_traits.h index a4c8ad78c1e..be3c3488923 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/incrementable_traits.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/incrementable_traits.h @@ -27,7 +27,11 @@ #include "../__utility/declval.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/indirectly_comparable.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/indirectly_comparable.h index 24eba6dcf5b..f787950ca67 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/indirectly_comparable.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/indirectly_comparable.h @@ -19,7 +19,11 @@ #include "../__iterator/concepts.h" #include "../__iterator/projected.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/insert_iterator.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/insert_iterator.h index 86743e0a74e..f0b3716a96f 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/insert_iterator.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/insert_iterator.h @@ -21,7 +21,11 @@ #include "../__utility/move.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/istream_iterator.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/istream_iterator.h index 90e1fd627bb..6e97e0aa71b 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/istream_iterator.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/istream_iterator.h @@ -20,7 +20,11 @@ #include "../cstddef" #include "../iosfwd" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/istreambuf_iterator.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/istreambuf_iterator.h index 6ab48d4c1d3..63a4845b9b3 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/istreambuf_iterator.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/istreambuf_iterator.h @@ -19,7 +19,11 @@ #include "../__iterator/iterator_traits.h" #include "../iosfwd" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/iter_move.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/iter_move.h index 09915768ee8..6b326cf8c3e 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/iter_move.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/iter_move.h @@ -24,7 +24,11 @@ #include "../__utility/forward.h" #include "../__utility/move.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if defined(__clang__) #pragma clang diagnostic push diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/iter_swap.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/iter_swap.h index ce3009b74e3..8bc0c8dbe05 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/iter_swap.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/iter_swap.h @@ -24,7 +24,11 @@ #include "../__utility/forward.h" #include "../__utility/move.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if _LIBCUDACXX_STD_VER > 14 diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/iterator.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/iterator.h index 6377b37ca50..f9289e79da6 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/iterator.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/iterator.h @@ -17,7 +17,11 @@ #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/iterator_traits.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/iterator_traits.h index ac8b243d431..4b5340d0353 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/iterator_traits.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/iterator_traits.h @@ -32,7 +32,11 @@ #include "../__type_traits/void_t.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/mergeable.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/mergeable.h index 428b3526840..1af14cf573a 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/mergeable.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/mergeable.h @@ -20,7 +20,11 @@ #include "../__iterator/concepts.h" #include "../__iterator/projected.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/move_iterator.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/move_iterator.h index cb1c2f7db38..91813072c13 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/move_iterator.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/move_iterator.h @@ -22,7 +22,11 @@ #include "../__type_traits/remove_reference.h" #include "../__utility/move.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/move_sentinel.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/move_sentinel.h index a4b8ea90f71..56530cdce9b 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/move_sentinel.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/move_sentinel.h @@ -19,7 +19,11 @@ #include "../__concepts/semiregular.h" #include "../__utility/move.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if _LIBCUDACXX_STD_VER > 14 diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/next.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/next.h index 348aedbebd0..ef24e788a0f 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/next.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/next.h @@ -20,7 +20,11 @@ #include "../__iterator/iterator_traits.h" #include "../__type_traits/enable_if.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/ostream_iterator.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/ostream_iterator.h index 191ec4c927f..6bd59d3ce5e 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/ostream_iterator.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/ostream_iterator.h @@ -21,7 +21,11 @@ #include "../cstddef" #include "../iosfwd" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/ostreambuf_iterator.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/ostreambuf_iterator.h index a562c789b37..99d2222de7a 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/ostreambuf_iterator.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/ostreambuf_iterator.h @@ -20,7 +20,11 @@ #include "../cstddef" #include "../iosfwd" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/permutable.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/permutable.h index 9a6e94fb26d..3c5a0eb4ff5 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/permutable.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/permutable.h @@ -18,7 +18,11 @@ #include "../__iterator/concepts.h" #include "../__iterator/iter_swap.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/prev.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/prev.h index 1a32440c3d7..63deb9faa76 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/prev.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/prev.h @@ -20,7 +20,11 @@ #include "../__iterator/iterator_traits.h" #include "../__type_traits/enable_if.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/projected.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/projected.h index 3abedbc8684..c19a22405a4 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/projected.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/projected.h @@ -19,7 +19,11 @@ #include "../__type_traits/enable_if.h" #include "../__type_traits/remove_cvref.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/readable_traits.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/readable_traits.h index ffe52e50847..fb540ace1c9 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/readable_traits.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/readable_traits.h @@ -27,7 +27,11 @@ #include "../__type_traits/remove_extent.h" #include "../__type_traits/void_t.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/reverse_access.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/reverse_access.h index 5d89609c267..d68adaed755 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/reverse_access.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/reverse_access.h @@ -19,7 +19,11 @@ #include "../cstddef" #include "../initializer_list" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/reverse_iterator.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/reverse_iterator.h index 30a54180ce3..ba68afb5215 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/reverse_iterator.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/reverse_iterator.h @@ -20,7 +20,11 @@ #include "../__memory/addressof.h" #include "../__type_traits/void_t.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/size.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/size.h index 6aebe792f1e..aca8f78ac95 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/size.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/size.h @@ -19,7 +19,11 @@ #include "../__type_traits/make_signed.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/sortable.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/sortable.h index a11deaebf31..135954960f3 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/sortable.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/sortable.h @@ -21,7 +21,11 @@ #include "../__iterator/permutable.h" #include "../__iterator/projected.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/unreachable_sentinel.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/unreachable_sentinel.h index b2c9837bf02..46cb67acd2c 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/unreachable_sentinel.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/unreachable_sentinel.h @@ -18,7 +18,11 @@ #include "../__iterator/concepts.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if _LIBCUDACXX_STD_VER > 14 diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/wrap_iter.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/wrap_iter.h index 410f32a4988..5375661e814 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/wrap_iter.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__iterator/wrap_iter.h @@ -23,7 +23,11 @@ #include "../__type_traits/is_convertible.h" #include "../__type_traits/is_trivially_copy_assignable.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__locale b/libcudacxx/include/cuda/std/detail/libcxx/include/__locale index 46b707230e3..c8fc12ba5ec 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__locale +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__locale @@ -42,7 +42,11 @@ # include #endif +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/compressed_pair.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/compressed_pair.h index 9322a003608..6c7cb6fa976 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/compressed_pair.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/compressed_pair.h @@ -55,7 +55,11 @@ #include "../__type_traits/enable_if.h" #include "../__type_traits/is_empty.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/default_accessor.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/default_accessor.h index b40b538417f..52a3a88a93b 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/default_accessor.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/default_accessor.h @@ -52,7 +52,11 @@ #include "../__type_traits/is_convertible.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/extents.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/extents.h index 70bfc6a5abe..707438e643c 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/extents.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/extents.h @@ -64,7 +64,11 @@ #include "../cstddef" #include "../span" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if defined(_LIBCUDACXX_PUSH_MACROS) _LIBCUDACXX_PUSH_MACROS diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/full_extent_t.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/full_extent_t.h index af1b63430a8..45d9b45e179 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/full_extent_t.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/full_extent_t.h @@ -50,7 +50,11 @@ #include "../__mdspan/macros.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/layout_left.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/layout_left.h index 53437b5593c..cc70c3d9634 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/layout_left.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/layout_left.h @@ -58,7 +58,11 @@ #include "../__utility/integer_sequence.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/layout_right.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/layout_right.h index 5304487bd86..a7c037b317f 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/layout_right.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/layout_right.h @@ -58,7 +58,11 @@ #include "../__utility/integer_sequence.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/layout_stride.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/layout_stride.h index 1219686ba77..f7ab6b88546 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/layout_stride.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/layout_stride.h @@ -70,7 +70,11 @@ #include "../numeric" #include "../span" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/macros.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/macros.h index bff621b73e1..7bad432c40f 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/macros.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/macros.h @@ -55,7 +55,11 @@ #include "../__type_traits/remove_reference.h" #include "../__utility/declval.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if _LIBCUDACXX_STD_VER > 11 diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/maybe_static_value.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/maybe_static_value.h index 9c49e868a57..0070e063a35 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/maybe_static_value.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/maybe_static_value.h @@ -54,7 +54,11 @@ #include "../__mdspan/no_unique_address.h" #endif +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // This is only needed for the non-standard-layout version of partially // static array. diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/mdspan.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/mdspan.h index ee9401c2c6f..19f84739cd7 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/mdspan.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/mdspan.h @@ -69,7 +69,11 @@ #include "../array" #include "../span" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/no_unique_address.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/no_unique_address.h index 0eedae4f8f4..4d071531b89 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/no_unique_address.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/no_unique_address.h @@ -54,7 +54,11 @@ #include "../__type_traits/is_trivially_destructible.h" #include "../__utility/move.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/standard_layout_static_array.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/standard_layout_static_array.h index 07e3d96bcae..f58f2dfa394 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/standard_layout_static_array.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/standard_layout_static_array.h @@ -60,7 +60,11 @@ #include "../cstddef" #include "../span" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/static_array.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/static_array.h index bcf245b1a4c..ed707f69d12 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/static_array.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/static_array.h @@ -58,7 +58,11 @@ #include "../array" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if !__MDSPAN_PRESERVE_STANDARD_LAYOUT diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/submdspan.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/submdspan.h index dd30cb975a0..60071147ba2 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/submdspan.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/submdspan.h @@ -67,7 +67,11 @@ #include "../__utility/pair.h" #include "../tuple" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/type_list.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/type_list.h index ea6f0325432..10ca0c3bc73 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/type_list.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__mdspan/type_list.h @@ -51,7 +51,11 @@ #include "../__mdspan/macros.h" #include "../__utility/integer_sequence.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__memory/addressof.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__memory/addressof.h index a2c294c0dd6..93e6b0c8971 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__memory/addressof.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__memory/addressof.h @@ -15,7 +15,11 @@ #include <__config> #endif //__cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__memory/construct_at.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__memory/construct_at.h index b4d82b8f463..9171ba2fffe 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__memory/construct_at.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__memory/construct_at.h @@ -27,7 +27,11 @@ #include "../__utility/forward.h" #include "../__utility/move.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #ifdef _LIBCUDACXX_COMPILER_CLANG_CUDA #include diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__memory/pointer_traits.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__memory/pointer_traits.h index 377585926b3..781c629ef71 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__memory/pointer_traits.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__memory/pointer_traits.h @@ -27,7 +27,11 @@ #include "../__utility/declval.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__memory/voidify.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__memory/voidify.h index d42c469060a..9b7ffb135f8 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__memory/voidify.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__memory/voidify.h @@ -17,7 +17,11 @@ #include "../__memory/addressof.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__mutex_base b/libcudacxx/include/cuda/std/detail/libcxx/include/__mutex_base index 5e1ee57cbf7..e09afba6848 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__mutex_base +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__mutex_base @@ -17,7 +17,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_PUSH_MACROS #include <__undef_macros> diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__node_handle b/libcudacxx/include/cuda/std/detail/libcxx/include/__node_handle index 61f3b5c5790..d6c3c35ec0b 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__node_handle +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__node_handle @@ -15,7 +15,11 @@ #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_PUSH_MACROS #include <__undef_macros> diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__nullptr b/libcudacxx/include/cuda/std/detail/libcxx/include/__nullptr index ba4840ecacc..0fe93766dcc 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__nullptr +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__nullptr @@ -12,7 +12,11 @@ #include <__config> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #ifdef _LIBCUDACXX_HAS_NO_NULLPTR diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__split_buffer b/libcudacxx/include/cuda/std/detail/libcxx/include/__split_buffer index b954b4299f9..b4d861cd3b4 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__split_buffer +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__split_buffer @@ -6,7 +6,11 @@ #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_PUSH_MACROS #include <__undef_macros> diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__sso_allocator b/libcudacxx/include/cuda/std/detail/libcxx/include/__sso_allocator index 1d9d07c6d6a..05479a6807f 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__sso_allocator +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__sso_allocator @@ -14,7 +14,11 @@ #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__std_stream b/libcudacxx/include/cuda/std/detail/libcxx/include/__std_stream index 3d2df213652..603051531f9 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__std_stream +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__std_stream @@ -16,7 +16,11 @@ #include <__locale> #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_PUSH_MACROS #include <__undef_macros> diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__string b/libcudacxx/include/cuda/std/detail/libcxx/include/__string index 15383e7ab56..558dd690d80 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__string +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__string @@ -60,7 +60,11 @@ template <> struct char_traits; // c++20 #include "__assert" // all public C++ headers provide the assertion handler #include <__debug> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_PUSH_MACROS #include <__undef_macros> diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__threading_support b/libcudacxx/include/cuda/std/detail/libcxx/include/__threading_support index 31747110dd7..8a5b2c98af3 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__threading_support +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__threading_support @@ -27,7 +27,11 @@ #include <__pragma_push> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if defined(_LIBCUDACXX_HAS_THREAD_API_EXTERNAL) # ifndef __cuda_std__ diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__tree b/libcudacxx/include/cuda/std/detail/libcxx/include/__tree index 19e70e2518b..63b9963eeec 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__tree +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__tree @@ -16,7 +16,11 @@ #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_PUSH_MACROS #include <__undef_macros> diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__tuple_dir/apply_cv.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__tuple_dir/apply_cv.h index 954238c3989..48292d4bb27 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__tuple_dir/apply_cv.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__tuple_dir/apply_cv.h @@ -19,7 +19,11 @@ #include "../__type_traits/is_volatile.h" #include "../__type_traits/remove_reference.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__tuple_dir/make_tuple_types.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__tuple_dir/make_tuple_types.h index 32746af9e9d..e119fab819f 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__tuple_dir/make_tuple_types.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__tuple_dir/make_tuple_types.h @@ -25,7 +25,11 @@ #include "../__type_traits/remove_reference.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__tuple_dir/sfinae_helpers.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__tuple_dir/sfinae_helpers.h index e9e7b9d1ce6..c22f2065b55 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__tuple_dir/sfinae_helpers.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__tuple_dir/sfinae_helpers.h @@ -30,7 +30,11 @@ #include "../__type_traits/remove_reference.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__tuple_dir/tuple_element.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__tuple_dir/tuple_element.h index 28c9d8184d2..a0c64d9cd15 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__tuple_dir/tuple_element.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__tuple_dir/tuple_element.h @@ -21,7 +21,11 @@ #include "../__type_traits/add_volatile.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__tuple_dir/tuple_indices.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__tuple_dir/tuple_indices.h index f9b17e5c5af..350e8df0a65 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__tuple_dir/tuple_indices.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__tuple_dir/tuple_indices.h @@ -17,7 +17,11 @@ #include "../__utility/integer_sequence.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__tuple_dir/tuple_like.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__tuple_dir/tuple_like.h index 3bdf4dc25ca..566d49ada3d 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__tuple_dir/tuple_like.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__tuple_dir/tuple_like.h @@ -21,7 +21,11 @@ #include "../__type_traits/integral_constant.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__tuple_dir/tuple_size.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__tuple_dir/tuple_size.h index ad2b10a2820..85bf46d1945 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__tuple_dir/tuple_size.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__tuple_dir/tuple_size.h @@ -22,7 +22,11 @@ #include "../__type_traits/is_volatile.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__tuple_dir/tuple_types.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__tuple_dir/tuple_types.h index de5a29ef199..389cf889126 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__tuple_dir/tuple_types.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__tuple_dir/tuple_types.h @@ -14,7 +14,11 @@ # include <__config> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/add_const.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/add_const.h index d5f52415570..ab3dc037d62 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/add_const.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/add_const.h @@ -14,7 +14,11 @@ #include <__config> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/add_cv.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/add_cv.h index 90111469a61..24cf172c531 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/add_cv.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/add_cv.h @@ -14,7 +14,11 @@ #include <__config> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/add_lvalue_reference.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/add_lvalue_reference.h index 69a958189e9..10fc9c2878e 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/add_lvalue_reference.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/add_lvalue_reference.h @@ -16,7 +16,11 @@ #include "../__type_traits/is_referenceable.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/add_pointer.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/add_pointer.h index 48817c7db99..fba8cbb8425 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/add_pointer.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/add_pointer.h @@ -20,7 +20,11 @@ #include "../__type_traits/remove_cv.h" #include "../__type_traits/remove_reference.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/add_rvalue_reference.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/add_rvalue_reference.h index 189d2e2b710..d4273a04323 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/add_rvalue_reference.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/add_rvalue_reference.h @@ -16,7 +16,11 @@ #include "../__type_traits/is_referenceable.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/add_volatile.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/add_volatile.h index 4a7abab1e61..438806a1af2 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/add_volatile.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/add_volatile.h @@ -14,7 +14,11 @@ #include <__config> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/aligned_storage.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/aligned_storage.h index 519ff1bc8c4..dceabc43ec5 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/aligned_storage.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/aligned_storage.h @@ -19,7 +19,11 @@ #include "../__type_traits/type_list.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/aligned_union.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/aligned_union.h index 86641eadd97..f216765c95e 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/aligned_union.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/aligned_union.h @@ -18,7 +18,11 @@ #include "../__type_traits/integral_constant.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/alignment_of.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/alignment_of.h index 9b7ac0e410c..16b8e36cbbc 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/alignment_of.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/alignment_of.h @@ -17,7 +17,11 @@ #include "../__type_traits/integral_constant.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/apply_cv.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/apply_cv.h index bf584744813..14ca61f6433 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/apply_cv.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/apply_cv.h @@ -19,7 +19,11 @@ #include "../__type_traits/remove_reference.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/can_extract_key.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/can_extract_key.h index 9aae95f89ff..e0789f42a6b 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/can_extract_key.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/can_extract_key.h @@ -21,7 +21,11 @@ #include "../__type_traits/remove_const.h" #include "../__type_traits/remove_const_ref.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/common_reference.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/common_reference.h index 226a471be7d..812a21fbafb 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/common_reference.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/common_reference.h @@ -31,7 +31,11 @@ #include "../__type_traits/void_t.h" #include "../__utility/declval.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/common_type.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/common_type.h index a687dead3b9..270b411f9f4 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/common_type.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/common_type.h @@ -20,7 +20,11 @@ #include "../__type_traits/void_t.h" #include "../__utility/declval.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/conditional.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/conditional.h index e4ec64e1253..aa776667203 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/conditional.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/conditional.h @@ -14,7 +14,11 @@ #include <__config> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/conjunction.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/conjunction.h index ef84f7c3226..8c602450d37 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/conjunction.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/conjunction.h @@ -18,7 +18,11 @@ #include "../__type_traits/enable_if.h" #include "../__type_traits/integral_constant.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/copy_cv.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/copy_cv.h index 279e08bd827..75eb8644fcb 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/copy_cv.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/copy_cv.h @@ -18,7 +18,11 @@ #include "../__type_traits/add_cv.h" #include "../__type_traits/add_volatile.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/copy_cvref.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/copy_cvref.h index d9b0afd7fb3..8205dc3fe85 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/copy_cvref.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/copy_cvref.h @@ -18,7 +18,11 @@ #include "../__type_traits/add_rvalue_reference.h" #include "../__type_traits/copy_cv.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/decay.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/decay.h index dcd73cf86da..bb8d449a26d 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/decay.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/decay.h @@ -23,7 +23,11 @@ #include "../__type_traits/remove_extent.h" #include "../__type_traits/remove_reference.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/dependent_type.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/dependent_type.h index aae04b0f068..faca9d784f6 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/dependent_type.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/dependent_type.h @@ -14,7 +14,11 @@ #include <__config> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/disjunction.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/disjunction.h index 648f2db3da2..8cff53cf9a6 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/disjunction.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/disjunction.h @@ -16,7 +16,11 @@ #include "../__type_traits/integral_constant.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/enable_if.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/enable_if.h index 6c34069ae51..e3fe02bb277 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/enable_if.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/enable_if.h @@ -14,7 +14,11 @@ #include <__config> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/extent.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/extent.h index 282611177f4..7bbf6a9d42b 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/extent.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/extent.h @@ -18,7 +18,11 @@ #include "../__type_traits/integral_constant.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/has_unique_object_representation.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/has_unique_object_representation.h index a5f3e4fdc06..5f21ebd4b97 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/has_unique_object_representation.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/has_unique_object_representation.h @@ -18,7 +18,11 @@ #include "../__type_traits/remove_all_extents.h" #include "../__type_traits/remove_cv.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/has_virtual_destructor.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/has_virtual_destructor.h index 4ed7a92396c..9f62201263c 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/has_virtual_destructor.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/has_virtual_destructor.h @@ -16,7 +16,11 @@ #include "../__type_traits/integral_constant.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/integral_constant.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/integral_constant.h index b7a9994ae82..a008ca9642e 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/integral_constant.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/integral_constant.h @@ -14,7 +14,11 @@ #include <__config> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_abstract.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_abstract.h index f0f3118639e..53ee5a68238 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_abstract.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_abstract.h @@ -16,7 +16,11 @@ #include "../__type_traits/integral_constant.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_aggregate.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_aggregate.h index 0faa96aed78..84b515e80b1 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_aggregate.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_aggregate.h @@ -16,7 +16,11 @@ #include "../__type_traits/integral_constant.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_allocator.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_allocator.h index 71e3892f5f4..9e9cb2bf32b 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_allocator.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_allocator.h @@ -19,7 +19,11 @@ #include "../__utility/declval.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_arithmetic.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_arithmetic.h index d4c67aa2438..9e84dab5c19 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_arithmetic.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_arithmetic.h @@ -18,7 +18,11 @@ #include "../__type_traits/is_floating_point.h" #include "../__type_traits/is_integral.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_array.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_array.h index 424f0d71ebd..82b24fe3c3a 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_array.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_array.h @@ -17,7 +17,11 @@ #include "../__type_traits/integral_constant.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_assignable.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_assignable.h index d69ff6feb21..ba577332a45 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_assignable.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_assignable.h @@ -18,7 +18,11 @@ #include "../__type_traits/is_void.h" #include "../__utility/declval.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_base_of.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_base_of.h index 6de7c9f11e9..a6857826424 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_base_of.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_base_of.h @@ -16,7 +16,11 @@ #include "../__type_traits/integral_constant.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_bounded_array.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_bounded_array.h index e4cc5d7a3ae..694063647ef 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_bounded_array.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_bounded_array.h @@ -17,7 +17,11 @@ #include "../__type_traits/integral_constant.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_callable.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_callable.h index 3d7e832014f..6d03b6d2a98 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_callable.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_callable.h @@ -17,7 +17,11 @@ #include "../__type_traits/integral_constant.h" #include "../__utility/declval.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_char_like_type.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_char_like_type.h index dbb0d65323f..d49b17a5d42 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_char_like_type.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_char_like_type.h @@ -18,7 +18,11 @@ #include "../__type_traits/is_standard_layout.h" #include "../__type_traits/is_trivial.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_class.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_class.h index fb4badc0f27..703fc9c3bb0 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_class.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_class.h @@ -17,7 +17,11 @@ #include "../__type_traits/integral_constant.h" #include "../__type_traits/is_union.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_compound.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_compound.h index 8a2485060c4..d1e20ba3374 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_compound.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_compound.h @@ -17,7 +17,11 @@ #include "../__type_traits/integral_constant.h" #include "../__type_traits/is_fundamental.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_const.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_const.h index c9e7769451a..24f4687bd2e 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_const.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_const.h @@ -16,7 +16,11 @@ #include "../__type_traits/integral_constant.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_constant_evaluated.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_constant_evaluated.h index 0afdd2dbf32..3b91dabd176 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_constant_evaluated.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_constant_evaluated.h @@ -14,7 +14,11 @@ #include <__config> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_constructible.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_constructible.h index 28e68cf8ff4..0f3b41dac1b 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_constructible.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_constructible.h @@ -26,7 +26,11 @@ #include "../__type_traits/remove_cvref.h" #include "../__utility/declval.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_convertible.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_convertible.h index fbb184a5523..080928beefc 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_convertible.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_convertible.h @@ -23,7 +23,11 @@ #include "../__utility/declval.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_copy_assignable.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_copy_assignable.h index f575458b3a9..4acf903e415 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_copy_assignable.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_copy_assignable.h @@ -18,7 +18,11 @@ #include "../__type_traits/add_lvalue_reference.h" #include "../__type_traits/is_assignable.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_copy_constructible.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_copy_constructible.h index adf111db4cc..37cb709f50d 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_copy_constructible.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_copy_constructible.h @@ -18,7 +18,11 @@ #include "../__type_traits/add_lvalue_reference.h" #include "../__type_traits/is_constructible.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_core_convertible.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_core_convertible.h index bc9d028351d..f4ab6b26c27 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_core_convertible.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_core_convertible.h @@ -16,7 +16,11 @@ #include "../__type_traits/integral_constant.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_default_constructible.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_default_constructible.h index 921339cfaed..988b1f9b6ae 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_default_constructible.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_default_constructible.h @@ -16,7 +16,11 @@ #include "../__type_traits/is_constructible.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_destructible.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_destructible.h index 0dd002aac92..59af3f3ab6e 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_destructible.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_destructible.h @@ -20,7 +20,11 @@ #include "../__type_traits/remove_all_extents.h" #include "../__utility/declval.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_empty.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_empty.h index 3311e589ea8..54f99c4f5f1 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_empty.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_empty.h @@ -16,7 +16,11 @@ #include "../__type_traits/integral_constant.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_enum.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_enum.h index e148f2b6d6d..9e7f1482311 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_enum.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_enum.h @@ -26,7 +26,11 @@ #include "../__type_traits/is_union.h" #include "../__type_traits/is_void.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_final.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_final.h index e534a58952e..42056c53fff 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_final.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_final.h @@ -16,7 +16,11 @@ #include "../__type_traits/integral_constant.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_floating_point.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_floating_point.h index 7119d6038a6..fee4d040d69 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_floating_point.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_floating_point.h @@ -17,7 +17,11 @@ #include "../__type_traits/integral_constant.h" #include "../__type_traits/remove_cv.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_function.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_function.h index e2b27296530..17de151f89f 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_function.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_function.h @@ -18,7 +18,11 @@ #include "../__type_traits/is_const.h" #include "../__type_traits/is_reference.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_fundamental.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_fundamental.h index 61e0b3c84f6..c2ff42c8ab6 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_fundamental.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_fundamental.h @@ -19,7 +19,11 @@ #include "../__type_traits/is_null_pointer.h" #include "../__type_traits/is_void.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_implicitly_default_constructible.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_implicitly_default_constructible.h index 96e2dfdb32b..0564e5b05e4 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_implicitly_default_constructible.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_implicitly_default_constructible.h @@ -17,7 +17,11 @@ #include "../__type_traits/integral_constant.h" #include "../__type_traits/is_default_constructible.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_integral.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_integral.h index e3d1c58c4ff..0c5303be6f6 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_integral.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_integral.h @@ -17,7 +17,11 @@ #include "../__type_traits/integral_constant.h" #include "../__type_traits/remove_cv.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_literal_type.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_literal_type.h index 0aaed4a840e..25f1675d5b8 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_literal_type.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_literal_type.h @@ -19,7 +19,11 @@ #include "../__type_traits/is_scalar.h" #include "../__type_traits/remove_all_extents.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_member_function_pointer.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_member_function_pointer.h index f6841c939da..eee3802f843 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_member_function_pointer.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_member_function_pointer.h @@ -19,7 +19,11 @@ #include "../__type_traits/remove_cv.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_member_object_pointer.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_member_object_pointer.h index 9b1e89ce831..642df0fe977 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_member_object_pointer.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_member_object_pointer.h @@ -18,7 +18,11 @@ #include "../__type_traits/is_member_function_pointer.h" #include "../__type_traits/remove_cv.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_member_pointer.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_member_pointer.h index c83d1e31ef0..7023e637cb7 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_member_pointer.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_member_pointer.h @@ -18,7 +18,11 @@ #include "../__type_traits/is_member_function_pointer.h" #include "../__type_traits/remove_cv.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_move_assignable.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_move_assignable.h index 765f6a798b6..5b049e5c601 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_move_assignable.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_move_assignable.h @@ -18,7 +18,11 @@ #include "../__type_traits/add_rvalue_reference.h" #include "../__type_traits/is_assignable.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_move_constructible.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_move_constructible.h index 3590f375e0e..6d58e0b82bf 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_move_constructible.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_move_constructible.h @@ -18,7 +18,11 @@ #include "../__type_traits/add_rvalue_reference.h" #include "../__type_traits/is_constructible.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_assignable.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_assignable.h index 7608b7e5e49..97a5f766a45 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_assignable.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_assignable.h @@ -19,7 +19,11 @@ #include "../__type_traits/is_scalar.h" #include "../__utility/declval.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_constructible.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_constructible.h index 5baec6bcced..8541a4bef91 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_constructible.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_constructible.h @@ -19,7 +19,11 @@ #include "../__type_traits/is_scalar.h" #include "../__utility/declval.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_convertible.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_convertible.h index 28362e90608..bbd398dad7b 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_convertible.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_convertible.h @@ -22,7 +22,11 @@ #include "../__type_traits/lazy.h" #include "../__utility/declval.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_copy_assignable.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_copy_assignable.h index b22ea2cf7b1..68bf4cef285 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_copy_assignable.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_copy_assignable.h @@ -18,7 +18,11 @@ #include "../__type_traits/add_lvalue_reference.h" #include "../__type_traits/is_nothrow_assignable.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_copy_constructible.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_copy_constructible.h index 2ad3b5da88a..3f5302834fc 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_copy_constructible.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_copy_constructible.h @@ -18,7 +18,11 @@ #include "../__type_traits/add_lvalue_reference.h" #include "../__type_traits/is_nothrow_constructible.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_default_constructible.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_default_constructible.h index ee195399849..9d407025adf 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_default_constructible.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_default_constructible.h @@ -16,7 +16,11 @@ #include "../__type_traits/is_nothrow_constructible.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_destructible.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_destructible.h index b5d2dd79025..e8f843181dd 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_destructible.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_destructible.h @@ -22,7 +22,11 @@ #include "../__utility/declval.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_move_assignable.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_move_assignable.h index 75bfaefdf54..a2d3caaf934 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_move_assignable.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_move_assignable.h @@ -18,7 +18,11 @@ #include "../__type_traits/add_rvalue_reference.h" #include "../__type_traits/is_nothrow_assignable.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_move_constructible.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_move_constructible.h index 188a8ee591b..57cf7fabcd6 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_move_constructible.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_nothrow_move_constructible.h @@ -17,7 +17,11 @@ #include "../__type_traits/add_rvalue_reference.h" #include "../__type_traits/is_nothrow_constructible.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_null_pointer.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_null_pointer.h index cc7b6d2b80f..fb9874052fc 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_null_pointer.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_null_pointer.h @@ -18,7 +18,11 @@ #include "../__type_traits/remove_cv.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_object.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_object.h index 1ced0b55e40..7be9b3b7afd 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_object.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_object.h @@ -20,7 +20,11 @@ #include "../__type_traits/is_scalar.h" #include "../__type_traits/is_union.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_pod.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_pod.h index 11634fee8b8..5ec7f7bd39d 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_pod.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_pod.h @@ -21,7 +21,11 @@ #include "../__type_traits/is_trivially_destructible.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_pointer.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_pointer.h index df8ac4f81fd..2eff37ba0fc 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_pointer.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_pointer.h @@ -17,7 +17,11 @@ #include "../__type_traits/integral_constant.h" #include "../__type_traits/remove_cv.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_polymorphic.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_polymorphic.h index 3e96601d39a..7fa80ec8467 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_polymorphic.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_polymorphic.h @@ -17,7 +17,11 @@ #include "../__type_traits/enable_if.h" #include "../__type_traits/integral_constant.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_primary_template.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_primary_template.h index cf04bd5bd29..bdff70f97da 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_primary_template.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_primary_template.h @@ -19,7 +19,11 @@ #include "../__type_traits/is_valid_expansion.h" #include "../__type_traits/void_t.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_reference.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_reference.h index bb2dc3d7d18..3b79fb89c3e 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_reference.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_reference.h @@ -16,7 +16,11 @@ #include "../__type_traits/integral_constant.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_reference_wrapper.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_reference_wrapper.h index a550885548a..f2d73a359c9 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_reference_wrapper.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_reference_wrapper.h @@ -17,7 +17,11 @@ #include "../__type_traits/integral_constant.h" #include "../__type_traits/remove_cv.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_referenceable.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_referenceable.h index c2775e91c46..8d61a50c59e 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_referenceable.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_referenceable.h @@ -17,7 +17,11 @@ #include "../__type_traits/integral_constant.h" #include "../__type_traits/is_same.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_same.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_same.h index c38ee0925bb..ec24fa50ef9 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_same.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_same.h @@ -16,7 +16,11 @@ #include "../__type_traits/integral_constant.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_scalar.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_scalar.h index d3100897f6d..ee43b1b3269 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_scalar.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_scalar.h @@ -22,7 +22,11 @@ #include "../__type_traits/is_pointer.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_scoped_enum.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_scoped_enum.h index 532210db788..94a530b11f5 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_scoped_enum.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_scoped_enum.h @@ -19,7 +19,11 @@ #include "../__type_traits/is_enum.h" #include "../__type_traits/underlying_type.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_signed.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_signed.h index 1b8d8e1cf25..e7f2c1543f2 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_signed.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_signed.h @@ -17,7 +17,11 @@ #include "../__type_traits/integral_constant.h" #include "../__type_traits/is_arithmetic.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_signed_integer.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_signed_integer.h index 94a27b34503..bbaba0140b2 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_signed_integer.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_signed_integer.h @@ -16,7 +16,11 @@ #include "../__type_traits/integral_constant.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_standard_layout.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_standard_layout.h index 3ac82c1ffab..bf367af2e6d 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_standard_layout.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_standard_layout.h @@ -17,7 +17,11 @@ #include "../__type_traits/integral_constant.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_swappable.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_swappable.h index c7ea533824e..79a875993d8 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_swappable.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_swappable.h @@ -28,7 +28,11 @@ #include "../__utility/declval.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivial.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivial.h index 5c87e17ed01..0f79032f701 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivial.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivial.h @@ -18,7 +18,11 @@ #include "../__type_traits/is_trivially_copyable.h" #include "../__type_traits/is_trivially_default_constructible.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_assignable.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_assignable.h index 09b2bc22f77..5adb13e4878 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_assignable.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_assignable.h @@ -17,7 +17,11 @@ #include "../__type_traits/integral_constant.h" #include "../__type_traits/is_scalar.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_constructible.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_constructible.h index 8d036a942a7..0e7ab17cdb4 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_constructible.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_constructible.h @@ -17,7 +17,11 @@ #include "../__type_traits/integral_constant.h" #include "../__type_traits/is_scalar.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_copy_assignable.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_copy_assignable.h index 9de79d165d6..7af35798147 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_copy_assignable.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_copy_assignable.h @@ -18,7 +18,11 @@ #include "../__type_traits/add_lvalue_reference.h" #include "../__type_traits/is_trivially_assignable.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_copy_constructible.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_copy_constructible.h index 56844b6cdba..c659dc65b78 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_copy_constructible.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_copy_constructible.h @@ -18,7 +18,11 @@ #include "../__type_traits/add_lvalue_reference.h" #include "../__type_traits/is_trivially_constructible.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_copyable.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_copyable.h index 3f65ba7301d..213eaeee173 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_copyable.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_copyable.h @@ -18,7 +18,11 @@ #include "../__type_traits/is_scalar.h" #include "../__type_traits/remove_all_extents.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_default_constructible.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_default_constructible.h index 0763abfc537..844b14b198d 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_default_constructible.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_default_constructible.h @@ -16,7 +16,11 @@ #include "../__type_traits/is_trivially_constructible.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_destructible.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_destructible.h index d3611eb12ae..45b718791bd 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_destructible.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_destructible.h @@ -20,7 +20,11 @@ #include "../__type_traits/is_scalar.h" #include "../__type_traits/remove_all_extents.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_move_assignable.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_move_assignable.h index b4c83c7e32f..30d002e79e9 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_move_assignable.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_move_assignable.h @@ -18,7 +18,11 @@ #include "../__type_traits/add_rvalue_reference.h" #include "../__type_traits/is_trivially_assignable.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_move_constructible.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_move_constructible.h index 63c135524df..99ecf5f13d7 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_move_constructible.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_trivially_move_constructible.h @@ -17,7 +17,11 @@ #include "../__type_traits/add_rvalue_reference.h" #include "../__type_traits/is_trivially_constructible.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_unbounded_array.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_unbounded_array.h index 8aa17088711..28563057dae 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_unbounded_array.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_unbounded_array.h @@ -16,7 +16,11 @@ #include "../__type_traits/integral_constant.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_union.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_union.h index 4f1af0ff2b8..655f4984d32 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_union.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_union.h @@ -17,7 +17,11 @@ #include "../__type_traits/integral_constant.h" #include "../__type_traits/remove_cv.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_unsigned.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_unsigned.h index c59d9a97515..551ba0b14d5 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_unsigned.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_unsigned.h @@ -18,7 +18,11 @@ #include "../__type_traits/is_arithmetic.h" #include "../__type_traits/is_integral.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_unsigned_integer.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_unsigned_integer.h index e7460e9b058..5cf645c9572 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_unsigned_integer.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_unsigned_integer.h @@ -16,7 +16,11 @@ #include "../__type_traits/integral_constant.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_valid_expansion.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_valid_expansion.h index d54f478a599..f7ce4fb7f61 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_valid_expansion.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_valid_expansion.h @@ -16,7 +16,11 @@ #include "../__type_traits/integral_constant.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_void.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_void.h index d29337e417c..ff8987f5949 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_void.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_void.h @@ -18,7 +18,11 @@ #include "../__type_traits/is_same.h" #include "../__type_traits/remove_cvref.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_volatile.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_volatile.h index 0315b77dc52..b0c8698089e 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_volatile.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/is_volatile.h @@ -16,7 +16,11 @@ #include "../__type_traits/integral_constant.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/lazy.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/lazy.h index b5eb1c0b883..9982483380f 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/lazy.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/lazy.h @@ -14,7 +14,11 @@ #include <__config> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/make_32_64_or_128_bit.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/make_32_64_or_128_bit.h index 6732ce03b9b..90f0efe55ac 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/make_32_64_or_128_bit.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/make_32_64_or_128_bit.h @@ -21,7 +21,11 @@ #include "../__type_traits/make_unsigned.h" #include "../cstdint" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/make_const_lvalue_ref.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/make_const_lvalue_ref.h index a5b57861659..30248365aa2 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/make_const_lvalue_ref.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/make_const_lvalue_ref.h @@ -16,7 +16,11 @@ #include "../__type_traits/remove_reference.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/make_signed.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/make_signed.h index 6afe2940e0b..eee78f5a504 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/make_signed.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/make_signed.h @@ -21,7 +21,11 @@ #include "../__type_traits/remove_cv.h" #include "../__type_traits/type_list.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/make_unsigned.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/make_unsigned.h index ac6a6e7f692..e4a8648f8eb 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/make_unsigned.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/make_unsigned.h @@ -24,7 +24,11 @@ #include "../__type_traits/type_list.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/maybe_const.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/maybe_const.h index 2eb16954a85..654d28b8646 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/maybe_const.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/maybe_const.h @@ -16,7 +16,11 @@ #include "../__type_traits/conditional.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/nat.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/nat.h index 6e180f23307..fda3b1b17f8 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/nat.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/nat.h @@ -14,7 +14,11 @@ #include <__config> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/negation.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/negation.h index 16171c2ff95..dde1f3ec12a 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/negation.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/negation.h @@ -16,7 +16,11 @@ #include "../__type_traits/integral_constant.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/promote.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/promote.h index 1e500e37928..4dcde79c22b 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/promote.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/promote.h @@ -19,7 +19,11 @@ #include "../__utility/declval.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/rank.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/rank.h index 129b8c557ab..41e60e8077a 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/rank.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/rank.h @@ -17,7 +17,11 @@ #include "../__type_traits/integral_constant.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_all_extents.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_all_extents.h index 6f288949e6d..03b07e79e4b 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_all_extents.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_all_extents.h @@ -16,7 +16,11 @@ #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_const.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_const.h index 03842a57244..e72135dfc1d 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_const.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_const.h @@ -14,7 +14,11 @@ #include <__config> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_const_ref.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_const_ref.h index 000ca222c58..7b9cb321f3b 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_const_ref.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_const_ref.h @@ -17,7 +17,11 @@ #include "../__type_traits/remove_const.h" #include "../__type_traits/remove_reference.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_cv.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_cv.h index a1e02ca5706..d858bcc8b8a 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_cv.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_cv.h @@ -17,7 +17,11 @@ #include "../__type_traits/remove_const.h" #include "../__type_traits/remove_volatile.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_cvref.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_cvref.h index ce88ceb7bb4..4b946579590 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_cvref.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_cvref.h @@ -18,7 +18,11 @@ #include "../__type_traits/remove_cv.h" #include "../__type_traits/remove_reference.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_extent.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_extent.h index 6005164cca5..1cf6f3eb93b 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_extent.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_extent.h @@ -16,7 +16,11 @@ #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_pointer.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_pointer.h index e37e0c66263..d152a362bc7 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_pointer.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_pointer.h @@ -14,7 +14,11 @@ #include <__config> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_reference.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_reference.h index 91dfbb7d39d..0e800ba4702 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_reference.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_reference.h @@ -16,7 +16,11 @@ #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_volatile.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_volatile.h index d645c7ef361..1ccb3ff08b5 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_volatile.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/remove_volatile.h @@ -14,7 +14,11 @@ #include <__config> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/result_of.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/result_of.h index afb14cc9fd7..58378ff2938 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/result_of.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/result_of.h @@ -16,7 +16,11 @@ #include "../__functional/invoke.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/type_identity.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/type_identity.h index c450ea2a915..125fff289c6 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/type_identity.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/type_identity.h @@ -14,7 +14,11 @@ #include <__config> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/type_list.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/type_list.h index 292487720f8..3e287075900 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/type_list.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/type_list.h @@ -16,7 +16,11 @@ #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/underlying_type.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/underlying_type.h index 78c89fa32e5..ac083427537 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/underlying_type.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/underlying_type.h @@ -16,7 +16,11 @@ #include "../__type_traits/is_enum.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/void_t.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/void_t.h index 28df375ab97..4aeb40f0b85 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/void_t.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__type_traits/void_t.h @@ -14,7 +14,11 @@ #include <__config> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/as_const.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/as_const.h index e50b2808059..1fd69cfda50 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/as_const.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/as_const.h @@ -16,7 +16,11 @@ #include "../__type_traits/add_const.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/auto_cast.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/auto_cast.h index 08074c09b49..3712bd10d8c 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/auto_cast.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/auto_cast.h @@ -17,7 +17,11 @@ #include "../__type_traits/decay.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #define _LIBCUDACXX_AUTO_CAST(expr) static_cast<_CUDA_VSTD::decay_t>(expr) diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/cmp.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/cmp.h index cbe9fefcbff..4f48dd02463 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/cmp.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/cmp.h @@ -27,7 +27,11 @@ #include <__pragma_push> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/convert_to_integral.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/convert_to_integral.h index 54859516e08..7f4974b71b5 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/convert_to_integral.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/convert_to_integral.h @@ -19,7 +19,11 @@ #include "../__type_traits/is_floating_point.h" #include "../__type_traits/underlying_type.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/declval.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/declval.h index 3af78838b00..e7be76bb445 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/declval.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/declval.h @@ -14,7 +14,11 @@ #include <__config> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/exception_guard.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/exception_guard.h index 1e139ef22a0..94a84e71b08 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/exception_guard.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/exception_guard.h @@ -19,7 +19,11 @@ #include "../__utility/exchange.h" #include "../__utility/move.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/exchange.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/exchange.h index 07ffe7368f9..883b5330b4b 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/exchange.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/exchange.h @@ -19,7 +19,11 @@ #include "../__utility/forward.h" #include "../__utility/move.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/forward.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/forward.h index a0cfb1210e7..0b093d94cd3 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/forward.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/forward.h @@ -19,7 +19,11 @@ #include "../__type_traits/remove_reference.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/forward_like.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/forward_like.h index 2c340f62bb9..0a65b7e37d2 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/forward_like.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/forward_like.h @@ -20,7 +20,11 @@ #include "../__type_traits/is_reference.h" #include "../__type_traits/remove_reference.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/in_place.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/in_place.h index b04d9243186..e7648ec8dbe 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/in_place.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/in_place.h @@ -18,7 +18,11 @@ #include "../__type_traits/remove_reference.h" #include "../__type_traits/remove_cvref.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/integer_sequence.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/integer_sequence.h index c3040715851..e9ee2d7e4bf 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/integer_sequence.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/integer_sequence.h @@ -16,7 +16,11 @@ #include "../__type_traits/is_integral.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/move.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/move.h index 9eea1a9e929..6726e4aaaa6 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/move.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/move.h @@ -20,7 +20,11 @@ #include "../__type_traits/is_nothrow_move_constructible.h" #include "../__type_traits/remove_reference.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/pair.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/pair.h index edeb8b7860a..718aa29f887 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/pair.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/pair.h @@ -59,7 +59,11 @@ #include #endif // defined(__cuda_std__) && !defined(__CUDACC_RTC__) +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/piecewise_construct.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/piecewise_construct.h index 789f0fa8127..fc503f819b3 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/piecewise_construct.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/piecewise_construct.h @@ -14,7 +14,11 @@ #include <__config> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/priority_tag.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/priority_tag.h index e8b7ee915ab..4c636309484 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/priority_tag.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/priority_tag.h @@ -16,7 +16,11 @@ #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/rel_ops.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/rel_ops.h index 1ac2120b2a1..aed8fc43d43 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/rel_ops.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/rel_ops.h @@ -17,7 +17,11 @@ #include "../__utility/forward.h" #include "../__utility/move.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/swap.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/swap.h index 01126bf72e3..cc5ed96de7b 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/swap.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/swap.h @@ -23,7 +23,11 @@ #include "../__utility/move.h" #include "../cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/to_underlying.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/to_underlying.h index ed071b5b417..bd91e060165 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/to_underlying.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/to_underlying.h @@ -17,7 +17,11 @@ #include "../__type_traits/underlying_type.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/unreachable.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/unreachable.h index 424db293bec..5ef2e996f00 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/unreachable.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__utility/unreachable.h @@ -16,7 +16,11 @@ #include "../cstdlib" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__verbose_abort b/libcudacxx/include/cuda/std/detail/libcxx/include/__verbose_abort index 68b6238b997..862ecd08789 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__verbose_abort +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__verbose_abort @@ -17,7 +17,11 @@ #include "__availability" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // Provide a default implementation of __libcpp_verbose_abort if we know that neither the built // library nor the user is providing one. Otherwise, just declare it and use the one from the diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/algorithm b/libcudacxx/include/cuda/std/detail/libcxx/include/algorithm index f9f3d7c2b70..503abf21fa6 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/algorithm +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/algorithm @@ -668,7 +668,11 @@ template #include <__pragma_push> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/any b/libcudacxx/include/cuda/std/detail/libcxx/include/any index c2dc3ace762..83ab42b7456 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/any +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/any @@ -88,7 +88,11 @@ namespace std { #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC namespace std { class _LIBCUDACXX_EXCEPTION_ABI _LIBCUDACXX_AVAILABILITY_BAD_ANY_CAST bad_any_cast : public bad_cast diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/array b/libcudacxx/include/cuda/std/detail/libcxx/include/array index fbcab0af77e..05839350cc5 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/array +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/array @@ -149,7 +149,11 @@ template const T&& get(const array&&) noexce #include "__tuple_dir/tuple_element.h" #include "__tuple_dir/tuple_size.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/atomic b/libcudacxx/include/cuda/std/detail/libcxx/include/atomic index 0250134260e..1d045e42b37 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/atomic +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/atomic @@ -572,7 +572,11 @@ void atomic_signal_fence(memory_order m) noexcept; #include <__pragma_push> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #ifdef _LIBCUDACXX_HAS_NO_THREADS # error is not supported on this single threaded system diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/barrier b/libcudacxx/include/cuda/std/detail/libcxx/include/barrier index 658ac20de5e..ad4298b3e8e 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/barrier +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/barrier @@ -65,7 +65,11 @@ namespace std #include <__pragma_push> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #ifdef _LIBCUDACXX_HAS_NO_THREADS # error is not supported on this single threaded system diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/bit b/libcudacxx/include/cuda/std/detail/libcxx/include/bit index 2c634f92f54..b3ea29e4e18 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/bit +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/bit @@ -68,7 +68,11 @@ namespace std { #include <__pragma_push> #endif //__cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if defined(_LIBCUDACXX_COMPILER_MSVC) #include diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/bitset b/libcudacxx/include/cuda/std/detail/libcxx/include/bitset index ae718b936c0..cbf68020ea8 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/bitset +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/bitset @@ -121,7 +121,11 @@ template struct hash>; #include #include <__functional_base> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_PUSH_MACROS #include <__undef_macros> diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/ccomplex b/libcudacxx/include/cuda/std/detail/libcxx/include/ccomplex index d0db022b0e3..3e727a933b5 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/ccomplex +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/ccomplex @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // hh 080623 Created diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/cctype b/libcudacxx/include/cuda/std/detail/libcxx/include/cctype index 9dcaf3fb53c..61ae214c384 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/cctype +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/cctype @@ -37,7 +37,11 @@ int toupper(int c); #include <__config> #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/cerrno b/libcudacxx/include/cuda/std/detail/libcxx/include/cerrno index 8791fb8f130..8f8c5533a64 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/cerrno +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/cerrno @@ -25,6 +25,10 @@ Macros: #include <__config> #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #endif // _LIBCUDACXX_CERRNO diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/cfenv b/libcudacxx/include/cuda/std/detail/libcxx/include/cfenv index e007ea63917..06e311c7014 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/cfenv +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/cfenv @@ -55,7 +55,11 @@ int feupdateenv(const fenv_t* envp); #include <__config> #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/charconv b/libcudacxx/include/cuda/std/detail/libcxx/include/charconv index 6180d99c043..e51090e8fd2 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/charconv +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/charconv @@ -82,7 +82,11 @@ namespace std { #include <__debug> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_PUSH_MACROS #include <__undef_macros> diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/chrono b/libcudacxx/include/cuda/std/detail/libcxx/include/chrono index 260c4ca8e97..828aa923813 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/chrono +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/chrono @@ -850,7 +850,11 @@ constexpr chrono::year operator ""y(unsigned lo #include <__pragma_push> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // Silence NVCC warnings `long double` arising from chrono floating pointer // user-defined literals which are defined in terms of `long double`. diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/cinttypes b/libcudacxx/include/cuda/std/detail/libcxx/include/cinttypes index 01e339336e6..8029b59ebe2 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/cinttypes +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/cinttypes @@ -239,7 +239,11 @@ uintmax_t wcstoumax(const wchar_t* restrict nptr, wchar_t** restrict endptr, int #include "cstdint" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/climits b/libcudacxx/include/cuda/std/detail/libcxx/include/climits index 8cc230126e5..5574afe450a 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/climits +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/climits @@ -48,7 +48,11 @@ Macros: #include <__pragma_push> #endif //__cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if defined(_LIBCUDACXX_COMPILER_MSVC) #include "support/win32/limits_msvc_win32.h" diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/clocale b/libcudacxx/include/cuda/std/detail/libcxx/include/clocale index 3c5d30f59bb..52c61aaa6a3 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/clocale +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/clocale @@ -37,7 +37,11 @@ lconv* localeconv(); #include <__config> #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/cmath b/libcudacxx/include/cuda/std/detail/libcxx/include/cmath index 242808f017f..7638eaf5db1 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/cmath +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/cmath @@ -320,7 +320,11 @@ long double truncl(long double x); #include <__pragma_push> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #ifdef _LIBCUDACXX_COMPILER_NVRTC #include "climits" diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/codecvt b/libcudacxx/include/cuda/std/detail/libcxx/include/codecvt index 8bd68acb994..4c02915ab10 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/codecvt +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/codecvt @@ -57,7 +57,11 @@ class codecvt_utf8_utf16 #include <__config> #include <__locale> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/compare b/libcudacxx/include/cuda/std/detail/libcxx/include/compare index a821668006e..63d2b3f20b1 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/compare +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/compare @@ -50,7 +50,11 @@ namespace std { #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/complex b/libcudacxx/include/cuda/std/detail/libcxx/include/complex index be550e494d6..e064ade753b 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/complex +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/complex @@ -267,7 +267,11 @@ template complex tanh (const complex&); #include <__pragma_push> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC # if _LIBCUDACXX_CUDA_ABI_VERSION > 3 # define _LIBCUDACXX_COMPLEX_ALIGNAS(V) _ALIGNAS(V) diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/complex.h b/libcudacxx/include/cuda/std/detail/libcxx/include/complex.h index 20c9204a874..22ad5415020 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/complex.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/complex.h @@ -19,7 +19,11 @@ #include <__config> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #ifdef __cplusplus diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/concepts b/libcudacxx/include/cuda/std/detail/libcxx/include/concepts index e8e6eb0468a..b68750dd601 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/concepts +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/concepts @@ -162,6 +162,10 @@ namespace std { #include "version" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #endif // _LIBCUDACXX_CONCEPTS diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/condition_variable b/libcudacxx/include/cuda/std/detail/libcxx/include/condition_variable index d3258ec5ca1..ded33441f72 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/condition_variable +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/condition_variable @@ -110,7 +110,11 @@ public: #include <__mutex_base> #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #ifndef _LIBCUDACXX_HAS_NO_THREADS diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/csetjmp b/libcudacxx/include/cuda/std/detail/libcxx/include/csetjmp index ffd8589ab77..a5faf91b9c2 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/csetjmp +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/csetjmp @@ -33,7 +33,11 @@ void longjmp(jmp_buf env, int val); #include <__config> #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/csignal b/libcudacxx/include/cuda/std/detail/libcxx/include/csignal index 2f4808a3ba5..39259812809 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/csignal +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/csignal @@ -42,7 +42,11 @@ int raise(int sig); #include <__config> #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/cstdarg b/libcudacxx/include/cuda/std/detail/libcxx/include/cstdarg index 9db6866d5f2..aca5c592846 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/cstdarg +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/cstdarg @@ -37,7 +37,11 @@ Types: #include <__pragma_push> #endif //__cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/cstdbool b/libcudacxx/include/cuda/std/detail/libcxx/include/cstdbool index af1c406f5af..23a2ef4504e 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/cstdbool +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/cstdbool @@ -24,7 +24,11 @@ Macros: #include <__pragma_push> #endif //__cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #undef __bool_true_false_are_defined #define __bool_true_false_are_defined 1 diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/cstddef b/libcudacxx/include/cuda/std/detail/libcxx/include/cstddef index d2af2245d4a..83f0d8c2994 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/cstddef +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/cstddef @@ -48,7 +48,11 @@ Types: #include <__pragma_push> #endif //__cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #ifndef __cuda_std__ // Don't include our own ; we don't want to declare ::nullptr_t. diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/cstdint b/libcudacxx/include/cuda/std/detail/libcxx/include/cstdint index d8c93304251..ef6ff78accf 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/cstdint +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/cstdint @@ -157,7 +157,11 @@ Types: #include <__pragma_push> #endif //__cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/cstdio b/libcudacxx/include/cuda/std/detail/libcxx/include/cstdio index e2dae07d505..c067f6177d7 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/cstdio +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/cstdio @@ -98,7 +98,11 @@ void perror(const char* s); #include <__config> #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/cstdlib b/libcudacxx/include/cuda/std/detail/libcxx/include/cstdlib index a67f8b53dcc..306c319ce64 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/cstdlib +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/cstdlib @@ -94,7 +94,11 @@ void *aligned_alloc(size_t alignment, size_t size); // C11 #include <__pragma_push> #endif //__cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if defined(_LIBCUDACXX_COMPILER_CLANG_CUDA) # define _LIBCUDACXX_UNREACHABLE() __builtin_unreachable() diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/cstring b/libcudacxx/include/cuda/std/detail/libcxx/include/cstring index a72918b2ad6..7e4a904ac25 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/cstring +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/cstring @@ -62,7 +62,11 @@ size_t strlen(const char* s); #include <__pragma_push> #endif //__simet__ <- a tribute to ogiroux +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/ctgmath b/libcudacxx/include/cuda/std/detail/libcxx/include/ctgmath index e1fada503ab..11c0746caee 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/ctgmath +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/ctgmath @@ -21,6 +21,10 @@ #include #include "cmath" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #endif // _LIBCUDACXX_CTGMATH diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/ctime b/libcudacxx/include/cuda/std/detail/libcxx/include/ctime index 431292deb39..fa17dfa0f36 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/ctime +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/ctime @@ -59,7 +59,11 @@ typedef long long int time_t; #include <__pragma_push> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/ctype.h b/libcudacxx/include/cuda/std/detail/libcxx/include/ctype.h index 303713878c8..173c16e4273 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/ctype.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/ctype.h @@ -31,7 +31,11 @@ int toupper(int c); #include <__config> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include_next diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/cwchar b/libcudacxx/include/cuda/std/detail/libcxx/include/cwchar index b8a0d1d2f26..9d0062a94b8 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/cwchar +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/cwchar @@ -106,7 +106,11 @@ size_t wcsrtombs(char* restrict dst, const wchar_t** restrict src, size_t len, #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/cwctype b/libcudacxx/include/cuda/std/detail/libcxx/include/cwctype index b438d811e4e..3a1ccc36a26 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/cwctype +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/cwctype @@ -53,7 +53,11 @@ wctrans_t wctrans(const char* property); #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/deque b/libcudacxx/include/cuda/std/detail/libcxx/include/deque index f8d509e92b8..271ba5e3720 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/deque +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/deque @@ -167,7 +167,11 @@ template #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_PUSH_MACROS #include <__undef_macros> diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/errno.h b/libcudacxx/include/cuda/std/detail/libcxx/include/errno.h index 3d2a9c8867b..589d29d5092 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/errno.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/errno.h @@ -24,7 +24,11 @@ #include <__config> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include_next diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/exception b/libcudacxx/include/cuda/std/detail/libcxx/include/exception index dca1ee5e811..4efc1841828 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/exception +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/exception @@ -89,7 +89,11 @@ template void rethrow_if_nested(const E& e); #include #endif +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD_NOVERSION // purposefully not using versioning namespace diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/expected b/libcudacxx/include/cuda/std/detail/libcxx/include/expected index 17541c5f499..68f61f6e1d5 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/expected +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/expected @@ -32,6 +32,10 @@ namespace std { #include "version" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #endif // _LIBCUDACXX_EXPECTED diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/__config b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/__config index 8e0818babdf..802708e3277 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/__config +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/__config @@ -12,7 +12,11 @@ #include <__config> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #define _LIBCUDACXX_BEGIN_NAMESPACE_EXPERIMENTAL namespace std { namespace experimental { #define _LIBCUDACXX_END_NAMESPACE_EXPERIMENTAL } } diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/algorithm b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/algorithm index 8d0b5b91f77..1da9a4a26f8 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/algorithm +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/algorithm @@ -37,7 +37,11 @@ ForwardIterator search(ForwardIterator first, ForwardIterator last, #include <__debug> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_PUSH_MACROS #include <__undef_macros> diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/coroutine b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/coroutine index 5151e266673..bd94e5b6d02 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/coroutine +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/coroutine @@ -53,7 +53,11 @@ template struct hash>; #include #include <__debug> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #ifdef _LIBCUDACXX_HAS_NO_COROUTINES # if defined(_LIBCUDACXX_WARNING) diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/deque b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/deque index 457a71fd153..06673b613bc 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/deque +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/deque @@ -32,7 +32,11 @@ namespace pmr { #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_LFTS_PMR diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/filesystem b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/filesystem index 6274f249a14..736b2917302 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/filesystem +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/filesystem @@ -232,7 +232,11 @@ #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_PUSH_MACROS #include <__undef_macros> diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/forward_list b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/forward_list index bdb7d159aef..2222319f75a 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/forward_list +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/forward_list @@ -32,7 +32,11 @@ namespace pmr { #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_LFTS_PMR diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/functional b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/functional index 41dd9a79f1c..e45c071a8d6 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/functional +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/functional @@ -96,7 +96,11 @@ inline namespace fundamentals_v1 { #include <__debug> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_PUSH_MACROS #include <__undef_macros> diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/list b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/list index 37ce4f5ac8e..8f6fbced635 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/list +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/list @@ -32,7 +32,11 @@ namespace pmr { #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_LFTS_PMR diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/map b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/map index b5b5b9db880..339b149f623 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/map +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/map @@ -37,7 +37,11 @@ namespace pmr { #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_LFTS_PMR diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/memory_resource b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/memory_resource index 38fee57d5c2..93e62b656f2 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/memory_resource +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/memory_resource @@ -77,7 +77,11 @@ namespace pmr { #include #include <__debug> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_PUSH_MACROS #include <__undef_macros> diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/propagate_const b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/propagate_const index 4ad1f3cf779..70afdfa086b 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/propagate_const +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/propagate_const @@ -106,7 +106,11 @@ */ -#include _CCCL_IMPLICIT_SYSTEM_HEADER +#include #if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv +_CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if _LIBCUDACXX_STD_VER > 11 #include diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/regex b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/regex index c9a46f8ebfe..ef2dc3aea12 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/regex +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/regex @@ -40,7 +40,11 @@ namespace pmr { #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_LFTS_PMR diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/set b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/set index 8b7a9978691..a267b7acd1c 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/set +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/set @@ -37,7 +37,11 @@ namespace pmr { #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_LFTS_PMR diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/simd b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/simd index 060ab818b89..ed37b0f212b 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/simd +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/simd @@ -655,7 +655,11 @@ public: #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_EXPERIMENTAL_SIMD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/string b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/string index ab677210ba8..6509bd8b9cd 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/string +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/string @@ -41,7 +41,11 @@ namespace pmr { #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_LFTS_PMR diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/type_traits b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/type_traits index b2fde3d2890..c73143bbb0c 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/type_traits +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/type_traits @@ -75,7 +75,11 @@ inline namespace fundamentals_v1 { #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_LFTS diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/unordered_map b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/unordered_map index 0f2b1456679..a110a918fe0 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/unordered_map +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/unordered_map @@ -43,7 +43,11 @@ namespace pmr { #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_LFTS_PMR diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/unordered_set b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/unordered_set index c5c1590e0fe..4714c8421f5 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/unordered_set +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/unordered_set @@ -37,7 +37,11 @@ namespace pmr { #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_LFTS_PMR diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/utility b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/utility index 4735242681a..6d2c15d5704 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/utility +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/utility @@ -33,7 +33,11 @@ inline namespace fundamentals_v1 { #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_LFTS diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/vector b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/vector index 6b38f5a2394..31c06fca578 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/vector +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/experimental/vector @@ -32,7 +32,11 @@ namespace pmr { #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_LFTS_PMR diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/ext/hash_map b/libcudacxx/include/cuda/std/detail/libcxx/include/ext/hash_map index a8f71f089c1..4dbebc16f3b 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/ext/hash_map +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/ext/hash_map @@ -216,7 +216,11 @@ template #endif #endif +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC namespace __gnu_cxx { diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/fenv.h b/libcudacxx/include/cuda/std/detail/libcxx/include/fenv.h index decb8a6d605..766517eea32 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/fenv.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/fenv.h @@ -52,7 +52,11 @@ int feupdateenv(const fenv_t* envp); #include <__config> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include_next diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/filesystem b/libcudacxx/include/cuda/std/detail/libcxx/include/filesystem index 06468398207..3ec35cdee0f 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/filesystem +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/filesystem @@ -247,7 +247,11 @@ #include <__debug> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_PUSH_MACROS #include <__undef_macros> diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/float.h b/libcudacxx/include/cuda/std/detail/libcxx/include/float.h index 21d60b401a6..404eebabce1 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/float.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/float.h @@ -74,7 +74,11 @@ #include <__pragma_push> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include_next diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/forward_list b/libcudacxx/include/cuda/std/detail/libcxx/include/forward_list index 46bc16f902d..25ae3efacf2 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/forward_list +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/forward_list @@ -185,7 +185,11 @@ template #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_PUSH_MACROS #include <__undef_macros> diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/fstream b/libcudacxx/include/cuda/std/detail/libcxx/include/fstream index 0d84dfed521..e86f7427eae 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/fstream +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/fstream @@ -187,7 +187,11 @@ typedef basic_fstream wfstream; #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_PUSH_MACROS #include <__undef_macros> diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/functional b/libcudacxx/include/cuda/std/detail/libcxx/include/functional index af075fb75ce..1e13ca7a14c 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/functional +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/functional @@ -541,6 +541,10 @@ POLICY: For non-variadic implementations, the number of arguments is limited #include "type_traits" #include "version" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #endif // _LIBCUDACXX_FUNCTIONAL diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/future b/libcudacxx/include/cuda/std/detail/libcxx/include/future index be0a0c72981..c911590b2aa 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/future +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/future @@ -369,7 +369,11 @@ template struct uses_allocator, Alloc>; #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #ifdef _LIBCUDACXX_HAS_NO_THREADS #error is not supported on this single threaded system diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/initializer_list b/libcudacxx/include/cuda/std/detail/libcxx/include/initializer_list index 97955304f72..303f8f343b7 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/initializer_list +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/initializer_list @@ -47,7 +47,11 @@ template const E* end(initializer_list il) noexcept; // constexpr in #include "cstddef" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC namespace std // purposefully not versioned { diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/inttypes.h b/libcudacxx/include/cuda/std/detail/libcxx/include/inttypes.h index a00216ad89e..abc3e0896f7 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/inttypes.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/inttypes.h @@ -237,7 +237,11 @@ uintmax_t wcstoumax(const wchar_t* restrict nptr, wchar_t** restrict endptr, int #include <__config> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC /* C99 stdlib (e.g. glibc < 2.18) does not provide format macros needed for C++11 unless __STDC_FORMAT_MACROS is defined diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/iomanip b/libcudacxx/include/cuda/std/detail/libcxx/include/iomanip index e7aa8f9c380..2f01d9199ed 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/iomanip +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/iomanip @@ -47,7 +47,11 @@ template #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/ios b/libcudacxx/include/cuda/std/detail/libcxx/include/ios index 9401e4bce78..eb1c5607397 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/ios +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/ios @@ -219,7 +219,11 @@ storage-class-specifier const error_category& iostream_category() noexcept; #include // for __xindex_ #endif +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/iosfwd b/libcudacxx/include/cuda/std/detail/libcxx/include/iosfwd index 445e8724e85..4b705112043 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/iosfwd +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/iosfwd @@ -100,7 +100,11 @@ typedef fpos::state_type> wstreampos; #include "__fwd/string.h" #include "version" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/iostream b/libcudacxx/include/cuda/std/detail/libcxx/include/iostream index fb9301bca94..1863a346f5b 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/iostream +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/iostream @@ -39,7 +39,11 @@ extern wostream wclog; #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/istream b/libcudacxx/include/cuda/std/detail/libcxx/include/istream index fa4f422df77..2834f6dedd3 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/istream +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/istream @@ -162,7 +162,11 @@ template #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_PUSH_MACROS #include <__undef_macros> diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/iterator b/libcudacxx/include/cuda/std/detail/libcxx/include/iterator index bbd9686452a..12b8f3a3646 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/iterator +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/iterator @@ -729,7 +729,11 @@ template constexpr const E* data(initializer_list il) noexcept; #include <__pragma_push> #endif //__cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/latch b/libcudacxx/include/cuda/std/detail/libcxx/include/latch index 579e6a99d39..6ed62527f6b 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/latch +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/latch @@ -50,7 +50,11 @@ namespace std #include <__pragma_push> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #ifdef _LIBCUDACXX_HAS_NO_THREADS # error is not supported on this single threaded system diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/limits b/libcudacxx/include/cuda/std/detail/libcxx/include/limits index 9be34c9ddba..942ef9e039e 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/limits +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/limits @@ -118,7 +118,11 @@ template<> class numeric_limits; #include <__pragma_push> #endif //__cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if defined(_LIBCUDACXX_COMPILER_MSVC) #include "support/win32/limits_msvc_win32.h" diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/limits.h b/libcudacxx/include/cuda/std/detail/libcxx/include/limits.h index 0dba897bc0b..29a3601f7fb 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/limits.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/limits.h @@ -41,7 +41,11 @@ #include <__pragma_push> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #ifndef __GNUC__ #include_next diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/list b/libcudacxx/include/cuda/std/detail/libcxx/include/list index e2ca9458109..977062f9345 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/list +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/list @@ -190,7 +190,11 @@ template #include <__debug> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_PUSH_MACROS #include <__undef_macros> diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/locale b/libcudacxx/include/cuda/std/detail/libcxx/include/locale index e291548d5a3..5c1e61d39f8 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/locale +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/locale @@ -207,7 +207,11 @@ template class messages_byname; #include <__bsd_locale_fallbacks.h> #endif +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_PUSH_MACROS #include <__undef_macros> diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/locale.h b/libcudacxx/include/cuda/std/detail/libcxx/include/locale.h index cd37ccb992c..29d1f4cc1ce 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/locale.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/locale.h @@ -35,7 +35,11 @@ #include <__config> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include_next diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/map b/libcudacxx/include/cuda/std/detail/libcxx/include/map index ecd73ee6f7b..9d7c419ef3e 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/map +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/map @@ -486,7 +486,11 @@ template #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/math.h b/libcudacxx/include/cuda/std/detail/libcxx/include/math.h index 08f14973b3e..2215e722e82 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/math.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/math.h @@ -293,7 +293,11 @@ long double truncl(long double x); #include <__config> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #define _LIBCUDACXX_STDLIB_INCLUDE_NEXT #include diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/memory b/libcudacxx/include/cuda/std/detail/libcxx/include/memory index d19c29c4c4b..2dbae984671 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/memory +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/memory @@ -704,7 +704,11 @@ void* align(size_t alignment, size_t size, void*& ptr, size_t& space); #include <__pragma_push> #endif //__cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/mutex b/libcudacxx/include/cuda/std/detail/libcxx/include/mutex index f46c760b406..a3979a102e1 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/mutex +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/mutex @@ -195,7 +195,11 @@ template #include #include <__threading_support> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_PUSH_MACROS #include <__undef_macros> diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/new b/libcudacxx/include/cuda/std/detail/libcxx/include/new index 001f0fb2581..304fddcda94 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/new +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/new @@ -106,7 +106,11 @@ void operator delete[](void* ptr, void*) noexcept; #include <__pragma_push> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if !defined(__cpp_sized_deallocation) || __cpp_sized_deallocation < 201309L #define _LIBCUDACXX_HAS_NO_LANGUAGE_SIZED_DEALLOCATION diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/numeric b/libcudacxx/include/cuda/std/detail/libcxx/include/numeric index 3c50f53ce56..e240f28d99d 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/numeric +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/numeric @@ -161,7 +161,11 @@ floating_point midpoint(floating_point a, floating_point b); // C++20 #include <__pragma_push> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/optional b/libcudacxx/include/cuda/std/detail/libcxx/include/optional index 936b268aaf0..8112bd4c47e 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/optional +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/optional @@ -205,7 +205,11 @@ template #include <__pragma_push> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #ifndef __cuda_std__ namespace std // purposefully not using versioning namespace diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/ostream b/libcudacxx/include/cuda/std/detail/libcxx/include/ostream index 7a1844a0792..c196ba70cdc 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/ostream +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/ostream @@ -142,7 +142,11 @@ template #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/queue b/libcudacxx/include/cuda/std/detail/libcxx/include/queue index e80d2a3a766..181e165c2a5 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/queue +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/queue @@ -191,7 +191,11 @@ template #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/random b/libcudacxx/include/cuda/std/detail/libcxx/include/random index 8b6821c2acc..73b048748d2 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/random +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/random @@ -1645,7 +1645,11 @@ class piecewise_linear_distribution #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_PUSH_MACROS #include <__undef_macros> diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/ratio b/libcudacxx/include/cuda/std/detail/libcxx/include/ratio index 6e4b550501f..672626f16fe 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/ratio +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/ratio @@ -91,7 +91,11 @@ typedef ratio<1000000000000000000000000, 1> yotta; // not supported #include <__pragma_push> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/regex b/libcudacxx/include/cuda/std/detail/libcxx/include/regex index 248b449afd8..46b9280b9d5 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/regex +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/regex @@ -770,7 +770,11 @@ typedef regex_token_iterator wsregex_token_iterator; #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_PUSH_MACROS #include <__undef_macros> diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/scoped_allocator b/libcudacxx/include/cuda/std/detail/libcxx/include/scoped_allocator index 4cfe73ba76e..a249b9eeb6b 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/scoped_allocator +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/scoped_allocator @@ -109,7 +109,11 @@ template #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/semaphore b/libcudacxx/include/cuda/std/detail/libcxx/include/semaphore index 1980af0be75..f6bfe4d41fa 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/semaphore +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/semaphore @@ -58,7 +58,11 @@ using binary_semaphore = counting_semaphore<1>; #include <__pragma_push> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #ifdef _LIBCUDACXX_HAS_NO_THREADS # error is not supported on this single threaded system diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/set b/libcudacxx/include/cuda/std/detail/libcxx/include/set index cc4a3539c60..69508e9d090 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/set +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/set @@ -429,7 +429,11 @@ template #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/setjmp.h b/libcudacxx/include/cuda/std/detail/libcxx/include/setjmp.h index df233e22044..0c1e9ad54af 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/setjmp.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/setjmp.h @@ -27,7 +27,11 @@ void longjmp(jmp_buf env, int val); #include <__config> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include_next diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/shared_mutex b/libcudacxx/include/cuda/std/detail/libcxx/include/shared_mutex index ff001b374fd..69a0f455e67 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/shared_mutex +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/shared_mutex @@ -133,7 +133,11 @@ _LIBCUDACXX_PUSH_MACROS #include <__mutex_base> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #ifdef _LIBCUDACXX_HAS_NO_THREADS #error is not supported on this single threaded system diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/span b/libcudacxx/include/cuda/std/detail/libcxx/include/span index 6629fde7199..42d880e632f 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/span +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/span @@ -157,7 +157,11 @@ template #include "cstddef" // for ptrdiff_t #include "version" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/sstream b/libcudacxx/include/cuda/std/detail/libcxx/include/sstream index 042beda7238..ad25c7e7e1b 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/sstream +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/sstream @@ -174,7 +174,11 @@ typedef basic_stringstream wstringstream; #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_PUSH_MACROS #include <__undef_macros> diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/stack b/libcudacxx/include/cuda/std/detail/libcxx/include/stack index 39ccaec86ac..3d0ca3223fe 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/stack +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/stack @@ -90,7 +90,11 @@ template #include <__config> #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/stdbool.h b/libcudacxx/include/cuda/std/detail/libcxx/include/stdbool.h index b20b26dfac1..dae4aca58b9 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/stdbool.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/stdbool.h @@ -21,7 +21,11 @@ #include <__config> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include_next diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/stddef.h b/libcudacxx/include/cuda/std/detail/libcxx/include/stddef.h index b4021ded082..1052ec45afc 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/stddef.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/stddef.h @@ -10,7 +10,11 @@ #if defined(__need_ptrdiff_t) || defined(__need_size_t) || \ defined(__need_wchar_t) || defined(__need_NULL) || defined(__need_wint_t) +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include_next @@ -38,7 +42,11 @@ _CCCL_IMPLICIT_SYSTEM_HEADER #include <__pragma_push> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include_next diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/stdexcept b/libcudacxx/include/cuda/std/detail/libcxx/include/stdexcept index f733210d3a2..02d678e510b 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/stdexcept +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/stdexcept @@ -57,7 +57,11 @@ public: #include <__pragma_push> #endif //__cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/stdint.h b/libcudacxx/include/cuda/std/detail/libcxx/include/stdint.h index a64128328e7..189c9c087bc 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/stdint.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/stdint.h @@ -107,7 +107,11 @@ #include <__pragma_push> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC /* C99 stdlib (e.g. glibc < 2.18) does not provide macros needed for C++11 unless __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/stdio.h b/libcudacxx/include/cuda/std/detail/libcxx/include/stdio.h index 38626f7d438..145319f36f7 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/stdio.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/stdio.h @@ -9,7 +9,11 @@ #if defined(__need_FILE) || defined(__need___FILE) +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include_next @@ -98,7 +102,11 @@ void perror(const char* s); #include <__config> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include_next diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/stdlib.h b/libcudacxx/include/cuda/std/detail/libcxx/include/stdlib.h index baa1c8d0c44..abc54deae08 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/stdlib.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/stdlib.h @@ -9,7 +9,11 @@ #if defined(__need_malloc_and_calloc) || defined(_LIBCUDACXX_STDLIB_INCLUDE_NEXT) +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if defined(_LIBCUDACXX_STDLIB_INCLUDE_NEXT) #undef _LIBCUDACXX_STDLIB_INCLUDE_NEXT @@ -88,7 +92,11 @@ void *aligned_alloc(size_t alignment, size_t size); // C11 #include <__config> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include_next diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/streambuf b/libcudacxx/include/cuda/std/detail/libcxx/include/streambuf index a69fc451089..b1ddd4417d5 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/streambuf +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/streambuf @@ -111,7 +111,11 @@ protected: #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_PUSH_MACROS #include <__undef_macros> diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/string b/libcudacxx/include/cuda/std/detail/libcxx/include/string index b218e364826..ee4ec891ca4 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/string +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/string @@ -523,7 +523,11 @@ basic_string operator "" s( const char32_t *str, size_t len ); // C++1 #include "__fwd/string.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_PUSH_MACROS #include <__undef_macros> diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/string.h b/libcudacxx/include/cuda/std/detail/libcxx/include/string.h index 680423534ab..9f0f0a0f151 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/string.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/string.h @@ -53,7 +53,11 @@ size_t strlen(const char* s); #include <__config> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include_next diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/string_view b/libcudacxx/include/cuda/std/detail/libcxx/include/string_view index 65dcbd646a3..167805405ef 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/string_view +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/string_view @@ -183,7 +183,11 @@ namespace std { #include "__fwd/string_view.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_PUSH_MACROS #include <__undef_macros> diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/strstream b/libcudacxx/include/cuda/std/detail/libcxx/include/strstream index 5e2aa76a6f1..aaeb4e063d6 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/strstream +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/strstream @@ -130,7 +130,11 @@ private: #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/system_error b/libcudacxx/include/cuda/std/detail/libcxx/include/system_error index 46698e29bd3..c7283f4f5b1 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/system_error +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/system_error @@ -148,7 +148,11 @@ template <> struct hash; #include <__functional_base> #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/tgmath.h b/libcudacxx/include/cuda/std/detail/libcxx/include/tgmath.h index 43679f03437..3e804cdbc28 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/tgmath.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/tgmath.h @@ -19,7 +19,11 @@ #include <__config> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #ifdef __cplusplus diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/thread b/libcudacxx/include/cuda/std/detail/libcxx/include/thread index 58ff59f3a7e..4b05aead9a4 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/thread +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/thread @@ -96,7 +96,11 @@ void sleep_for(const chrono::duration& rel_time); #include <__threading_support> #include <__debug> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_PUSH_MACROS #include <__undef_macros> diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/tuple b/libcudacxx/include/cuda/std/detail/libcxx/include/tuple index 38af8a080f9..cd91b9f6ec5 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/tuple +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/tuple @@ -187,7 +187,11 @@ template #include <__pragma_push> #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/type_traits b/libcudacxx/include/cuda/std/detail/libcxx/include/type_traits index cdd0596e2f0..062c344a82e 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/type_traits +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/type_traits @@ -561,7 +561,11 @@ namespace std #include "cstddef" #include "version" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/typeindex b/libcudacxx/include/cuda/std/detail/libcxx/include/typeindex index dd5528276f8..c28ce638ade 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/typeindex +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/typeindex @@ -48,7 +48,11 @@ struct hash #include #include <__functional_base> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/typeinfo b/libcudacxx/include/cuda/std/detail/libcxx/include/typeinfo index ea808a1f2ae..83ac67ff077 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/typeinfo +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/typeinfo @@ -64,7 +64,11 @@ public: #include #endif +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if defined(_LIBCUDACXX_ABI_VCRUNTIME) #include diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/unordered_map b/libcudacxx/include/cuda/std/detail/libcxx/include/unordered_map index dcc7ee73f89..fa3f41a9f6b 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/unordered_map +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/unordered_map @@ -415,7 +415,11 @@ template #include <__debug> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/unordered_set b/libcudacxx/include/cuda/std/detail/libcxx/include/unordered_set index 7f29d77ddf2..996aedbec2e 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/unordered_set +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/unordered_set @@ -368,7 +368,11 @@ template #include <__debug> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_BEGIN_NAMESPACE_STD diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/utility b/libcudacxx/include/cuda/std/detail/libcxx/include/utility index 486fe359824..fe81a993cc1 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/utility +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/utility @@ -292,6 +292,10 @@ template #include "__tuple_dir/tuple_element.h" #include "__tuple_dir/tuple_size.h" +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #endif // _LIBCUDACXX_UTILITY diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/valarray b/libcudacxx/include/cuda/std/detail/libcxx/include/valarray index e52cfa2dace..728f4a6134d 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/valarray +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/valarray @@ -361,7 +361,11 @@ template unspecified2 end(const valarray& v); // [valarray.syn] #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_PUSH_MACROS #include <__undef_macros> diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/variant b/libcudacxx/include/cuda/std/detail/libcxx/include/variant index fdd975bc519..403d7122eff 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/variant +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/variant @@ -208,7 +208,11 @@ namespace std { #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_PUSH_MACROS #include <__undef_macros> diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/vector b/libcudacxx/include/cuda/std/detail/libcxx/include/vector index f683b1fd6a3..f18ce0d8602 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/vector +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/vector @@ -286,7 +286,11 @@ template #include <__debug> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC _LIBCUDACXX_PUSH_MACROS #include <__undef_macros> diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/version b/libcudacxx/include/cuda/std/detail/libcxx/include/version index bea4b247c4e..a2c91e81cd2 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/version +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/version @@ -215,7 +215,11 @@ __cpp_lib_void_t 201411L #endif #endif // __cuda_std__ +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // We define certain feature test macros depending on availability. When // __CUDA_MINIMUM_ARCH__ is not available, we define the following features diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/wchar.h b/libcudacxx/include/cuda/std/detail/libcxx/include/wchar.h index 383e1109954..4981c861720 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/wchar.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/wchar.h @@ -9,7 +9,11 @@ #if defined(__need_wint_t) || defined(__need_mbstate_t) +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include_next @@ -105,7 +109,11 @@ size_t wcsrtombs(char* restrict dst, const wchar_t** restrict src, size_t len, #include <__config> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #ifdef __cplusplus #define __CORRECT_ISO_CPP_WCHAR_H_PROTO diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/wctype.h b/libcudacxx/include/cuda/std/detail/libcxx/include/wctype.h index 3f238aa2f4c..dd5c13cc85d 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/wctype.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/wctype.h @@ -46,7 +46,11 @@ wctrans_t wctrans(const char* property); #include <__config> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include_next diff --git a/libcudacxx/libcxx/utils/generate_feature_test_macro_components.py b/libcudacxx/libcxx/utils/generate_feature_test_macro_components.py index 4efadb63bf5..2e1b6d8a42b 100755 --- a/libcudacxx/libcxx/utils/generate_feature_test_macro_components.py +++ b/libcudacxx/libcxx/utils/generate_feature_test_macro_components.py @@ -716,7 +716,11 @@ def produce_version_header(): #include <__config> +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if _LIBCUDACXX_STD_VER > 11 {cxx14_macros} diff --git a/thrust/thrust/addressof.h b/thrust/thrust/addressof.h index eeebf7294ac..ac1af8a3aec 100644 --- a/thrust/thrust/addressof.h +++ b/thrust/thrust/addressof.h @@ -7,7 +7,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_CPP_DIALECT >= 2011 # include diff --git a/thrust/thrust/adjacent_difference.h b/thrust/thrust/adjacent_difference.h index 8c86ce8ca4d..6aa67465554 100644 --- a/thrust/thrust/adjacent_difference.h +++ b/thrust/thrust/adjacent_difference.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/advance.h b/thrust/thrust/advance.h index 2abd8c28a53..e7b36236522 100644 --- a/thrust/thrust/advance.h +++ b/thrust/thrust/advance.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/allocate_unique.h b/thrust/thrust/allocate_unique.h index 197c94a3e72..bd3ca33ded7 100644 --- a/thrust/thrust/allocate_unique.h +++ b/thrust/thrust/allocate_unique.h @@ -7,7 +7,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2011 diff --git a/thrust/thrust/async/copy.h b/thrust/thrust/async/copy.h index f7211052260..5fc18424c74 100644 --- a/thrust/thrust/async/copy.h +++ b/thrust/thrust/async/copy.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2014 diff --git a/thrust/thrust/async/for_each.h b/thrust/thrust/async/for_each.h index c36a0119c01..8dd198c15b3 100644 --- a/thrust/thrust/async/for_each.h +++ b/thrust/thrust/async/for_each.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2014 diff --git a/thrust/thrust/async/reduce.h b/thrust/thrust/async/reduce.h index ee97547dcf0..893c3c5b132 100644 --- a/thrust/thrust/async/reduce.h +++ b/thrust/thrust/async/reduce.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2014 diff --git a/thrust/thrust/async/scan.h b/thrust/thrust/async/scan.h index 806e654269a..56ef43f317a 100644 --- a/thrust/thrust/async/scan.h +++ b/thrust/thrust/async/scan.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2014 diff --git a/thrust/thrust/async/sort.h b/thrust/thrust/async/sort.h index 27caf64e450..551f599035e 100644 --- a/thrust/thrust/async/sort.h +++ b/thrust/thrust/async/sort.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2014 diff --git a/thrust/thrust/async/transform.h b/thrust/thrust/async/transform.h index e1901293e96..3f4d2af526c 100644 --- a/thrust/thrust/async/transform.h +++ b/thrust/thrust/async/transform.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2014 diff --git a/thrust/thrust/binary_search.h b/thrust/thrust/binary_search.h index 15d1b07710b..c6633ce18fd 100644 --- a/thrust/thrust/binary_search.h +++ b/thrust/thrust/binary_search.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/complex.h b/thrust/thrust/complex.h index 5cf63cbfe1d..a400a6dbd7d 100644 --- a/thrust/thrust/complex.h +++ b/thrust/thrust/complex.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/copy.h b/thrust/thrust/copy.h index 192cdbc8a3a..24f1ac78cfc 100644 --- a/thrust/thrust/copy.h +++ b/thrust/thrust/copy.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/count.h b/thrust/thrust/count.h index 0aa7592c72b..0512933cbbe 100644 --- a/thrust/thrust/count.h +++ b/thrust/thrust/count.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/adjacent_difference.inl b/thrust/thrust/detail/adjacent_difference.inl index 0f74c754a97..1f604c07118 100644 --- a/thrust/thrust/detail/adjacent_difference.inl +++ b/thrust/thrust/detail/adjacent_difference.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/advance.inl b/thrust/thrust/detail/advance.inl index 55601dc06e2..e73e9cd8035 100644 --- a/thrust/thrust/detail/advance.inl +++ b/thrust/thrust/detail/advance.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/algorithm_wrapper.h b/thrust/thrust/detail/algorithm_wrapper.h index ab09e3d0bdc..ad5efce8b06 100644 --- a/thrust/thrust/detail/algorithm_wrapper.h +++ b/thrust/thrust/detail/algorithm_wrapper.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // When a compiler uses Thrust as part of its implementation of Standard C++ // algorithms, a cycle of included files may result when Thrust code tries to diff --git a/thrust/thrust/detail/alignment.h b/thrust/thrust/detail/alignment.h index a6fcc4ab379..6b8f11b333f 100644 --- a/thrust/thrust/detail/alignment.h +++ b/thrust/thrust/detail/alignment.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include // For `integral_constant`. #include // For `std::size_t` and `std::max_align_t`. diff --git a/thrust/thrust/detail/allocator/allocator_traits.h b/thrust/thrust/detail/allocator/allocator_traits.h index ebf3a2c9d33..d59f38591c2 100644 --- a/thrust/thrust/detail/allocator/allocator_traits.h +++ b/thrust/thrust/detail/allocator/allocator_traits.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/allocator/allocator_traits.inl b/thrust/thrust/detail/allocator/allocator_traits.inl index 1815598c16a..1548373a6eb 100644 --- a/thrust/thrust/detail/allocator/allocator_traits.inl +++ b/thrust/thrust/detail/allocator/allocator_traits.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/allocator/copy_construct_range.h b/thrust/thrust/detail/allocator/copy_construct_range.h index 4483cb85cca..25139925efe 100644 --- a/thrust/thrust/detail/allocator/copy_construct_range.h +++ b/thrust/thrust/detail/allocator/copy_construct_range.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/detail/allocator/copy_construct_range.inl b/thrust/thrust/detail/allocator/copy_construct_range.inl index d36fb210a57..54ae413a100 100644 --- a/thrust/thrust/detail/allocator/copy_construct_range.inl +++ b/thrust/thrust/detail/allocator/copy_construct_range.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/allocator/default_construct_range.h b/thrust/thrust/detail/allocator/default_construct_range.h index da43e72341e..b53534936cc 100644 --- a/thrust/thrust/detail/allocator/default_construct_range.h +++ b/thrust/thrust/detail/allocator/default_construct_range.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC THRUST_NAMESPACE_BEGIN namespace detail diff --git a/thrust/thrust/detail/allocator/default_construct_range.inl b/thrust/thrust/detail/allocator/default_construct_range.inl index ae029471e11..6edc4f7a2cb 100644 --- a/thrust/thrust/detail/allocator/default_construct_range.inl +++ b/thrust/thrust/detail/allocator/default_construct_range.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/allocator/destroy_range.h b/thrust/thrust/detail/allocator/destroy_range.h index f80215b8aec..cfedf0c4f32 100644 --- a/thrust/thrust/detail/allocator/destroy_range.h +++ b/thrust/thrust/detail/allocator/destroy_range.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC THRUST_NAMESPACE_BEGIN namespace detail diff --git a/thrust/thrust/detail/allocator/destroy_range.inl b/thrust/thrust/detail/allocator/destroy_range.inl index 2b198b45ac7..a288d3d663b 100644 --- a/thrust/thrust/detail/allocator/destroy_range.inl +++ b/thrust/thrust/detail/allocator/destroy_range.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/allocator/fill_construct_range.h b/thrust/thrust/detail/allocator/fill_construct_range.h index 13793d6c2eb..5aa6f84bee8 100644 --- a/thrust/thrust/detail/allocator/fill_construct_range.h +++ b/thrust/thrust/detail/allocator/fill_construct_range.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC THRUST_NAMESPACE_BEGIN namespace detail diff --git a/thrust/thrust/detail/allocator/fill_construct_range.inl b/thrust/thrust/detail/allocator/fill_construct_range.inl index 521a33da1c4..4019d9d9b46 100644 --- a/thrust/thrust/detail/allocator/fill_construct_range.inl +++ b/thrust/thrust/detail/allocator/fill_construct_range.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/allocator/malloc_allocator.h b/thrust/thrust/detail/allocator/malloc_allocator.h index f3c61bc23e6..be230a986f5 100644 --- a/thrust/thrust/detail/allocator/malloc_allocator.h +++ b/thrust/thrust/detail/allocator/malloc_allocator.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/allocator/malloc_allocator.inl b/thrust/thrust/detail/allocator/malloc_allocator.inl index a753b0d722a..0e64abf73fa 100644 --- a/thrust/thrust/detail/allocator/malloc_allocator.inl +++ b/thrust/thrust/detail/allocator/malloc_allocator.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/allocator/no_throw_allocator.h b/thrust/thrust/detail/allocator/no_throw_allocator.h index 33571c601d3..7a35b3d1160 100644 --- a/thrust/thrust/detail/allocator/no_throw_allocator.h +++ b/thrust/thrust/detail/allocator/no_throw_allocator.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/detail/allocator/tagged_allocator.h b/thrust/thrust/detail/allocator/tagged_allocator.h index 866443af7ed..fa7a716f119 100644 --- a/thrust/thrust/detail/allocator/tagged_allocator.h +++ b/thrust/thrust/detail/allocator/tagged_allocator.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/allocator/tagged_allocator.inl b/thrust/thrust/detail/allocator/tagged_allocator.inl index bc5183d0c15..4f02e59c840 100644 --- a/thrust/thrust/detail/allocator/tagged_allocator.inl +++ b/thrust/thrust/detail/allocator/tagged_allocator.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/allocator/temporary_allocator.h b/thrust/thrust/detail/allocator/temporary_allocator.h index 31b1e080c62..81110e3f2e7 100644 --- a/thrust/thrust/detail/allocator/temporary_allocator.h +++ b/thrust/thrust/detail/allocator/temporary_allocator.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/allocator/temporary_allocator.inl b/thrust/thrust/detail/allocator/temporary_allocator.inl index 4f3b03bb788..23f96cfb996 100644 --- a/thrust/thrust/detail/allocator/temporary_allocator.inl +++ b/thrust/thrust/detail/allocator/temporary_allocator.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/allocator_aware_execution_policy.h b/thrust/thrust/detail/allocator_aware_execution_policy.h index 613c8e13e6a..bfc29736bfd 100644 --- a/thrust/thrust/detail/allocator_aware_execution_policy.h +++ b/thrust/thrust/detail/allocator_aware_execution_policy.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/binary_search.inl b/thrust/thrust/detail/binary_search.inl index e7203dc6413..d2a42fdf6af 100644 --- a/thrust/thrust/detail/binary_search.inl +++ b/thrust/thrust/detail/binary_search.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/caching_allocator.h b/thrust/thrust/detail/caching_allocator.h index 53f29e8cbc7..f306f0f1220 100644 --- a/thrust/thrust/detail/caching_allocator.h +++ b/thrust/thrust/detail/caching_allocator.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/config.h b/thrust/thrust/detail/config.h index 2ae231a0715..12df82f6944 100644 --- a/thrust/thrust/detail/config.h +++ b/thrust/thrust/detail/config.h @@ -22,4 +22,8 @@ #include #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC diff --git a/thrust/thrust/detail/config/compiler.h b/thrust/thrust/detail/config/compiler.h index f584fac2aab..3359808f6c2 100644 --- a/thrust/thrust/detail/config/compiler.h +++ b/thrust/thrust/detail/config/compiler.h @@ -22,7 +22,11 @@ // Internal config header that is only included through thrust/detail/config/config.h +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // enumerate host compilers we know about #define THRUST_HOST_COMPILER_UNKNOWN 0 diff --git a/thrust/thrust/detail/config/compiler_fence.h b/thrust/thrust/detail/config/compiler_fence.h index 1b7ef1850a2..629e0a549f4 100644 --- a/thrust/thrust/detail/config/compiler_fence.h +++ b/thrust/thrust/detail/config/compiler_fence.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/detail/config/config.h b/thrust/thrust/detail/config/config.h index 4215b67b75d..692d356c5f1 100644 --- a/thrust/thrust/detail/config/config.h +++ b/thrust/thrust/detail/config/config.h @@ -20,10 +20,14 @@ #pragma once -// Include libcu++ config to get _CCCL_IMPLICIT_SYSTEM_HEADER +// For _CCCL_IMPLICIT_SYSTEM_HEADER #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // NOTE: The order of these #includes matters. diff --git a/thrust/thrust/detail/config/cpp_compatibility.h b/thrust/thrust/detail/config/cpp_compatibility.h index 9effa7dfebc..ba6c9b65b6d 100644 --- a/thrust/thrust/detail/config/cpp_compatibility.h +++ b/thrust/thrust/detail/config/cpp_compatibility.h @@ -18,7 +18,11 @@ // Internal config header that is only included through thrust/detail/config/config.h +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/detail/config/cpp_dialect.h b/thrust/thrust/detail/config/cpp_dialect.h index 2033e9ae1ba..87905893fc9 100644 --- a/thrust/thrust/detail/config/cpp_dialect.h +++ b/thrust/thrust/detail/config/cpp_dialect.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/detail/config/debug.h b/thrust/thrust/detail/config/debug.h index 43f1e5d8144..be903b1f36b 100644 --- a/thrust/thrust/detail/config/debug.h +++ b/thrust/thrust/detail/config/debug.h @@ -18,7 +18,11 @@ // Internal config header that is only included through thrust/detail/config/config.h +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #ifndef THRUST_DEBUG # ifndef NDEBUG diff --git a/thrust/thrust/detail/config/deprecated.h b/thrust/thrust/detail/config/deprecated.h index fa8263932d2..0ec83a15dc7 100644 --- a/thrust/thrust/detail/config/deprecated.h +++ b/thrust/thrust/detail/config/deprecated.h @@ -22,7 +22,11 @@ // Internal config header that is only included through thrust/detail/config/config.h +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/config/device_system.h b/thrust/thrust/detail/config/device_system.h index 6da6c18f117..188202276ae 100644 --- a/thrust/thrust/detail/config/device_system.h +++ b/thrust/thrust/detail/config/device_system.h @@ -18,7 +18,11 @@ // Internal config header that is only included through thrust/detail/config/config.h +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // reserve 0 for undefined #define THRUST_DEVICE_SYSTEM_CUDA 1 diff --git a/thrust/thrust/detail/config/exec_check_disable.h b/thrust/thrust/detail/config/exec_check_disable.h index 7ddff361464..8a9811f86d3 100644 --- a/thrust/thrust/detail/config/exec_check_disable.h +++ b/thrust/thrust/detail/config/exec_check_disable.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // #pragma nv_exec_check_disable is only recognized by NVCC. Having a macro // expand to a #pragma (rather than _Pragma) only works with NVCC's compilation diff --git a/thrust/thrust/detail/config/forceinline.h b/thrust/thrust/detail/config/forceinline.h index 9dec0d3c568..c90124cb8e7 100644 --- a/thrust/thrust/detail/config/forceinline.h +++ b/thrust/thrust/detail/config/forceinline.h @@ -22,7 +22,11 @@ // Internal config header that is only included through thrust/detail/config/config.h +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if defined(__CUDACC__) || defined(_NVHPC_CUDA) diff --git a/thrust/thrust/detail/config/global_workarounds.h b/thrust/thrust/detail/config/global_workarounds.h index ac8140bd479..e16de143b55 100644 --- a/thrust/thrust/detail/config/global_workarounds.h +++ b/thrust/thrust/detail/config/global_workarounds.h @@ -18,7 +18,11 @@ // Internal config header that is only included through thrust/detail/config/config.h +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/detail/config/host_device.h b/thrust/thrust/detail/config/host_device.h index 681e9722f42..b4b4a26be9f 100644 --- a/thrust/thrust/detail/config/host_device.h +++ b/thrust/thrust/detail/config/host_device.h @@ -22,7 +22,11 @@ // Internal config header that is only included through thrust/detail/config/config.h +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // since nvcc defines __host__ and __device__ for us, // and only nvcc knows what to do with __host__ and __device__, diff --git a/thrust/thrust/detail/config/host_system.h b/thrust/thrust/detail/config/host_system.h index 7b8681df390..aab787a9ffd 100644 --- a/thrust/thrust/detail/config/host_system.h +++ b/thrust/thrust/detail/config/host_system.h @@ -18,7 +18,11 @@ // Internal config header that is only included through thrust/detail/config/config.h +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // reserve 0 for undefined #define THRUST_HOST_SYSTEM_CPP 1 diff --git a/thrust/thrust/detail/config/memory_resource.h b/thrust/thrust/detail/config/memory_resource.h index 0b5e80ea6b0..a8a4f18971e 100644 --- a/thrust/thrust/detail/config/memory_resource.h +++ b/thrust/thrust/detail/config/memory_resource.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/detail/config/namespace.h b/thrust/thrust/detail/config/namespace.h index 97ecc63fac5..94cbbbbe6eb 100644 --- a/thrust/thrust/detail/config/namespace.h +++ b/thrust/thrust/detail/config/namespace.h @@ -18,7 +18,11 @@ // Internal config header that is only included through thrust/detail/config/config.h +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/config/simple_defines.h b/thrust/thrust/detail/config/simple_defines.h index 6036176649a..c99d7ab2a40 100644 --- a/thrust/thrust/detail/config/simple_defines.h +++ b/thrust/thrust/detail/config/simple_defines.h @@ -22,7 +22,11 @@ // Internal config header that is only included through thrust/detail/config/config.h +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #define THRUST_UNKNOWN 0 #define THRUST_FALSE 0 diff --git a/thrust/thrust/detail/contiguous_storage.h b/thrust/thrust/detail/contiguous_storage.h index 266445d7986..3ed000a26b6 100644 --- a/thrust/thrust/detail/contiguous_storage.h +++ b/thrust/thrust/detail/contiguous_storage.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/contiguous_storage.inl b/thrust/thrust/detail/contiguous_storage.inl index 80de84046ac..ded03e01710 100644 --- a/thrust/thrust/detail/contiguous_storage.inl +++ b/thrust/thrust/detail/contiguous_storage.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/copy.h b/thrust/thrust/detail/copy.h index 770aecff62f..59d0f264b0b 100644 --- a/thrust/thrust/detail/copy.h +++ b/thrust/thrust/detail/copy.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/detail/copy.inl b/thrust/thrust/detail/copy.inl index 9650ee579e1..ada0aa5d2bd 100644 --- a/thrust/thrust/detail/copy.inl +++ b/thrust/thrust/detail/copy.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/copy_if.h b/thrust/thrust/detail/copy_if.h index 6b211ecff87..a7a72734665 100644 --- a/thrust/thrust/detail/copy_if.h +++ b/thrust/thrust/detail/copy_if.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/detail/copy_if.inl b/thrust/thrust/detail/copy_if.inl index c5cdf59d549..a013328bf85 100644 --- a/thrust/thrust/detail/copy_if.inl +++ b/thrust/thrust/detail/copy_if.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/count.h b/thrust/thrust/detail/count.h index 2dbfb5b951a..cc513f9bb75 100644 --- a/thrust/thrust/detail/count.h +++ b/thrust/thrust/detail/count.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/detail/count.inl b/thrust/thrust/detail/count.inl index 652bd674027..c896e740859 100644 --- a/thrust/thrust/detail/count.inl +++ b/thrust/thrust/detail/count.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/cpp11_required.h b/thrust/thrust/detail/cpp11_required.h index e124dfee36a..6447d0eba7d 100644 --- a/thrust/thrust/detail/cpp11_required.h +++ b/thrust/thrust/detail/cpp11_required.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #ifndef THRUST_CPP11_REQUIRED_NO_ERROR # if THRUST_CPP_DIALECT < 2011 diff --git a/thrust/thrust/detail/cpp14_required.h b/thrust/thrust/detail/cpp14_required.h index 5b2a15eaf2d..27ed1bd7d96 100644 --- a/thrust/thrust/detail/cpp14_required.h +++ b/thrust/thrust/detail/cpp14_required.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #ifndef THRUST_CPP14_REQUIRED_NO_ERROR # if THRUST_CPP_DIALECT < 2014 diff --git a/thrust/thrust/detail/cstdint.h b/thrust/thrust/detail/cstdint.h index ffac6fc73cf..d9f5fd595db 100644 --- a/thrust/thrust/detail/cstdint.h +++ b/thrust/thrust/detail/cstdint.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if (THRUST_HOST_COMPILER == THRUST_HOST_COMPILER_GCC) || \ (THRUST_HOST_COMPILER == THRUST_HOST_COMPILER_CLANG) || \ diff --git a/thrust/thrust/detail/dependencies_aware_execution_policy.h b/thrust/thrust/detail/dependencies_aware_execution_policy.h index b03d0c57465..d781daf2428 100644 --- a/thrust/thrust/detail/dependencies_aware_execution_policy.h +++ b/thrust/thrust/detail/dependencies_aware_execution_policy.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2011 diff --git a/thrust/thrust/detail/device_delete.inl b/thrust/thrust/detail/device_delete.inl index 95762be3ded..6b86808633d 100644 --- a/thrust/thrust/detail/device_delete.inl +++ b/thrust/thrust/detail/device_delete.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/device_free.inl b/thrust/thrust/detail/device_free.inl index a9b5ef2a210..bc3ccbb30dd 100644 --- a/thrust/thrust/detail/device_free.inl +++ b/thrust/thrust/detail/device_free.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/device_malloc.inl b/thrust/thrust/detail/device_malloc.inl index de41eb15db1..aaf5887b02f 100644 --- a/thrust/thrust/detail/device_malloc.inl +++ b/thrust/thrust/detail/device_malloc.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/device_new.inl b/thrust/thrust/detail/device_new.inl index e3a8a1aae95..b6578a662ca 100644 --- a/thrust/thrust/detail/device_new.inl +++ b/thrust/thrust/detail/device_new.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/device_ptr.inl b/thrust/thrust/detail/device_ptr.inl index ec754dadd05..d980f45dda1 100644 --- a/thrust/thrust/detail/device_ptr.inl +++ b/thrust/thrust/detail/device_ptr.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/distance.inl b/thrust/thrust/detail/distance.inl index 467cddf3566..452469cb4e1 100644 --- a/thrust/thrust/detail/distance.inl +++ b/thrust/thrust/detail/distance.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/equal.inl b/thrust/thrust/detail/equal.inl index a00c5c56527..02d9686691c 100644 --- a/thrust/thrust/detail/equal.inl +++ b/thrust/thrust/detail/equal.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/event_error.h b/thrust/thrust/detail/event_error.h index 9d26ea2a649..90bfafcd887 100644 --- a/thrust/thrust/detail/event_error.h +++ b/thrust/thrust/detail/event_error.h @@ -21,7 +21,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2014 diff --git a/thrust/thrust/detail/execute_with_allocator.h b/thrust/thrust/detail/execute_with_allocator.h index 1450541c908..a41a2c205fc 100644 --- a/thrust/thrust/detail/execute_with_allocator.h +++ b/thrust/thrust/detail/execute_with_allocator.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/execute_with_allocator_fwd.h b/thrust/thrust/detail/execute_with_allocator_fwd.h index cd7cde0bb4b..8c5cec162c9 100644 --- a/thrust/thrust/detail/execute_with_allocator_fwd.h +++ b/thrust/thrust/detail/execute_with_allocator_fwd.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/detail/execute_with_dependencies.h b/thrust/thrust/detail/execute_with_dependencies.h index 97622e84c13..834f8868ce6 100644 --- a/thrust/thrust/detail/execute_with_dependencies.h +++ b/thrust/thrust/detail/execute_with_dependencies.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2011 diff --git a/thrust/thrust/detail/execution_policy.h b/thrust/thrust/detail/execution_policy.h index ca3d52b83d0..87857a51d0a 100644 --- a/thrust/thrust/detail/execution_policy.h +++ b/thrust/thrust/detail/execution_policy.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/detail/extrema.inl b/thrust/thrust/detail/extrema.inl index f1fb93d81b8..cfa21741109 100644 --- a/thrust/thrust/detail/extrema.inl +++ b/thrust/thrust/detail/extrema.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/fill.inl b/thrust/thrust/detail/fill.inl index e0118d28884..0ba85a6f1e0 100644 --- a/thrust/thrust/detail/fill.inl +++ b/thrust/thrust/detail/fill.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/find.inl b/thrust/thrust/detail/find.inl index f5cbeff21c4..621a2cd8e4b 100644 --- a/thrust/thrust/detail/find.inl +++ b/thrust/thrust/detail/find.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/for_each.inl b/thrust/thrust/detail/for_each.inl index 1f8d5b81140..1f5111ade7c 100644 --- a/thrust/thrust/detail/for_each.inl +++ b/thrust/thrust/detail/for_each.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/function.h b/thrust/thrust/detail/function.h index 31e33fb1bb8..14b288bf94e 100644 --- a/thrust/thrust/detail/function.h +++ b/thrust/thrust/detail/function.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/detail/functional.inl b/thrust/thrust/detail/functional.inl index 0ae399b3c1e..bf56fce23a2 100644 --- a/thrust/thrust/detail/functional.inl +++ b/thrust/thrust/detail/functional.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/detail/functional/actor.h b/thrust/thrust/detail/functional/actor.h index 967dc3ed7e3..3dec8892e7d 100644 --- a/thrust/thrust/detail/functional/actor.h +++ b/thrust/thrust/detail/functional/actor.h @@ -27,7 +27,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/functional/actor.inl b/thrust/thrust/detail/functional/actor.inl index da0587af033..08860a6c56c 100644 --- a/thrust/thrust/detail/functional/actor.inl +++ b/thrust/thrust/detail/functional/actor.inl @@ -27,7 +27,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/functional/argument.h b/thrust/thrust/detail/functional/argument.h index 39c79707619..4877667def1 100644 --- a/thrust/thrust/detail/functional/argument.h +++ b/thrust/thrust/detail/functional/argument.h @@ -27,7 +27,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/detail/functional/composite.h b/thrust/thrust/detail/functional/composite.h index 65751f5f236..e8810a51f01 100644 --- a/thrust/thrust/detail/functional/composite.h +++ b/thrust/thrust/detail/functional/composite.h @@ -27,7 +27,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/functional/operators.h b/thrust/thrust/detail/functional/operators.h index 8aa5998e52d..74804745f82 100644 --- a/thrust/thrust/detail/functional/operators.h +++ b/thrust/thrust/detail/functional/operators.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/functional/operators/arithmetic_operators.h b/thrust/thrust/detail/functional/operators/arithmetic_operators.h index 081c7c2b425..238f2e5698c 100644 --- a/thrust/thrust/detail/functional/operators/arithmetic_operators.h +++ b/thrust/thrust/detail/functional/operators/arithmetic_operators.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/functional/operators/assignment_operator.h b/thrust/thrust/detail/functional/operators/assignment_operator.h index 61a3076284a..62f93ce710b 100644 --- a/thrust/thrust/detail/functional/operators/assignment_operator.h +++ b/thrust/thrust/detail/functional/operators/assignment_operator.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/functional/operators/bitwise_operators.h b/thrust/thrust/detail/functional/operators/bitwise_operators.h index 5f1697a972b..b49a464aba6 100644 --- a/thrust/thrust/detail/functional/operators/bitwise_operators.h +++ b/thrust/thrust/detail/functional/operators/bitwise_operators.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/functional/operators/compound_assignment_operators.h b/thrust/thrust/detail/functional/operators/compound_assignment_operators.h index 830fd227f8a..61fc6f5971e 100644 --- a/thrust/thrust/detail/functional/operators/compound_assignment_operators.h +++ b/thrust/thrust/detail/functional/operators/compound_assignment_operators.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/functional/operators/logical_operators.h b/thrust/thrust/detail/functional/operators/logical_operators.h index 1b218db830f..a30850b5886 100644 --- a/thrust/thrust/detail/functional/operators/logical_operators.h +++ b/thrust/thrust/detail/functional/operators/logical_operators.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/functional/operators/operator_adaptors.h b/thrust/thrust/detail/functional/operators/operator_adaptors.h index 2169f5349b3..edf7b7bdff3 100644 --- a/thrust/thrust/detail/functional/operators/operator_adaptors.h +++ b/thrust/thrust/detail/functional/operators/operator_adaptors.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/functional/operators/relational_operators.h b/thrust/thrust/detail/functional/operators/relational_operators.h index 54ffc50becf..fb55c34627d 100644 --- a/thrust/thrust/detail/functional/operators/relational_operators.h +++ b/thrust/thrust/detail/functional/operators/relational_operators.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/functional/placeholder.h b/thrust/thrust/detail/functional/placeholder.h index a180e6cf58b..19b40de8722 100644 --- a/thrust/thrust/detail/functional/placeholder.h +++ b/thrust/thrust/detail/functional/placeholder.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/functional/value.h b/thrust/thrust/detail/functional/value.h index 66f6dde7340..0b30a0cf39b 100644 --- a/thrust/thrust/detail/functional/value.h +++ b/thrust/thrust/detail/functional/value.h @@ -27,7 +27,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/detail/gather.inl b/thrust/thrust/detail/gather.inl index 1b39d309fbe..9488c4caf15 100644 --- a/thrust/thrust/detail/gather.inl +++ b/thrust/thrust/detail/gather.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/generate.inl b/thrust/thrust/detail/generate.inl index db008c4f258..8e3924c2810 100644 --- a/thrust/thrust/detail/generate.inl +++ b/thrust/thrust/detail/generate.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/get_iterator_value.h b/thrust/thrust/detail/get_iterator_value.h index c54299267e0..c5828ff2a6b 100644 --- a/thrust/thrust/detail/get_iterator_value.h +++ b/thrust/thrust/detail/get_iterator_value.h @@ -17,7 +17,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/inner_product.inl b/thrust/thrust/detail/inner_product.inl index b1bd4b5b529..373d15af0be 100644 --- a/thrust/thrust/detail/inner_product.inl +++ b/thrust/thrust/detail/inner_product.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/integer_math.h b/thrust/thrust/detail/integer_math.h index f880196c966..c5640493f95 100644 --- a/thrust/thrust/detail/integer_math.h +++ b/thrust/thrust/detail/integer_math.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/integer_traits.h b/thrust/thrust/detail/integer_traits.h index 89c93ec63a9..cafea573f23 100644 --- a/thrust/thrust/detail/integer_traits.h +++ b/thrust/thrust/detail/integer_traits.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/internal_functional.h b/thrust/thrust/detail/internal_functional.h index d43cb938b99..585592ebc14 100644 --- a/thrust/thrust/detail/internal_functional.h +++ b/thrust/thrust/detail/internal_functional.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/logical.inl b/thrust/thrust/detail/logical.inl index 60b366f59a4..30992bbaa46 100644 --- a/thrust/thrust/detail/logical.inl +++ b/thrust/thrust/detail/logical.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/malloc_and_free.h b/thrust/thrust/detail/malloc_and_free.h index dc80da2ed36..a03df639d44 100644 --- a/thrust/thrust/detail/malloc_and_free.h +++ b/thrust/thrust/detail/malloc_and_free.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/memory_algorithms.h b/thrust/thrust/detail/memory_algorithms.h index 48ea6d876d3..05d68f043fa 100644 --- a/thrust/thrust/detail/memory_algorithms.h +++ b/thrust/thrust/detail/memory_algorithms.h @@ -10,7 +10,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/memory_wrapper.h b/thrust/thrust/detail/memory_wrapper.h index 236ec530dea..1df1dfcb813 100644 --- a/thrust/thrust/detail/memory_wrapper.h +++ b/thrust/thrust/detail/memory_wrapper.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // When a compiler uses Thrust as part of its implementation of Standard C++ // algorithms, a cycle of included files may result when Thrust code tries to diff --git a/thrust/thrust/detail/merge.inl b/thrust/thrust/detail/merge.inl index 44aa1233aff..64b1f5f2ee1 100644 --- a/thrust/thrust/detail/merge.inl +++ b/thrust/thrust/detail/merge.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/minmax.h b/thrust/thrust/detail/minmax.h index f1da13893f6..bbc54d47537 100644 --- a/thrust/thrust/detail/minmax.h +++ b/thrust/thrust/detail/minmax.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/detail/mismatch.inl b/thrust/thrust/detail/mismatch.inl index 581e7c01850..e0dee618395 100644 --- a/thrust/thrust/detail/mismatch.inl +++ b/thrust/thrust/detail/mismatch.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/modern_gcc_required.h b/thrust/thrust/detail/modern_gcc_required.h index 744e64e098b..517d285a2c8 100644 --- a/thrust/thrust/detail/modern_gcc_required.h +++ b/thrust/thrust/detail/modern_gcc_required.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #ifndef THRUST_MODERN_GCC_REQUIRED_NO_ERROR # if defined(THRUST_GCC_VERSION) && !defined(THRUST_MODERN_GCC) diff --git a/thrust/thrust/detail/mpl/math.h b/thrust/thrust/detail/mpl/math.h index a3ae2b85428..ccdba5ce3b2 100644 --- a/thrust/thrust/detail/mpl/math.h +++ b/thrust/thrust/detail/mpl/math.h @@ -24,7 +24,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/detail/numeric_traits.h b/thrust/thrust/detail/numeric_traits.h index 89171fe7d24..8e1fa8e5936 100644 --- a/thrust/thrust/detail/numeric_traits.h +++ b/thrust/thrust/detail/numeric_traits.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/numeric_wrapper.h b/thrust/thrust/detail/numeric_wrapper.h index c8f70725241..0460fba98d6 100644 --- a/thrust/thrust/detail/numeric_wrapper.h +++ b/thrust/thrust/detail/numeric_wrapper.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // When a compiler uses Thrust as part of its implementation of Standard C++ // algorithms, a cycle of included files may result when Thrust code tries to diff --git a/thrust/thrust/detail/overlapped_copy.h b/thrust/thrust/detail/overlapped_copy.h index 7ef6642b79b..7d4f5dc2ada 100644 --- a/thrust/thrust/detail/overlapped_copy.h +++ b/thrust/thrust/detail/overlapped_copy.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/pair.inl b/thrust/thrust/detail/pair.inl index 4c27e763a4c..3ea1d0f767a 100644 --- a/thrust/thrust/detail/pair.inl +++ b/thrust/thrust/detail/pair.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/partition.inl b/thrust/thrust/detail/partition.inl index 6b7dfa00699..5a72aad321e 100644 --- a/thrust/thrust/detail/partition.inl +++ b/thrust/thrust/detail/partition.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/pointer.h b/thrust/thrust/detail/pointer.h index 6b85dcc530a..3dab11a58b1 100644 --- a/thrust/thrust/detail/pointer.h +++ b/thrust/thrust/detail/pointer.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/pointer.inl b/thrust/thrust/detail/pointer.inl index 09cbbd2c9f2..f8d9f20e8f0 100644 --- a/thrust/thrust/detail/pointer.inl +++ b/thrust/thrust/detail/pointer.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/preprocessor.h b/thrust/thrust/detail/preprocessor.h index 034e9b977b4..a077405d84d 100644 --- a/thrust/thrust/detail/preprocessor.h +++ b/thrust/thrust/detail/preprocessor.h @@ -11,7 +11,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC /////////////////////////////////////////////////////////////////////////////// diff --git a/thrust/thrust/detail/range/head_flags.h b/thrust/thrust/detail/range/head_flags.h index a74b6c91a88..188c0fc67f8 100644 --- a/thrust/thrust/detail/range/head_flags.h +++ b/thrust/thrust/detail/range/head_flags.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/range/tail_flags.h b/thrust/thrust/detail/range/tail_flags.h index 356d1a61201..10126e73f76 100644 --- a/thrust/thrust/detail/range/tail_flags.h +++ b/thrust/thrust/detail/range/tail_flags.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/raw_pointer_cast.h b/thrust/thrust/detail/raw_pointer_cast.h index f2980fc0640..7f72b30c293 100644 --- a/thrust/thrust/detail/raw_pointer_cast.h +++ b/thrust/thrust/detail/raw_pointer_cast.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/detail/raw_reference_cast.h b/thrust/thrust/detail/raw_reference_cast.h index 949705b72df..acdb1c941e9 100644 --- a/thrust/thrust/detail/raw_reference_cast.h +++ b/thrust/thrust/detail/raw_reference_cast.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/reduce.inl b/thrust/thrust/detail/reduce.inl index bb7b42298a8..86a82ab30a1 100644 --- a/thrust/thrust/detail/reduce.inl +++ b/thrust/thrust/detail/reduce.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/reference.h b/thrust/thrust/detail/reference.h index 226debeeb79..f1be715a9f5 100644 --- a/thrust/thrust/detail/reference.h +++ b/thrust/thrust/detail/reference.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/reference_forward_declaration.h b/thrust/thrust/detail/reference_forward_declaration.h index 7d585ff2df1..a412dc5bc4f 100644 --- a/thrust/thrust/detail/reference_forward_declaration.h +++ b/thrust/thrust/detail/reference_forward_declaration.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/detail/remove.inl b/thrust/thrust/detail/remove.inl index fb3208cdf4e..efd99651d1d 100644 --- a/thrust/thrust/detail/remove.inl +++ b/thrust/thrust/detail/remove.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/replace.inl b/thrust/thrust/detail/replace.inl index 5b4a2c632ee..7dd797b12ae 100644 --- a/thrust/thrust/detail/replace.inl +++ b/thrust/thrust/detail/replace.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/reverse.inl b/thrust/thrust/detail/reverse.inl index 9a262b00f78..128af196874 100644 --- a/thrust/thrust/detail/reverse.inl +++ b/thrust/thrust/detail/reverse.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/scan.inl b/thrust/thrust/detail/scan.inl index e263384d7d9..7300ff4c3a4 100644 --- a/thrust/thrust/detail/scan.inl +++ b/thrust/thrust/detail/scan.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/scatter.inl b/thrust/thrust/detail/scatter.inl index 257ff73516e..115020afb47 100644 --- a/thrust/thrust/detail/scatter.inl +++ b/thrust/thrust/detail/scatter.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/select_system.h b/thrust/thrust/detail/select_system.h index 45c130e8462..45afb93e33d 100644 --- a/thrust/thrust/detail/select_system.h +++ b/thrust/thrust/detail/select_system.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2011 diff --git a/thrust/thrust/detail/seq.h b/thrust/thrust/detail/seq.h index c2adf711fbe..13df612cb20 100644 --- a/thrust/thrust/detail/seq.h +++ b/thrust/thrust/detail/seq.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/sequence.inl b/thrust/thrust/detail/sequence.inl index 9f9a6c17bfe..6ae4180284b 100644 --- a/thrust/thrust/detail/sequence.inl +++ b/thrust/thrust/detail/sequence.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/set_operations.inl b/thrust/thrust/detail/set_operations.inl index 574d9b7a2b1..e993b583188 100644 --- a/thrust/thrust/detail/set_operations.inl +++ b/thrust/thrust/detail/set_operations.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/shuffle.inl b/thrust/thrust/detail/shuffle.inl index e6efaf31295..d34454cb405 100644 --- a/thrust/thrust/detail/shuffle.inl +++ b/thrust/thrust/detail/shuffle.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2011 diff --git a/thrust/thrust/detail/sort.inl b/thrust/thrust/detail/sort.inl index 23da6d067dd..6b6f5ba639e 100644 --- a/thrust/thrust/detail/sort.inl +++ b/thrust/thrust/detail/sort.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/static_assert.h b/thrust/thrust/detail/static_assert.h index f368e033934..dad671caf2b 100644 --- a/thrust/thrust/detail/static_assert.h +++ b/thrust/thrust/detail/static_assert.h @@ -27,7 +27,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/static_map.h b/thrust/thrust/detail/static_map.h index 8b4d3724106..c6a69981714 100644 --- a/thrust/thrust/detail/static_map.h +++ b/thrust/thrust/detail/static_map.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC THRUST_NAMESPACE_BEGIN namespace detail diff --git a/thrust/thrust/detail/swap.h b/thrust/thrust/detail/swap.h index 549194d6002..41782b12ef2 100644 --- a/thrust/thrust/detail/swap.h +++ b/thrust/thrust/detail/swap.h @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/detail/swap.inl b/thrust/thrust/detail/swap.inl index 3d0e18f5753..3d11608821e 100644 --- a/thrust/thrust/detail/swap.inl +++ b/thrust/thrust/detail/swap.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/swap_ranges.inl b/thrust/thrust/detail/swap_ranges.inl index 7e5b83e73bc..0e834ac36ad 100644 --- a/thrust/thrust/detail/swap_ranges.inl +++ b/thrust/thrust/detail/swap_ranges.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/tabulate.inl b/thrust/thrust/detail/tabulate.inl index d430b34f1f2..7f56d95f1aa 100644 --- a/thrust/thrust/detail/tabulate.inl +++ b/thrust/thrust/detail/tabulate.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/temporary_array.h b/thrust/thrust/detail/temporary_array.h index 56fd01d84c5..5e938a96dc0 100644 --- a/thrust/thrust/detail/temporary_array.h +++ b/thrust/thrust/detail/temporary_array.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC THRUST_NAMESPACE_BEGIN namespace detail diff --git a/thrust/thrust/detail/temporary_array.inl b/thrust/thrust/detail/temporary_array.inl index 58473d3b17c..6edde810008 100644 --- a/thrust/thrust/detail/temporary_array.inl +++ b/thrust/thrust/detail/temporary_array.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/temporary_buffer.h b/thrust/thrust/detail/temporary_buffer.h index 5b7f4d5aef1..a32c014635d 100644 --- a/thrust/thrust/detail/temporary_buffer.h +++ b/thrust/thrust/detail/temporary_buffer.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/transform.inl b/thrust/thrust/detail/transform.inl index 0b42eca8fbd..0999bca04ac 100644 --- a/thrust/thrust/detail/transform.inl +++ b/thrust/thrust/detail/transform.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/transform_reduce.inl b/thrust/thrust/detail/transform_reduce.inl index ba46c6d3a32..16b41010e61 100644 --- a/thrust/thrust/detail/transform_reduce.inl +++ b/thrust/thrust/detail/transform_reduce.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/transform_scan.inl b/thrust/thrust/detail/transform_scan.inl index 6bb3e259694..f78fc055689 100644 --- a/thrust/thrust/detail/transform_scan.inl +++ b/thrust/thrust/detail/transform_scan.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/trivial_sequence.h b/thrust/thrust/detail/trivial_sequence.h index 2efdb8272dc..df70462c265 100644 --- a/thrust/thrust/detail/trivial_sequence.h +++ b/thrust/thrust/detail/trivial_sequence.h @@ -25,7 +25,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/tuple.inl b/thrust/thrust/detail/tuple.inl index fae7c3b4ebb..0e4c26d1b23 100644 --- a/thrust/thrust/detail/tuple.inl +++ b/thrust/thrust/detail/tuple.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/tuple_algorithms.h b/thrust/thrust/detail/tuple_algorithms.h index f285d094dac..f75f3f63ac8 100644 --- a/thrust/thrust/detail/tuple_algorithms.h +++ b/thrust/thrust/detail/tuple_algorithms.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2011 diff --git a/thrust/thrust/detail/tuple_meta_transform.h b/thrust/thrust/detail/tuple_meta_transform.h index 15a4dbd0393..9ecfe113ab8 100644 --- a/thrust/thrust/detail/tuple_meta_transform.h +++ b/thrust/thrust/detail/tuple_meta_transform.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/tuple_transform.h b/thrust/thrust/detail/tuple_transform.h index 94c9e800cfe..0be5814cd00 100644 --- a/thrust/thrust/detail/tuple_transform.h +++ b/thrust/thrust/detail/tuple_transform.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/type_deduction.h b/thrust/thrust/detail/type_deduction.h index b9046b3fd45..d861400b6ec 100644 --- a/thrust/thrust/detail/type_deduction.h +++ b/thrust/thrust/detail/type_deduction.h @@ -9,7 +9,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2011 diff --git a/thrust/thrust/detail/type_traits.h b/thrust/thrust/detail/type_traits.h index 444e18b2c40..1d19fc7b838 100644 --- a/thrust/thrust/detail/type_traits.h +++ b/thrust/thrust/detail/type_traits.h @@ -24,7 +24,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/detail/type_traits/function_traits.h b/thrust/thrust/detail/type_traits/function_traits.h index 0eb866fc110..7565b5a5b47 100644 --- a/thrust/thrust/detail/type_traits/function_traits.h +++ b/thrust/thrust/detail/type_traits/function_traits.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/type_traits/has_member_function.h b/thrust/thrust/detail/type_traits/has_member_function.h index a8bf6747210..f12802d9d8a 100644 --- a/thrust/thrust/detail/type_traits/has_member_function.h +++ b/thrust/thrust/detail/type_traits/has_member_function.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/detail/type_traits/has_nested_type.h b/thrust/thrust/detail/type_traits/has_nested_type.h index eb922f9c603..860514f35d2 100644 --- a/thrust/thrust/detail/type_traits/has_nested_type.h +++ b/thrust/thrust/detail/type_traits/has_nested_type.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/detail/type_traits/has_trivial_assign.h b/thrust/thrust/detail/type_traits/has_trivial_assign.h index f83ec0ff43e..8d057b72033 100644 --- a/thrust/thrust/detail/type_traits/has_trivial_assign.h +++ b/thrust/thrust/detail/type_traits/has_trivial_assign.h @@ -24,7 +24,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/type_traits/is_call_possible.h b/thrust/thrust/detail/type_traits/is_call_possible.h index ff2b98e6854..cbc231e8760 100644 --- a/thrust/thrust/detail/type_traits/is_call_possible.h +++ b/thrust/thrust/detail/type_traits/is_call_possible.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/type_traits/is_metafunction_defined.h b/thrust/thrust/detail/type_traits/is_metafunction_defined.h index 9f877dd5f4c..5e2c217322e 100644 --- a/thrust/thrust/detail/type_traits/is_metafunction_defined.h +++ b/thrust/thrust/detail/type_traits/is_metafunction_defined.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/type_traits/iterator/is_discard_iterator.h b/thrust/thrust/detail/type_traits/iterator/is_discard_iterator.h index 619a62608a3..218273ff438 100644 --- a/thrust/thrust/detail/type_traits/iterator/is_discard_iterator.h +++ b/thrust/thrust/detail/type_traits/iterator/is_discard_iterator.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/type_traits/iterator/is_output_iterator.h b/thrust/thrust/detail/type_traits/iterator/is_output_iterator.h index c35a60b1266..fdf95e0fae7 100644 --- a/thrust/thrust/detail/type_traits/iterator/is_output_iterator.h +++ b/thrust/thrust/detail/type_traits/iterator/is_output_iterator.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/type_traits/minimum_type.h b/thrust/thrust/detail/type_traits/minimum_type.h index af8cbc60e7c..d520fd5f827 100644 --- a/thrust/thrust/detail/type_traits/minimum_type.h +++ b/thrust/thrust/detail/type_traits/minimum_type.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/detail/type_traits/pointer_traits.h b/thrust/thrust/detail/type_traits/pointer_traits.h index b406a82057a..e35047ba2b0 100644 --- a/thrust/thrust/detail/type_traits/pointer_traits.h +++ b/thrust/thrust/detail/type_traits/pointer_traits.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/type_traits/result_of_adaptable_function.h b/thrust/thrust/detail/type_traits/result_of_adaptable_function.h index 14ce4cb6cd5..4baf724035e 100644 --- a/thrust/thrust/detail/type_traits/result_of_adaptable_function.h +++ b/thrust/thrust/detail/type_traits/result_of_adaptable_function.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/uninitialized_copy.inl b/thrust/thrust/detail/uninitialized_copy.inl index d94dd0f93c6..bf8f6c5cfb0 100644 --- a/thrust/thrust/detail/uninitialized_copy.inl +++ b/thrust/thrust/detail/uninitialized_copy.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/uninitialized_fill.inl b/thrust/thrust/detail/uninitialized_fill.inl index 20abc74ac8d..1dc65edb916 100644 --- a/thrust/thrust/detail/uninitialized_fill.inl +++ b/thrust/thrust/detail/uninitialized_fill.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/unique.inl b/thrust/thrust/detail/unique.inl index f18d3c7d0a7..1a5b827d16c 100644 --- a/thrust/thrust/detail/unique.inl +++ b/thrust/thrust/detail/unique.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/detail/use_default.h b/thrust/thrust/detail/use_default.h index fd117d6b5ac..745547ca5f7 100644 --- a/thrust/thrust/detail/use_default.h +++ b/thrust/thrust/detail/use_default.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/detail/util/align.h b/thrust/thrust/detail/util/align.h index 3785ab753be..c00a000f598 100644 --- a/thrust/thrust/detail/util/align.h +++ b/thrust/thrust/detail/util/align.h @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/detail/vector_base.h b/thrust/thrust/detail/vector_base.h index 3fe38140674..0657cbe25b2 100644 --- a/thrust/thrust/detail/vector_base.h +++ b/thrust/thrust/detail/vector_base.h @@ -24,7 +24,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/detail/vector_base.inl b/thrust/thrust/detail/vector_base.inl index 2d3dd210c5e..7d6bf5dd2a9 100644 --- a/thrust/thrust/detail/vector_base.inl +++ b/thrust/thrust/detail/vector_base.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/device_allocator.h b/thrust/thrust/device_allocator.h index e9e646d887a..a0b240a66cc 100644 --- a/thrust/thrust/device_allocator.h +++ b/thrust/thrust/device_allocator.h @@ -24,7 +24,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/device_delete.h b/thrust/thrust/device_delete.h index 67fe89ea273..fb3af0316fe 100644 --- a/thrust/thrust/device_delete.h +++ b/thrust/thrust/device_delete.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/device_free.h b/thrust/thrust/device_free.h index 77d0bb10412..410201cbbdd 100644 --- a/thrust/thrust/device_free.h +++ b/thrust/thrust/device_free.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/device_make_unique.h b/thrust/thrust/device_make_unique.h index 890dd42ae8b..6f63f4cfb70 100644 --- a/thrust/thrust/device_make_unique.h +++ b/thrust/thrust/device_make_unique.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2011 diff --git a/thrust/thrust/device_malloc.h b/thrust/thrust/device_malloc.h index 8a52f531851..ed8276dee6f 100644 --- a/thrust/thrust/device_malloc.h +++ b/thrust/thrust/device_malloc.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include // for std::size_t diff --git a/thrust/thrust/device_malloc_allocator.h b/thrust/thrust/device_malloc_allocator.h index ecc8dee0ab4..e34f3be3b14 100644 --- a/thrust/thrust/device_malloc_allocator.h +++ b/thrust/thrust/device_malloc_allocator.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/device_new.h b/thrust/thrust/device_new.h index 76692d985ae..bfd252f0b3c 100644 --- a/thrust/thrust/device_new.h +++ b/thrust/thrust/device_new.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // #include this for size_t #include diff --git a/thrust/thrust/device_new_allocator.h b/thrust/thrust/device_new_allocator.h index 32aae2ae19b..a34888140ae 100644 --- a/thrust/thrust/device_new_allocator.h +++ b/thrust/thrust/device_new_allocator.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/device_ptr.h b/thrust/thrust/device_ptr.h index 61eb8413641..8d3890c0cc8 100644 --- a/thrust/thrust/device_ptr.h +++ b/thrust/thrust/device_ptr.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/device_reference.h b/thrust/thrust/device_reference.h index 636335e5537..50601ec5179 100644 --- a/thrust/thrust/device_reference.h +++ b/thrust/thrust/device_reference.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/device_vector.h b/thrust/thrust/device_vector.h index bc45b5da5f8..47d67b412d7 100644 --- a/thrust/thrust/device_vector.h +++ b/thrust/thrust/device_vector.h @@ -24,7 +24,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/distance.h b/thrust/thrust/distance.h index 60f6988b9cb..82f045a06bb 100644 --- a/thrust/thrust/distance.h +++ b/thrust/thrust/distance.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/equal.h b/thrust/thrust/equal.h index e592786cd27..d85a36cc6b1 100644 --- a/thrust/thrust/equal.h +++ b/thrust/thrust/equal.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/event.h b/thrust/thrust/event.h index b573c672821..d7b6a5d393b 100644 --- a/thrust/thrust/event.h +++ b/thrust/thrust/event.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/execution_policy.h b/thrust/thrust/execution_policy.h index f0dd150d1cf..fe0ca84a728 100644 --- a/thrust/thrust/execution_policy.h +++ b/thrust/thrust/execution_policy.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/extrema.h b/thrust/thrust/extrema.h index a29f3b800b2..f680eb35ebf 100644 --- a/thrust/thrust/extrema.h +++ b/thrust/thrust/extrema.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/fill.h b/thrust/thrust/fill.h index 99952516767..33ff6d614c3 100644 --- a/thrust/thrust/fill.h +++ b/thrust/thrust/fill.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/find.h b/thrust/thrust/find.h index 2d07c408a36..4bfa9952203 100644 --- a/thrust/thrust/find.h +++ b/thrust/thrust/find.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/for_each.h b/thrust/thrust/for_each.h index d977920f937..1f11ea1a696 100644 --- a/thrust/thrust/for_each.h +++ b/thrust/thrust/for_each.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/functional.h b/thrust/thrust/functional.h index 33a6bc5afe7..009b5b96f44 100644 --- a/thrust/thrust/functional.h +++ b/thrust/thrust/functional.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/future.h b/thrust/thrust/future.h index 502af857846..5a896c23705 100644 --- a/thrust/thrust/future.h +++ b/thrust/thrust/future.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2014 diff --git a/thrust/thrust/gather.h b/thrust/thrust/gather.h index 0f551ef2843..b0d4553f812 100644 --- a/thrust/thrust/gather.h +++ b/thrust/thrust/gather.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/generate.h b/thrust/thrust/generate.h index bfec0965207..671383018b8 100644 --- a/thrust/thrust/generate.h +++ b/thrust/thrust/generate.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/host_vector.h b/thrust/thrust/host_vector.h index 117f3e21264..2dd00cd59c7 100644 --- a/thrust/thrust/host_vector.h +++ b/thrust/thrust/host_vector.h @@ -24,7 +24,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/inner_product.h b/thrust/thrust/inner_product.h index 78d047f423d..a4cda16172d 100644 --- a/thrust/thrust/inner_product.h +++ b/thrust/thrust/inner_product.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/iterator/constant_iterator.h b/thrust/thrust/iterator/constant_iterator.h index 5c024ab5bbf..dc773489299 100644 --- a/thrust/thrust/iterator/constant_iterator.h +++ b/thrust/thrust/iterator/constant_iterator.h @@ -24,7 +24,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/iterator/counting_iterator.h b/thrust/thrust/iterator/counting_iterator.h index 10a31b4478f..70cf6d12732 100644 --- a/thrust/thrust/iterator/counting_iterator.h +++ b/thrust/thrust/iterator/counting_iterator.h @@ -33,7 +33,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/iterator/detail/any_assign.h b/thrust/thrust/iterator/detail/any_assign.h index e3d56ebc7c3..f07ec00d86c 100644 --- a/thrust/thrust/iterator/detail/any_assign.h +++ b/thrust/thrust/iterator/detail/any_assign.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC THRUST_NAMESPACE_BEGIN namespace detail diff --git a/thrust/thrust/iterator/detail/any_system_tag.h b/thrust/thrust/iterator/detail/any_system_tag.h index a3672c71d94..e53323f807f 100644 --- a/thrust/thrust/iterator/detail/any_system_tag.h +++ b/thrust/thrust/iterator/detail/any_system_tag.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/iterator/detail/constant_iterator_base.h b/thrust/thrust/iterator/detail/constant_iterator_base.h index 7fa5ac35b40..22065dc1489 100644 --- a/thrust/thrust/iterator/detail/constant_iterator_base.h +++ b/thrust/thrust/iterator/detail/constant_iterator_base.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/iterator/detail/counting_iterator.inl b/thrust/thrust/iterator/detail/counting_iterator.inl index 6a8a2bed15a..0924ae8a9dc 100644 --- a/thrust/thrust/iterator/detail/counting_iterator.inl +++ b/thrust/thrust/iterator/detail/counting_iterator.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/iterator/detail/device_system_tag.h b/thrust/thrust/iterator/detail/device_system_tag.h index 41f1574ff28..f9518536927 100644 --- a/thrust/thrust/iterator/detail/device_system_tag.h +++ b/thrust/thrust/iterator/detail/device_system_tag.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // #include the device system's execution_policy header #define __THRUST_DEVICE_SYSTEM_TAG_HEADER <__THRUST_DEVICE_SYSTEM_ROOT/detail/execution_policy.h> diff --git a/thrust/thrust/iterator/detail/discard_iterator_base.h b/thrust/thrust/iterator/detail/discard_iterator_base.h index 2df88ddd729..aa213cd5169 100644 --- a/thrust/thrust/iterator/detail/discard_iterator_base.h +++ b/thrust/thrust/iterator/detail/discard_iterator_base.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/iterator/detail/distance_from_result.h b/thrust/thrust/iterator/detail/distance_from_result.h index 0fe4065cd45..478cdf00b98 100644 --- a/thrust/thrust/iterator/detail/distance_from_result.h +++ b/thrust/thrust/iterator/detail/distance_from_result.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/iterator/detail/host_system_tag.h b/thrust/thrust/iterator/detail/host_system_tag.h index 9482f729f84..28523ff4ef6 100644 --- a/thrust/thrust/iterator/detail/host_system_tag.h +++ b/thrust/thrust/iterator/detail/host_system_tag.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // #include the host system's execution_policy header #define __THRUST_HOST_SYSTEM_TAG_HEADER <__THRUST_HOST_SYSTEM_ROOT/detail/execution_policy.h> diff --git a/thrust/thrust/iterator/detail/is_iterator_category.h b/thrust/thrust/iterator/detail/is_iterator_category.h index 096ef2a9159..d6ccad460e9 100644 --- a/thrust/thrust/iterator/detail/is_iterator_category.h +++ b/thrust/thrust/iterator/detail/is_iterator_category.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/iterator/detail/iterator_adaptor_base.h b/thrust/thrust/iterator/detail/iterator_adaptor_base.h index 96ea6f90d4c..b7abacf35b7 100644 --- a/thrust/thrust/iterator/detail/iterator_adaptor_base.h +++ b/thrust/thrust/iterator/detail/iterator_adaptor_base.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/iterator/detail/iterator_category_to_system.h b/thrust/thrust/iterator/detail/iterator_category_to_system.h index 216c15144a3..68bfcfb6fae 100644 --- a/thrust/thrust/iterator/detail/iterator_category_to_system.h +++ b/thrust/thrust/iterator/detail/iterator_category_to_system.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/iterator/detail/iterator_category_to_traversal.h b/thrust/thrust/iterator/detail/iterator_category_to_traversal.h index c2528e13b71..39bd5d325ce 100644 --- a/thrust/thrust/iterator/detail/iterator_category_to_traversal.h +++ b/thrust/thrust/iterator/detail/iterator_category_to_traversal.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/iterator/detail/iterator_category_with_system_and_traversal.h b/thrust/thrust/iterator/detail/iterator_category_with_system_and_traversal.h index 027b285a5be..a06f303f377 100644 --- a/thrust/thrust/iterator/detail/iterator_category_with_system_and_traversal.h +++ b/thrust/thrust/iterator/detail/iterator_category_with_system_and_traversal.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC THRUST_NAMESPACE_BEGIN namespace detail diff --git a/thrust/thrust/iterator/detail/iterator_facade_category.h b/thrust/thrust/iterator/detail/iterator_facade_category.h index be548c66401..5b3af7ecbb0 100644 --- a/thrust/thrust/iterator/detail/iterator_facade_category.h +++ b/thrust/thrust/iterator/detail/iterator_facade_category.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/iterator/detail/iterator_traits.inl b/thrust/thrust/iterator/detail/iterator_traits.inl index c564966582b..cdc99473776 100644 --- a/thrust/thrust/iterator/detail/iterator_traits.inl +++ b/thrust/thrust/iterator/detail/iterator_traits.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/iterator/detail/iterator_traversal_tags.h b/thrust/thrust/iterator/detail/iterator_traversal_tags.h index 31db04b2903..88efd921649 100644 --- a/thrust/thrust/iterator/detail/iterator_traversal_tags.h +++ b/thrust/thrust/iterator/detail/iterator_traversal_tags.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/iterator/detail/join_iterator.h b/thrust/thrust/iterator/detail/join_iterator.h index d6593c08e31..d62099abb6b 100644 --- a/thrust/thrust/iterator/detail/join_iterator.h +++ b/thrust/thrust/iterator/detail/join_iterator.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/iterator/detail/minimum_category.h b/thrust/thrust/iterator/detail/minimum_category.h index 8b80d1d1f2b..bbbcbe08454 100644 --- a/thrust/thrust/iterator/detail/minimum_category.h +++ b/thrust/thrust/iterator/detail/minimum_category.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/iterator/detail/minimum_system.h b/thrust/thrust/iterator/detail/minimum_system.h index 49eb56c4283..e94fbc5e3d5 100644 --- a/thrust/thrust/iterator/detail/minimum_system.h +++ b/thrust/thrust/iterator/detail/minimum_system.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/iterator/detail/normal_iterator.h b/thrust/thrust/iterator/detail/normal_iterator.h index d4948b9661e..1d0511eb2bf 100644 --- a/thrust/thrust/iterator/detail/normal_iterator.h +++ b/thrust/thrust/iterator/detail/normal_iterator.h @@ -24,7 +24,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/iterator/detail/permutation_iterator_base.h b/thrust/thrust/iterator/detail/permutation_iterator_base.h index a02b0c6a8ae..33d271588e2 100644 --- a/thrust/thrust/iterator/detail/permutation_iterator_base.h +++ b/thrust/thrust/iterator/detail/permutation_iterator_base.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/iterator/detail/retag.h b/thrust/thrust/iterator/detail/retag.h index 8daa55f730b..fc3e96b1785 100644 --- a/thrust/thrust/iterator/detail/retag.h +++ b/thrust/thrust/iterator/detail/retag.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/iterator/detail/reverse_iterator.inl b/thrust/thrust/iterator/detail/reverse_iterator.inl index 37369c1e289..36b8705abba 100644 --- a/thrust/thrust/iterator/detail/reverse_iterator.inl +++ b/thrust/thrust/iterator/detail/reverse_iterator.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/iterator/detail/reverse_iterator_base.h b/thrust/thrust/iterator/detail/reverse_iterator_base.h index 107828156e2..88fd0e4e0ba 100644 --- a/thrust/thrust/iterator/detail/reverse_iterator_base.h +++ b/thrust/thrust/iterator/detail/reverse_iterator_base.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/iterator/detail/tagged_iterator.h b/thrust/thrust/iterator/detail/tagged_iterator.h index 87e4faa714d..f461ada8a80 100644 --- a/thrust/thrust/iterator/detail/tagged_iterator.h +++ b/thrust/thrust/iterator/detail/tagged_iterator.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/iterator/detail/transform_input_output_iterator.inl b/thrust/thrust/iterator/detail/transform_input_output_iterator.inl index 2f8daab6d0f..1020c3b8086 100644 --- a/thrust/thrust/iterator/detail/transform_input_output_iterator.inl +++ b/thrust/thrust/iterator/detail/transform_input_output_iterator.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/iterator/detail/transform_iterator.inl b/thrust/thrust/iterator/detail/transform_iterator.inl index 1e8f8e68011..4616e021e06 100644 --- a/thrust/thrust/iterator/detail/transform_iterator.inl +++ b/thrust/thrust/iterator/detail/transform_iterator.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/iterator/detail/transform_output_iterator.inl b/thrust/thrust/iterator/detail/transform_output_iterator.inl index f7c628296eb..94aa6288f3a 100644 --- a/thrust/thrust/iterator/detail/transform_output_iterator.inl +++ b/thrust/thrust/iterator/detail/transform_output_iterator.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/iterator/detail/tuple_of_iterator_references.h b/thrust/thrust/iterator/detail/tuple_of_iterator_references.h index 77937f37900..e7c0b2a2d51 100644 --- a/thrust/thrust/iterator/detail/tuple_of_iterator_references.h +++ b/thrust/thrust/iterator/detail/tuple_of_iterator_references.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/iterator/detail/universal_categories.h b/thrust/thrust/iterator/detail/universal_categories.h index b3f2371982e..b5410b2c442 100644 --- a/thrust/thrust/iterator/detail/universal_categories.h +++ b/thrust/thrust/iterator/detail/universal_categories.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include // XXX eliminate this file diff --git a/thrust/thrust/iterator/detail/zip_iterator.inl b/thrust/thrust/iterator/detail/zip_iterator.inl index 87ca2dcd92c..9419737d4fd 100644 --- a/thrust/thrust/iterator/detail/zip_iterator.inl +++ b/thrust/thrust/iterator/detail/zip_iterator.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/iterator/detail/zip_iterator_base.h b/thrust/thrust/iterator/detail/zip_iterator_base.h index 84fa78d5749..cfecd742ac0 100644 --- a/thrust/thrust/iterator/detail/zip_iterator_base.h +++ b/thrust/thrust/iterator/detail/zip_iterator_base.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/iterator/discard_iterator.h b/thrust/thrust/iterator/discard_iterator.h index 0db3ee44ddc..7d3b5467e62 100644 --- a/thrust/thrust/iterator/discard_iterator.h +++ b/thrust/thrust/iterator/discard_iterator.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/iterator/iterator_adaptor.h b/thrust/thrust/iterator/iterator_adaptor.h index ef7f7d95c65..89e4fd8b2c9 100644 --- a/thrust/thrust/iterator/iterator_adaptor.h +++ b/thrust/thrust/iterator/iterator_adaptor.h @@ -34,7 +34,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/iterator/iterator_categories.h b/thrust/thrust/iterator/iterator_categories.h index 4f65086e961..4b02ec6be25 100644 --- a/thrust/thrust/iterator/iterator_categories.h +++ b/thrust/thrust/iterator/iterator_categories.h @@ -33,7 +33,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/iterator/iterator_facade.h b/thrust/thrust/iterator/iterator_facade.h index f8817af1a33..e1d4e0889d8 100644 --- a/thrust/thrust/iterator/iterator_facade.h +++ b/thrust/thrust/iterator/iterator_facade.h @@ -34,7 +34,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/iterator/iterator_traits.h b/thrust/thrust/iterator/iterator_traits.h index e3bdafabb9a..7d9cf29c942 100644 --- a/thrust/thrust/iterator/iterator_traits.h +++ b/thrust/thrust/iterator/iterator_traits.h @@ -32,7 +32,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/iterator/permutation_iterator.h b/thrust/thrust/iterator/permutation_iterator.h index b67d106c39d..f40aecbc907 100644 --- a/thrust/thrust/iterator/permutation_iterator.h +++ b/thrust/thrust/iterator/permutation_iterator.h @@ -33,7 +33,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/iterator/retag.h b/thrust/thrust/iterator/retag.h index d8c8ca913c0..17740d3f1bd 100644 --- a/thrust/thrust/iterator/retag.h +++ b/thrust/thrust/iterator/retag.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/iterator/reverse_iterator.h b/thrust/thrust/iterator/reverse_iterator.h index 9d0fc1353d9..0f903ca4886 100644 --- a/thrust/thrust/iterator/reverse_iterator.h +++ b/thrust/thrust/iterator/reverse_iterator.h @@ -34,7 +34,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/iterator/transform_input_output_iterator.h b/thrust/thrust/iterator/transform_input_output_iterator.h index 16472cc6a6d..f050f509bdf 100644 --- a/thrust/thrust/iterator/transform_input_output_iterator.h +++ b/thrust/thrust/iterator/transform_input_output_iterator.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/iterator/transform_iterator.h b/thrust/thrust/iterator/transform_iterator.h index 7f083c6b670..3328ae38454 100644 --- a/thrust/thrust/iterator/transform_iterator.h +++ b/thrust/thrust/iterator/transform_iterator.h @@ -34,7 +34,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // #include the details first #include diff --git a/thrust/thrust/iterator/transform_output_iterator.h b/thrust/thrust/iterator/transform_output_iterator.h index 026890f14e6..d5b1f272f74 100644 --- a/thrust/thrust/iterator/transform_output_iterator.h +++ b/thrust/thrust/iterator/transform_output_iterator.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/iterator/zip_iterator.h b/thrust/thrust/iterator/zip_iterator.h index a13d16eeaaf..fb55295aaa9 100644 --- a/thrust/thrust/iterator/zip_iterator.h +++ b/thrust/thrust/iterator/zip_iterator.h @@ -33,7 +33,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/limits.h b/thrust/thrust/limits.h index 9e28f6ce923..92281ea0a59 100644 --- a/thrust/thrust/limits.h +++ b/thrust/thrust/limits.h @@ -7,7 +7,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/logical.h b/thrust/thrust/logical.h index d0690d639ec..6e4e7d4e45a 100644 --- a/thrust/thrust/logical.h +++ b/thrust/thrust/logical.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/memory.h b/thrust/thrust/memory.h index ae407b031a4..39557fe9f48 100644 --- a/thrust/thrust/memory.h +++ b/thrust/thrust/memory.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/merge.h b/thrust/thrust/merge.h index 4a4e27a14e9..85139edc52d 100644 --- a/thrust/thrust/merge.h +++ b/thrust/thrust/merge.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/mismatch.h b/thrust/thrust/mismatch.h index 5be299b3a7c..ed614df340a 100644 --- a/thrust/thrust/mismatch.h +++ b/thrust/thrust/mismatch.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/mr/allocator.h b/thrust/thrust/mr/allocator.h index 659deb193a3..e6dd57b763b 100644 --- a/thrust/thrust/mr/allocator.h +++ b/thrust/thrust/mr/allocator.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/mr/device_memory_resource.h b/thrust/thrust/mr/device_memory_resource.h index 61231b11957..6dce1a6e09b 100644 --- a/thrust/thrust/mr/device_memory_resource.h +++ b/thrust/thrust/mr/device_memory_resource.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // #include the device system's memory_resource header #define __THRUST_DEVICE_SYSTEM_MEMORY_HEADER <__THRUST_DEVICE_SYSTEM_ROOT/memory_resource.h> diff --git a/thrust/thrust/mr/disjoint_pool.h b/thrust/thrust/mr/disjoint_pool.h index 64fafac47f6..245cc91a8a0 100644 --- a/thrust/thrust/mr/disjoint_pool.h +++ b/thrust/thrust/mr/disjoint_pool.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/mr/disjoint_sync_pool.h b/thrust/thrust/mr/disjoint_sync_pool.h index 81ab94b36f3..aea7fc2a109 100644 --- a/thrust/thrust/mr/disjoint_sync_pool.h +++ b/thrust/thrust/mr/disjoint_sync_pool.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2011 diff --git a/thrust/thrust/mr/disjoint_tls_pool.h b/thrust/thrust/mr/disjoint_tls_pool.h index f0a78583acd..730f1c2a116 100644 --- a/thrust/thrust/mr/disjoint_tls_pool.h +++ b/thrust/thrust/mr/disjoint_tls_pool.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2011 diff --git a/thrust/thrust/mr/fancy_pointer_resource.h b/thrust/thrust/mr/fancy_pointer_resource.h index ba4df9f9778..3282e81ac98 100644 --- a/thrust/thrust/mr/fancy_pointer_resource.h +++ b/thrust/thrust/mr/fancy_pointer_resource.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/mr/host_memory_resource.h b/thrust/thrust/mr/host_memory_resource.h index 80c6c3a3b09..6460148d4fb 100644 --- a/thrust/thrust/mr/host_memory_resource.h +++ b/thrust/thrust/mr/host_memory_resource.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // #include the host system's memory_resource header #define __THRUST_HOST_SYSTEM_MEMORY_HEADER <__THRUST_HOST_SYSTEM_ROOT/memory_resource.h> diff --git a/thrust/thrust/mr/memory_resource.h b/thrust/thrust/mr/memory_resource.h index 69fb31a5f4e..bda6d54ce61 100644 --- a/thrust/thrust/mr/memory_resource.h +++ b/thrust/thrust/mr/memory_resource.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #ifdef THRUST_MR_STD_MR_HEADER diff --git a/thrust/thrust/mr/new.h b/thrust/thrust/mr/new.h index 7072b93d7a1..ccc788e9aca 100644 --- a/thrust/thrust/mr/new.h +++ b/thrust/thrust/mr/new.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/mr/polymorphic_adaptor.h b/thrust/thrust/mr/polymorphic_adaptor.h index 768532a848c..9114be766d9 100644 --- a/thrust/thrust/mr/polymorphic_adaptor.h +++ b/thrust/thrust/mr/polymorphic_adaptor.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/mr/pool.h b/thrust/thrust/mr/pool.h index d1f53eeac8d..2eee32ced63 100644 --- a/thrust/thrust/mr/pool.h +++ b/thrust/thrust/mr/pool.h @@ -24,7 +24,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/mr/pool_options.h b/thrust/thrust/mr/pool_options.h index c9ba81c32ba..c0346b13c95 100644 --- a/thrust/thrust/mr/pool_options.h +++ b/thrust/thrust/mr/pool_options.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/mr/sync_pool.h b/thrust/thrust/mr/sync_pool.h index 25740ad098d..6e1a338226e 100644 --- a/thrust/thrust/mr/sync_pool.h +++ b/thrust/thrust/mr/sync_pool.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2011 diff --git a/thrust/thrust/mr/tls_pool.h b/thrust/thrust/mr/tls_pool.h index ffac1b3a138..f8984d97be6 100644 --- a/thrust/thrust/mr/tls_pool.h +++ b/thrust/thrust/mr/tls_pool.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2011 diff --git a/thrust/thrust/mr/universal_memory_resource.h b/thrust/thrust/mr/universal_memory_resource.h index f6265354f69..f056fda5efc 100644 --- a/thrust/thrust/mr/universal_memory_resource.h +++ b/thrust/thrust/mr/universal_memory_resource.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/mr/validator.h b/thrust/thrust/mr/validator.h index 807ea9ae9d9..3a9c9c3da99 100644 --- a/thrust/thrust/mr/validator.h +++ b/thrust/thrust/mr/validator.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/optional.h b/thrust/thrust/optional.h index 5c96722d974..746f202db24 100644 --- a/thrust/thrust/optional.h +++ b/thrust/thrust/optional.h @@ -15,7 +15,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/pair.h b/thrust/thrust/pair.h index 699a743b621..dd3fa75698a 100644 --- a/thrust/thrust/pair.h +++ b/thrust/thrust/pair.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/partition.h b/thrust/thrust/partition.h index a58622fdc71..c98116c7fc3 100644 --- a/thrust/thrust/partition.h +++ b/thrust/thrust/partition.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/per_device_resource.h b/thrust/thrust/per_device_resource.h index 92ee5dff87c..8ee9b5d5b19 100644 --- a/thrust/thrust/per_device_resource.h +++ b/thrust/thrust/per_device_resource.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2011 diff --git a/thrust/thrust/random.h b/thrust/thrust/random.h index a6d3360f18d..223566dae01 100644 --- a/thrust/thrust/random.h +++ b/thrust/thrust/random.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include // RNGs diff --git a/thrust/thrust/random/detail/discard_block_engine.inl b/thrust/thrust/random/detail/discard_block_engine.inl index f318e751902..fc95d7e29ea 100644 --- a/thrust/thrust/random/detail/discard_block_engine.inl +++ b/thrust/thrust/random/detail/discard_block_engine.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/random/detail/linear_congruential_engine.inl b/thrust/thrust/random/detail/linear_congruential_engine.inl index b5ad4fc92f0..5058d1a912d 100644 --- a/thrust/thrust/random/detail/linear_congruential_engine.inl +++ b/thrust/thrust/random/detail/linear_congruential_engine.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/random/detail/linear_congruential_engine_discard.h b/thrust/thrust/random/detail/linear_congruential_engine_discard.h index e94e33ebe75..c6c6fd54411 100644 --- a/thrust/thrust/random/detail/linear_congruential_engine_discard.h +++ b/thrust/thrust/random/detail/linear_congruential_engine_discard.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/random/detail/linear_feedback_shift_engine.inl b/thrust/thrust/random/detail/linear_feedback_shift_engine.inl index 632663a56f4..90be369f33e 100644 --- a/thrust/thrust/random/detail/linear_feedback_shift_engine.inl +++ b/thrust/thrust/random/detail/linear_feedback_shift_engine.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/random/detail/linear_feedback_shift_engine_wordmask.h b/thrust/thrust/random/detail/linear_feedback_shift_engine_wordmask.h index edca20fd835..627ce8afd42 100644 --- a/thrust/thrust/random/detail/linear_feedback_shift_engine_wordmask.h +++ b/thrust/thrust/random/detail/linear_feedback_shift_engine_wordmask.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/random/detail/mod.h b/thrust/thrust/random/detail/mod.h index dc5f16458ae..b3f0de9445e 100644 --- a/thrust/thrust/random/detail/mod.h +++ b/thrust/thrust/random/detail/mod.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/random/detail/normal_distribution.inl b/thrust/thrust/random/detail/normal_distribution.inl index 8f1ba56e259..46c3667f95c 100644 --- a/thrust/thrust/random/detail/normal_distribution.inl +++ b/thrust/thrust/random/detail/normal_distribution.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/random/detail/normal_distribution_base.h b/thrust/thrust/random/detail/normal_distribution_base.h index 20c5259a97e..fed4f718ec7 100644 --- a/thrust/thrust/random/detail/normal_distribution_base.h +++ b/thrust/thrust/random/detail/normal_distribution_base.h @@ -25,7 +25,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/random/detail/random_core_access.h b/thrust/thrust/random/detail/random_core_access.h index 5c0f5b595ba..549e268e42f 100644 --- a/thrust/thrust/random/detail/random_core_access.h +++ b/thrust/thrust/random/detail/random_core_access.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/random/detail/subtract_with_carry_engine.inl b/thrust/thrust/random/detail/subtract_with_carry_engine.inl index bd6cebb76fd..e9518fdf0de 100644 --- a/thrust/thrust/random/detail/subtract_with_carry_engine.inl +++ b/thrust/thrust/random/detail/subtract_with_carry_engine.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/random/detail/uniform_int_distribution.inl b/thrust/thrust/random/detail/uniform_int_distribution.inl index a01d03e1326..00e9cfe1b64 100644 --- a/thrust/thrust/random/detail/uniform_int_distribution.inl +++ b/thrust/thrust/random/detail/uniform_int_distribution.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/random/detail/uniform_real_distribution.inl b/thrust/thrust/random/detail/uniform_real_distribution.inl index 767c3f8b54d..f7a7ec4074c 100644 --- a/thrust/thrust/random/detail/uniform_real_distribution.inl +++ b/thrust/thrust/random/detail/uniform_real_distribution.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/random/detail/xor_combine_engine.inl b/thrust/thrust/random/detail/xor_combine_engine.inl index 543cfa86d1b..3fbce644ac7 100644 --- a/thrust/thrust/random/detail/xor_combine_engine.inl +++ b/thrust/thrust/random/detail/xor_combine_engine.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/random/detail/xor_combine_engine_max.h b/thrust/thrust/random/detail/xor_combine_engine_max.h index abf4568717f..f450aaeebc3 100644 --- a/thrust/thrust/random/detail/xor_combine_engine_max.h +++ b/thrust/thrust/random/detail/xor_combine_engine_max.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/random/discard_block_engine.h b/thrust/thrust/random/discard_block_engine.h index 1d170808774..96c50abbd49 100644 --- a/thrust/thrust/random/discard_block_engine.h +++ b/thrust/thrust/random/discard_block_engine.h @@ -24,7 +24,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/random/linear_congruential_engine.h b/thrust/thrust/random/linear_congruential_engine.h index 587abbec8e1..63e31a2dcc3 100644 --- a/thrust/thrust/random/linear_congruential_engine.h +++ b/thrust/thrust/random/linear_congruential_engine.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/random/linear_feedback_shift_engine.h b/thrust/thrust/random/linear_feedback_shift_engine.h index ae7a3bed97a..ea25a883266 100644 --- a/thrust/thrust/random/linear_feedback_shift_engine.h +++ b/thrust/thrust/random/linear_feedback_shift_engine.h @@ -31,7 +31,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include // for size_t diff --git a/thrust/thrust/random/normal_distribution.h b/thrust/thrust/random/normal_distribution.h index b811666f986..e781e8a0272 100644 --- a/thrust/thrust/random/normal_distribution.h +++ b/thrust/thrust/random/normal_distribution.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/random/subtract_with_carry_engine.h b/thrust/thrust/random/subtract_with_carry_engine.h index fb15e111237..7f62615fc29 100644 --- a/thrust/thrust/random/subtract_with_carry_engine.h +++ b/thrust/thrust/random/subtract_with_carry_engine.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/random/uniform_int_distribution.h b/thrust/thrust/random/uniform_int_distribution.h index 75bf651d31c..7d2db7e4b07 100644 --- a/thrust/thrust/random/uniform_int_distribution.h +++ b/thrust/thrust/random/uniform_int_distribution.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/random/uniform_real_distribution.h b/thrust/thrust/random/uniform_real_distribution.h index 4fb7c42674d..bfc703a5e83 100644 --- a/thrust/thrust/random/uniform_real_distribution.h +++ b/thrust/thrust/random/uniform_real_distribution.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/random/xor_combine_engine.h b/thrust/thrust/random/xor_combine_engine.h index 1f3495a50e6..b560b85fcf4 100644 --- a/thrust/thrust/random/xor_combine_engine.h +++ b/thrust/thrust/random/xor_combine_engine.h @@ -24,7 +24,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/reduce.h b/thrust/thrust/reduce.h index bca926d60cc..8c9cc5e5172 100644 --- a/thrust/thrust/reduce.h +++ b/thrust/thrust/reduce.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/remove.h b/thrust/thrust/remove.h index 27e6b6bb88f..c571d16e1ff 100644 --- a/thrust/thrust/remove.h +++ b/thrust/thrust/remove.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/replace.h b/thrust/thrust/replace.h index 7d36a1be72a..4488f780691 100644 --- a/thrust/thrust/replace.h +++ b/thrust/thrust/replace.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/reverse.h b/thrust/thrust/reverse.h index 6502944379e..ac40b2dfa49 100644 --- a/thrust/thrust/reverse.h +++ b/thrust/thrust/reverse.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/scan.h b/thrust/thrust/scan.h index 96cf043c685..79d2a85621a 100644 --- a/thrust/thrust/scan.h +++ b/thrust/thrust/scan.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/scatter.h b/thrust/thrust/scatter.h index 5459d5b4f0a..40a5e45264c 100644 --- a/thrust/thrust/scatter.h +++ b/thrust/thrust/scatter.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/sequence.h b/thrust/thrust/sequence.h index eaac82d7ec4..fe5f6f64396 100644 --- a/thrust/thrust/sequence.h +++ b/thrust/thrust/sequence.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/set_operations.h b/thrust/thrust/set_operations.h index 9ec2f465d99..223907a4605 100644 --- a/thrust/thrust/set_operations.h +++ b/thrust/thrust/set_operations.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/shuffle.h b/thrust/thrust/shuffle.h index 9617d325051..6986d0fdfe8 100644 --- a/thrust/thrust/shuffle.h +++ b/thrust/thrust/shuffle.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/sort.h b/thrust/thrust/sort.h index 2c8b06709d6..8c4f0d49b94 100644 --- a/thrust/thrust/sort.h +++ b/thrust/thrust/sort.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/swap.h b/thrust/thrust/swap.h index b3f69d3198e..7716458b004 100644 --- a/thrust/thrust/swap.h +++ b/thrust/thrust/swap.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/cpp/detail/adjacent_difference.h b/thrust/thrust/system/cpp/detail/adjacent_difference.h index 2652f405514..dc050ffb801 100644 --- a/thrust/thrust/system/cpp/detail/adjacent_difference.h +++ b/thrust/thrust/system/cpp/detail/adjacent_difference.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits adjacent_difference #include diff --git a/thrust/thrust/system/cpp/detail/assign_value.h b/thrust/thrust/system/cpp/detail/assign_value.h index 8a7e2a97204..6596d8a9aae 100644 --- a/thrust/thrust/system/cpp/detail/assign_value.h +++ b/thrust/thrust/system/cpp/detail/assign_value.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits assign_value #include diff --git a/thrust/thrust/system/cpp/detail/binary_search.h b/thrust/thrust/system/cpp/detail/binary_search.h index 90708b480db..10129190061 100644 --- a/thrust/thrust/system/cpp/detail/binary_search.h +++ b/thrust/thrust/system/cpp/detail/binary_search.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/system/cpp/detail/copy.h b/thrust/thrust/system/cpp/detail/copy.h index 88c3540f045..6edd9af7755 100644 --- a/thrust/thrust/system/cpp/detail/copy.h +++ b/thrust/thrust/system/cpp/detail/copy.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits copy #include diff --git a/thrust/thrust/system/cpp/detail/copy_if.h b/thrust/thrust/system/cpp/detail/copy_if.h index a3842f14c31..3da9e682187 100644 --- a/thrust/thrust/system/cpp/detail/copy_if.h +++ b/thrust/thrust/system/cpp/detail/copy_if.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits copy_if #include diff --git a/thrust/thrust/system/cpp/detail/count.h b/thrust/thrust/system/cpp/detail/count.h index 9bfba4bb514..c3f89646b4e 100644 --- a/thrust/thrust/system/cpp/detail/count.h +++ b/thrust/thrust/system/cpp/detail/count.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special version of this algorithm diff --git a/thrust/thrust/system/cpp/detail/equal.h b/thrust/thrust/system/cpp/detail/equal.h index 9bfba4bb514..c3f89646b4e 100644 --- a/thrust/thrust/system/cpp/detail/equal.h +++ b/thrust/thrust/system/cpp/detail/equal.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special version of this algorithm diff --git a/thrust/thrust/system/cpp/detail/execution_policy.h b/thrust/thrust/system/cpp/detail/execution_policy.h index 4deb05af78a..39d19c3b222 100644 --- a/thrust/thrust/system/cpp/detail/execution_policy.h +++ b/thrust/thrust/system/cpp/detail/execution_policy.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/cpp/detail/extrema.h b/thrust/thrust/system/cpp/detail/extrema.h index 32dc579c6be..a5aa41669f2 100644 --- a/thrust/thrust/system/cpp/detail/extrema.h +++ b/thrust/thrust/system/cpp/detail/extrema.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits extrema algorithms #include diff --git a/thrust/thrust/system/cpp/detail/fill.h b/thrust/thrust/system/cpp/detail/fill.h index 9bfba4bb514..c3f89646b4e 100644 --- a/thrust/thrust/system/cpp/detail/fill.h +++ b/thrust/thrust/system/cpp/detail/fill.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special version of this algorithm diff --git a/thrust/thrust/system/cpp/detail/find.h b/thrust/thrust/system/cpp/detail/find.h index fb10ea82a21..f246e9be742 100644 --- a/thrust/thrust/system/cpp/detail/find.h +++ b/thrust/thrust/system/cpp/detail/find.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits find #include diff --git a/thrust/thrust/system/cpp/detail/for_each.h b/thrust/thrust/system/cpp/detail/for_each.h index ca4aa18da47..505ffd3285f 100644 --- a/thrust/thrust/system/cpp/detail/for_each.h +++ b/thrust/thrust/system/cpp/detail/for_each.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits for_each #include diff --git a/thrust/thrust/system/cpp/detail/gather.h b/thrust/thrust/system/cpp/detail/gather.h index 9bfba4bb514..c3f89646b4e 100644 --- a/thrust/thrust/system/cpp/detail/gather.h +++ b/thrust/thrust/system/cpp/detail/gather.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special version of this algorithm diff --git a/thrust/thrust/system/cpp/detail/generate.h b/thrust/thrust/system/cpp/detail/generate.h index 9bfba4bb514..c3f89646b4e 100644 --- a/thrust/thrust/system/cpp/detail/generate.h +++ b/thrust/thrust/system/cpp/detail/generate.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special version of this algorithm diff --git a/thrust/thrust/system/cpp/detail/get_value.h b/thrust/thrust/system/cpp/detail/get_value.h index f66dcff24f6..a39301e3988 100644 --- a/thrust/thrust/system/cpp/detail/get_value.h +++ b/thrust/thrust/system/cpp/detail/get_value.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits get_value #include diff --git a/thrust/thrust/system/cpp/detail/inner_product.h b/thrust/thrust/system/cpp/detail/inner_product.h index 9bfba4bb514..c3f89646b4e 100644 --- a/thrust/thrust/system/cpp/detail/inner_product.h +++ b/thrust/thrust/system/cpp/detail/inner_product.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special version of this algorithm diff --git a/thrust/thrust/system/cpp/detail/iter_swap.h b/thrust/thrust/system/cpp/detail/iter_swap.h index d35b1c84a38..3e419612d4a 100644 --- a/thrust/thrust/system/cpp/detail/iter_swap.h +++ b/thrust/thrust/system/cpp/detail/iter_swap.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits iter_swap #include diff --git a/thrust/thrust/system/cpp/detail/logical.h b/thrust/thrust/system/cpp/detail/logical.h index 9bfba4bb514..c3f89646b4e 100644 --- a/thrust/thrust/system/cpp/detail/logical.h +++ b/thrust/thrust/system/cpp/detail/logical.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special version of this algorithm diff --git a/thrust/thrust/system/cpp/detail/malloc_and_free.h b/thrust/thrust/system/cpp/detail/malloc_and_free.h index e000636e69c..2d3fb189ade 100644 --- a/thrust/thrust/system/cpp/detail/malloc_and_free.h +++ b/thrust/thrust/system/cpp/detail/malloc_and_free.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits malloc & free #include diff --git a/thrust/thrust/system/cpp/detail/memory.inl b/thrust/thrust/system/cpp/detail/memory.inl index e6439bda6c6..f8ed48b32c8 100644 --- a/thrust/thrust/system/cpp/detail/memory.inl +++ b/thrust/thrust/system/cpp/detail/memory.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/cpp/detail/merge.h b/thrust/thrust/system/cpp/detail/merge.h index 380a57c70ad..f7c60de2eea 100644 --- a/thrust/thrust/system/cpp/detail/merge.h +++ b/thrust/thrust/system/cpp/detail/merge.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits merge #include diff --git a/thrust/thrust/system/cpp/detail/mismatch.h b/thrust/thrust/system/cpp/detail/mismatch.h index 9bfba4bb514..c3f89646b4e 100644 --- a/thrust/thrust/system/cpp/detail/mismatch.h +++ b/thrust/thrust/system/cpp/detail/mismatch.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special version of this algorithm diff --git a/thrust/thrust/system/cpp/detail/par.h b/thrust/thrust/system/cpp/detail/par.h index c5458952e0c..03a1c4d2b9a 100644 --- a/thrust/thrust/system/cpp/detail/par.h +++ b/thrust/thrust/system/cpp/detail/par.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/cpp/detail/partition.h b/thrust/thrust/system/cpp/detail/partition.h index c2eb98e461b..742b7c806f7 100644 --- a/thrust/thrust/system/cpp/detail/partition.h +++ b/thrust/thrust/system/cpp/detail/partition.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits partition #include diff --git a/thrust/thrust/system/cpp/detail/per_device_resource.h b/thrust/thrust/system/cpp/detail/per_device_resource.h index b481bbc9e95..64c721210a7 100644 --- a/thrust/thrust/system/cpp/detail/per_device_resource.h +++ b/thrust/thrust/system/cpp/detail/per_device_resource.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special per device resource functions diff --git a/thrust/thrust/system/cpp/detail/reduce.h b/thrust/thrust/system/cpp/detail/reduce.h index 5cf69c54885..3197b30a97b 100644 --- a/thrust/thrust/system/cpp/detail/reduce.h +++ b/thrust/thrust/system/cpp/detail/reduce.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits reduce #include diff --git a/thrust/thrust/system/cpp/detail/reduce_by_key.h b/thrust/thrust/system/cpp/detail/reduce_by_key.h index 4112fada1b1..836628d2fdc 100644 --- a/thrust/thrust/system/cpp/detail/reduce_by_key.h +++ b/thrust/thrust/system/cpp/detail/reduce_by_key.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits reduce_by_key #include diff --git a/thrust/thrust/system/cpp/detail/remove.h b/thrust/thrust/system/cpp/detail/remove.h index 9d0e0c65bdc..f2c673830e2 100644 --- a/thrust/thrust/system/cpp/detail/remove.h +++ b/thrust/thrust/system/cpp/detail/remove.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits remove #include diff --git a/thrust/thrust/system/cpp/detail/replace.h b/thrust/thrust/system/cpp/detail/replace.h index 9bfba4bb514..c3f89646b4e 100644 --- a/thrust/thrust/system/cpp/detail/replace.h +++ b/thrust/thrust/system/cpp/detail/replace.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special version of this algorithm diff --git a/thrust/thrust/system/cpp/detail/reverse.h b/thrust/thrust/system/cpp/detail/reverse.h index 9bfba4bb514..c3f89646b4e 100644 --- a/thrust/thrust/system/cpp/detail/reverse.h +++ b/thrust/thrust/system/cpp/detail/reverse.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special version of this algorithm diff --git a/thrust/thrust/system/cpp/detail/scan.h b/thrust/thrust/system/cpp/detail/scan.h index 5d8cd0bca6b..5c8beb197d9 100644 --- a/thrust/thrust/system/cpp/detail/scan.h +++ b/thrust/thrust/system/cpp/detail/scan.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits scan #include diff --git a/thrust/thrust/system/cpp/detail/scan_by_key.h b/thrust/thrust/system/cpp/detail/scan_by_key.h index 07aec0b450d..b4aabfd1c1e 100644 --- a/thrust/thrust/system/cpp/detail/scan_by_key.h +++ b/thrust/thrust/system/cpp/detail/scan_by_key.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits the scan_by_key algorithms #include diff --git a/thrust/thrust/system/cpp/detail/scatter.h b/thrust/thrust/system/cpp/detail/scatter.h index 9bfba4bb514..c3f89646b4e 100644 --- a/thrust/thrust/system/cpp/detail/scatter.h +++ b/thrust/thrust/system/cpp/detail/scatter.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special version of this algorithm diff --git a/thrust/thrust/system/cpp/detail/sequence.h b/thrust/thrust/system/cpp/detail/sequence.h index 9bfba4bb514..c3f89646b4e 100644 --- a/thrust/thrust/system/cpp/detail/sequence.h +++ b/thrust/thrust/system/cpp/detail/sequence.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special version of this algorithm diff --git a/thrust/thrust/system/cpp/detail/set_operations.h b/thrust/thrust/system/cpp/detail/set_operations.h index 3f0a8e370ca..c5247efee00 100644 --- a/thrust/thrust/system/cpp/detail/set_operations.h +++ b/thrust/thrust/system/cpp/detail/set_operations.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits the set operations #include diff --git a/thrust/thrust/system/cpp/detail/sort.h b/thrust/thrust/system/cpp/detail/sort.h index fa6ee21f885..e25973ea166 100644 --- a/thrust/thrust/system/cpp/detail/sort.h +++ b/thrust/thrust/system/cpp/detail/sort.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits sort #include diff --git a/thrust/thrust/system/cpp/detail/swap_ranges.h b/thrust/thrust/system/cpp/detail/swap_ranges.h index 53af7237e1b..276381aadff 100644 --- a/thrust/thrust/system/cpp/detail/swap_ranges.h +++ b/thrust/thrust/system/cpp/detail/swap_ranges.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // cpp has no special swap_ranges diff --git a/thrust/thrust/system/cpp/detail/tabulate.h b/thrust/thrust/system/cpp/detail/tabulate.h index 9bfba4bb514..c3f89646b4e 100644 --- a/thrust/thrust/system/cpp/detail/tabulate.h +++ b/thrust/thrust/system/cpp/detail/tabulate.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special version of this algorithm diff --git a/thrust/thrust/system/cpp/detail/temporary_buffer.h b/thrust/thrust/system/cpp/detail/temporary_buffer.h index 9512e76936b..d666f267e35 100644 --- a/thrust/thrust/system/cpp/detail/temporary_buffer.h +++ b/thrust/thrust/system/cpp/detail/temporary_buffer.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special temporary buffer functions diff --git a/thrust/thrust/system/cpp/detail/transform.h b/thrust/thrust/system/cpp/detail/transform.h index ac303a92168..434e7a66535 100644 --- a/thrust/thrust/system/cpp/detail/transform.h +++ b/thrust/thrust/system/cpp/detail/transform.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // cpp has no special transform diff --git a/thrust/thrust/system/cpp/detail/transform_reduce.h b/thrust/thrust/system/cpp/detail/transform_reduce.h index 9bfba4bb514..c3f89646b4e 100644 --- a/thrust/thrust/system/cpp/detail/transform_reduce.h +++ b/thrust/thrust/system/cpp/detail/transform_reduce.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special version of this algorithm diff --git a/thrust/thrust/system/cpp/detail/transform_scan.h b/thrust/thrust/system/cpp/detail/transform_scan.h index 9bfba4bb514..c3f89646b4e 100644 --- a/thrust/thrust/system/cpp/detail/transform_scan.h +++ b/thrust/thrust/system/cpp/detail/transform_scan.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special version of this algorithm diff --git a/thrust/thrust/system/cpp/detail/uninitialized_copy.h b/thrust/thrust/system/cpp/detail/uninitialized_copy.h index 9bfba4bb514..c3f89646b4e 100644 --- a/thrust/thrust/system/cpp/detail/uninitialized_copy.h +++ b/thrust/thrust/system/cpp/detail/uninitialized_copy.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special version of this algorithm diff --git a/thrust/thrust/system/cpp/detail/uninitialized_fill.h b/thrust/thrust/system/cpp/detail/uninitialized_fill.h index 9bfba4bb514..c3f89646b4e 100644 --- a/thrust/thrust/system/cpp/detail/uninitialized_fill.h +++ b/thrust/thrust/system/cpp/detail/uninitialized_fill.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special version of this algorithm diff --git a/thrust/thrust/system/cpp/detail/unique.h b/thrust/thrust/system/cpp/detail/unique.h index 0e017aa4b9f..c00503fb282 100644 --- a/thrust/thrust/system/cpp/detail/unique.h +++ b/thrust/thrust/system/cpp/detail/unique.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits unique #include diff --git a/thrust/thrust/system/cpp/detail/unique_by_key.h b/thrust/thrust/system/cpp/detail/unique_by_key.h index 88bd14883d4..78e73f639e9 100644 --- a/thrust/thrust/system/cpp/detail/unique_by_key.h +++ b/thrust/thrust/system/cpp/detail/unique_by_key.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits unique_by_key #include diff --git a/thrust/thrust/system/cpp/detail/vector.inl b/thrust/thrust/system/cpp/detail/vector.inl index 4bd807d8296..96e0f285782 100644 --- a/thrust/thrust/system/cpp/detail/vector.inl +++ b/thrust/thrust/system/cpp/detail/vector.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/cpp/execution_policy.h b/thrust/thrust/system/cpp/execution_policy.h index 09c83f17d3e..f7aca1fb22f 100644 --- a/thrust/thrust/system/cpp/execution_policy.h +++ b/thrust/thrust/system/cpp/execution_policy.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // get the execution policies definitions first #include diff --git a/thrust/thrust/system/cpp/memory.h b/thrust/thrust/system/cpp/memory.h index 2def1e8cff7..d6451670c03 100644 --- a/thrust/thrust/system/cpp/memory.h +++ b/thrust/thrust/system/cpp/memory.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/cpp/memory_resource.h b/thrust/thrust/system/cpp/memory_resource.h index 70b95a7c013..1a0206f31e7 100644 --- a/thrust/thrust/system/cpp/memory_resource.h +++ b/thrust/thrust/system/cpp/memory_resource.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/cpp/pointer.h b/thrust/thrust/system/cpp/pointer.h index 6e8d3af55b9..5e75aafd44c 100644 --- a/thrust/thrust/system/cpp/pointer.h +++ b/thrust/thrust/system/cpp/pointer.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/cpp/vector.h b/thrust/thrust/system/cpp/vector.h index 84fe219d555..6122dd42bc8 100644 --- a/thrust/thrust/system/cpp/vector.h +++ b/thrust/thrust/system/cpp/vector.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/cuda/config.h b/thrust/thrust/system/cuda/config.h index 3d58c0724e8..9ec5137f2af 100644 --- a/thrust/thrust/system/cuda/config.h +++ b/thrust/thrust/system/cuda/config.h @@ -36,7 +36,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // We don't directly include since it doesn't exist in // older releases. This header will always pull in version info: diff --git a/thrust/thrust/system/cuda/detail/adjacent_difference.h b/thrust/thrust/system/cuda/detail/adjacent_difference.h index 8ab23467dc5..85c499b620a 100644 --- a/thrust/thrust/system/cuda/detail/adjacent_difference.h +++ b/thrust/thrust/system/cuda/detail/adjacent_difference.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC diff --git a/thrust/thrust/system/cuda/detail/assign_value.h b/thrust/thrust/system/cuda/detail/assign_value.h index 34e48646c7a..3e98b37d8e3 100644 --- a/thrust/thrust/system/cuda/detail/assign_value.h +++ b/thrust/thrust/system/cuda/detail/assign_value.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC #include diff --git a/thrust/thrust/system/cuda/detail/async/copy.h b/thrust/thrust/system/cuda/detail/async/copy.h index a1ce6298f5d..af0040f18a2 100644 --- a/thrust/thrust/system/cuda/detail/async/copy.h +++ b/thrust/thrust/system/cuda/detail/async/copy.h @@ -31,7 +31,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2014 diff --git a/thrust/thrust/system/cuda/detail/async/customization.h b/thrust/thrust/system/cuda/detail/async/customization.h index a10ceca7f57..758370cf992 100644 --- a/thrust/thrust/system/cuda/detail/async/customization.h +++ b/thrust/thrust/system/cuda/detail/async/customization.h @@ -31,7 +31,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2014 diff --git a/thrust/thrust/system/cuda/detail/async/exclusive_scan.h b/thrust/thrust/system/cuda/detail/async/exclusive_scan.h index 5e87166668c..f600def0f85 100644 --- a/thrust/thrust/system/cuda/detail/async/exclusive_scan.h +++ b/thrust/thrust/system/cuda/detail/async/exclusive_scan.h @@ -29,7 +29,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2014 diff --git a/thrust/thrust/system/cuda/detail/async/for_each.h b/thrust/thrust/system/cuda/detail/async/for_each.h index 6090918cac5..fe500fe8dfa 100644 --- a/thrust/thrust/system/cuda/detail/async/for_each.h +++ b/thrust/thrust/system/cuda/detail/async/for_each.h @@ -32,7 +32,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2014 diff --git a/thrust/thrust/system/cuda/detail/async/inclusive_scan.h b/thrust/thrust/system/cuda/detail/async/inclusive_scan.h index 79049b5a2f0..2c6b3bdb72f 100644 --- a/thrust/thrust/system/cuda/detail/async/inclusive_scan.h +++ b/thrust/thrust/system/cuda/detail/async/inclusive_scan.h @@ -29,7 +29,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2014 diff --git a/thrust/thrust/system/cuda/detail/async/reduce.h b/thrust/thrust/system/cuda/detail/async/reduce.h index f48700a5b6f..73351132df8 100644 --- a/thrust/thrust/system/cuda/detail/async/reduce.h +++ b/thrust/thrust/system/cuda/detail/async/reduce.h @@ -33,7 +33,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2014 diff --git a/thrust/thrust/system/cuda/detail/async/scan.h b/thrust/thrust/system/cuda/detail/async/scan.h index 5a13c559430..e946683061c 100644 --- a/thrust/thrust/system/cuda/detail/async/scan.h +++ b/thrust/thrust/system/cuda/detail/async/scan.h @@ -29,7 +29,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/system/cuda/detail/async/sort.h b/thrust/thrust/system/cuda/detail/async/sort.h index 83cdfe57815..9f1d567cad9 100644 --- a/thrust/thrust/system/cuda/detail/async/sort.h +++ b/thrust/thrust/system/cuda/detail/async/sort.h @@ -31,7 +31,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2014 diff --git a/thrust/thrust/system/cuda/detail/async/transform.h b/thrust/thrust/system/cuda/detail/async/transform.h index 9cc15f8c9e1..4bd8f96bddd 100644 --- a/thrust/thrust/system/cuda/detail/async/transform.h +++ b/thrust/thrust/system/cuda/detail/async/transform.h @@ -31,7 +31,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2014 diff --git a/thrust/thrust/system/cuda/detail/binary_search.h b/thrust/thrust/system/cuda/detail/binary_search.h index d7960d1da26..e7c5184af70 100644 --- a/thrust/thrust/system/cuda/detail/binary_search.h +++ b/thrust/thrust/system/cuda/detail/binary_search.h @@ -18,6 +18,10 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special version of this algorithm diff --git a/thrust/thrust/system/cuda/detail/cdp_dispatch.h b/thrust/thrust/system/cuda/detail/cdp_dispatch.h index 591db799ca1..739d1cb7ecd 100644 --- a/thrust/thrust/system/cuda/detail/cdp_dispatch.h +++ b/thrust/thrust/system/cuda/detail/cdp_dispatch.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/cuda/detail/copy.h b/thrust/thrust/system/cuda/detail/copy.h index fed9aa90aff..d394131d423 100644 --- a/thrust/thrust/system/cuda/detail/copy.h +++ b/thrust/thrust/system/cuda/detail/copy.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/system/cuda/detail/copy_if.h b/thrust/thrust/system/cuda/detail/copy_if.h index 8b2f565d187..4d99dda6f35 100644 --- a/thrust/thrust/system/cuda/detail/copy_if.h +++ b/thrust/thrust/system/cuda/detail/copy_if.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC diff --git a/thrust/thrust/system/cuda/detail/core/agent_launcher.h b/thrust/thrust/system/cuda/detail/core/agent_launcher.h index e7a54055ecc..1958e2e20a0 100644 --- a/thrust/thrust/system/cuda/detail/core/agent_launcher.h +++ b/thrust/thrust/system/cuda/detail/core/agent_launcher.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/system/cuda/detail/core/alignment.h b/thrust/thrust/system/cuda/detail/core/alignment.h index 680ab73c40a..8c28547001d 100644 --- a/thrust/thrust/system/cuda/detail/core/alignment.h +++ b/thrust/thrust/system/cuda/detail/core/alignment.h @@ -20,7 +20,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/system/cuda/detail/core/triple_chevron_launch.h b/thrust/thrust/system/cuda/detail/core/triple_chevron_launch.h index c8328869a5e..47af5501934 100644 --- a/thrust/thrust/system/cuda/detail/core/triple_chevron_launch.h +++ b/thrust/thrust/system/cuda/detail/core/triple_chevron_launch.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/cuda/detail/core/util.h b/thrust/thrust/system/cuda/detail/core/util.h index 2b7bce5024f..e4dbb8e5195 100644 --- a/thrust/thrust/system/cuda/detail/core/util.h +++ b/thrust/thrust/system/cuda/detail/core/util.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/cuda/detail/count.h b/thrust/thrust/system/cuda/detail/count.h index 6d1a6d44df8..2fc36c36b61 100644 --- a/thrust/thrust/system/cuda/detail/count.h +++ b/thrust/thrust/system/cuda/detail/count.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC #include diff --git a/thrust/thrust/system/cuda/detail/cross_system.h b/thrust/thrust/system/cuda/detail/cross_system.h index 1ef76be14bf..e01721f227e 100644 --- a/thrust/thrust/system/cuda/detail/cross_system.h +++ b/thrust/thrust/system/cuda/detail/cross_system.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/cuda/detail/dispatch.h b/thrust/thrust/system/cuda/detail/dispatch.h index 62cddfeac79..2e20a19f75f 100644 --- a/thrust/thrust/system/cuda/detail/dispatch.h +++ b/thrust/thrust/system/cuda/detail/dispatch.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/cuda/detail/equal.h b/thrust/thrust/system/cuda/detail/equal.h index 0c3fea0b206..2adfa868c35 100644 --- a/thrust/thrust/system/cuda/detail/equal.h +++ b/thrust/thrust/system/cuda/detail/equal.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC #include diff --git a/thrust/thrust/system/cuda/detail/error.inl b/thrust/thrust/system/cuda/detail/error.inl index 9285649a76a..2bdd107c77f 100644 --- a/thrust/thrust/system/cuda/detail/error.inl +++ b/thrust/thrust/system/cuda/detail/error.inl @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/cuda/detail/execution_policy.h b/thrust/thrust/system/cuda/detail/execution_policy.h index 92de375ca64..318ada1faa1 100644 --- a/thrust/thrust/system/cuda/detail/execution_policy.h +++ b/thrust/thrust/system/cuda/detail/execution_policy.h @@ -29,7 +29,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/cuda/detail/extrema.h b/thrust/thrust/system/cuda/detail/extrema.h index bd4f3862570..9aea95a1b07 100644 --- a/thrust/thrust/system/cuda/detail/extrema.h +++ b/thrust/thrust/system/cuda/detail/extrema.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC diff --git a/thrust/thrust/system/cuda/detail/fill.h b/thrust/thrust/system/cuda/detail/fill.h index 9c48786662d..286937fe10a 100644 --- a/thrust/thrust/system/cuda/detail/fill.h +++ b/thrust/thrust/system/cuda/detail/fill.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC #include diff --git a/thrust/thrust/system/cuda/detail/find.h b/thrust/thrust/system/cuda/detail/find.h index 1b90e08ff94..adfa93fd484 100644 --- a/thrust/thrust/system/cuda/detail/find.h +++ b/thrust/thrust/system/cuda/detail/find.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC #include diff --git a/thrust/thrust/system/cuda/detail/for_each.h b/thrust/thrust/system/cuda/detail/for_each.h index 60a82d9866b..8041de112db 100644 --- a/thrust/thrust/system/cuda/detail/for_each.h +++ b/thrust/thrust/system/cuda/detail/for_each.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC #include diff --git a/thrust/thrust/system/cuda/detail/future.inl b/thrust/thrust/system/cuda/detail/future.inl index a2c50d069ad..1ef39fee448 100644 --- a/thrust/thrust/system/cuda/detail/future.inl +++ b/thrust/thrust/system/cuda/detail/future.inl @@ -10,7 +10,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2014 diff --git a/thrust/thrust/system/cuda/detail/gather.h b/thrust/thrust/system/cuda/detail/gather.h index c2862015a78..bdbc7b566dc 100644 --- a/thrust/thrust/system/cuda/detail/gather.h +++ b/thrust/thrust/system/cuda/detail/gather.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC #include diff --git a/thrust/thrust/system/cuda/detail/generate.h b/thrust/thrust/system/cuda/detail/generate.h index 5654be756b4..dd8b7ce9d99 100644 --- a/thrust/thrust/system/cuda/detail/generate.h +++ b/thrust/thrust/system/cuda/detail/generate.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC #include diff --git a/thrust/thrust/system/cuda/detail/get_value.h b/thrust/thrust/system/cuda/detail/get_value.h index 9beaf41b9e1..6364970a243 100644 --- a/thrust/thrust/system/cuda/detail/get_value.h +++ b/thrust/thrust/system/cuda/detail/get_value.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC #include diff --git a/thrust/thrust/system/cuda/detail/guarded_cuda_runtime_api.h b/thrust/thrust/system/cuda/detail/guarded_cuda_runtime_api.h index 71cfa64c125..0a61ac2ff2c 100644 --- a/thrust/thrust/system/cuda/detail/guarded_cuda_runtime_api.h +++ b/thrust/thrust/system/cuda/detail/guarded_cuda_runtime_api.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to check for the existence of macros // such as __host__ and __device__, which may already be defined by thrust diff --git a/thrust/thrust/system/cuda/detail/guarded_driver_types.h b/thrust/thrust/system/cuda/detail/guarded_driver_types.h index 33626f046e9..7620b08704c 100644 --- a/thrust/thrust/system/cuda/detail/guarded_driver_types.h +++ b/thrust/thrust/system/cuda/detail/guarded_driver_types.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include without causing // warnings from redefinitions of __host__ and __device__. diff --git a/thrust/thrust/system/cuda/detail/inner_product.h b/thrust/thrust/system/cuda/detail/inner_product.h index 0cdf883ac55..f65db8df1aa 100644 --- a/thrust/thrust/system/cuda/detail/inner_product.h +++ b/thrust/thrust/system/cuda/detail/inner_product.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC #include diff --git a/thrust/thrust/system/cuda/detail/internal/copy_cross_system.h b/thrust/thrust/system/cuda/detail/internal/copy_cross_system.h index 4a3dc716c70..468253482e5 100644 --- a/thrust/thrust/system/cuda/detail/internal/copy_cross_system.h +++ b/thrust/thrust/system/cuda/detail/internal/copy_cross_system.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // XXX // this file must not be included on its own, ever, diff --git a/thrust/thrust/system/cuda/detail/internal/copy_device_to_device.h b/thrust/thrust/system/cuda/detail/internal/copy_device_to_device.h index d377945b83c..fccec83922c 100644 --- a/thrust/thrust/system/cuda/detail/internal/copy_device_to_device.h +++ b/thrust/thrust/system/cuda/detail/internal/copy_device_to_device.h @@ -29,7 +29,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC #include diff --git a/thrust/thrust/system/cuda/detail/iter_swap.h b/thrust/thrust/system/cuda/detail/iter_swap.h index 5e4731a36f6..df2a1b450e1 100644 --- a/thrust/thrust/system/cuda/detail/iter_swap.h +++ b/thrust/thrust/system/cuda/detail/iter_swap.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC diff --git a/thrust/thrust/system/cuda/detail/logical.h b/thrust/thrust/system/cuda/detail/logical.h index 9bfba4bb514..c3f89646b4e 100644 --- a/thrust/thrust/system/cuda/detail/logical.h +++ b/thrust/thrust/system/cuda/detail/logical.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special version of this algorithm diff --git a/thrust/thrust/system/cuda/detail/make_unsigned_special.h b/thrust/thrust/system/cuda/detail/make_unsigned_special.h index 4a6e0467f3a..b5e0d5bec73 100644 --- a/thrust/thrust/system/cuda/detail/make_unsigned_special.h +++ b/thrust/thrust/system/cuda/detail/make_unsigned_special.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC THRUST_NAMESPACE_BEGIN namespace cuda_cub { diff --git a/thrust/thrust/system/cuda/detail/malloc_and_free.h b/thrust/thrust/system/cuda/detail/malloc_and_free.h index 6545172af0d..57b5d7e1583 100644 --- a/thrust/thrust/system/cuda/detail/malloc_and_free.h +++ b/thrust/thrust/system/cuda/detail/malloc_and_free.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/system/cuda/detail/memory.inl b/thrust/thrust/system/cuda/detail/memory.inl index 8560942d3e6..4ba3180faa0 100644 --- a/thrust/thrust/system/cuda/detail/memory.inl +++ b/thrust/thrust/system/cuda/detail/memory.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/cuda/detail/merge.h b/thrust/thrust/system/cuda/detail/merge.h index 0336dafd1b6..2ae9469ad6d 100644 --- a/thrust/thrust/system/cuda/detail/merge.h +++ b/thrust/thrust/system/cuda/detail/merge.h @@ -28,7 +28,11 @@ j * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC diff --git a/thrust/thrust/system/cuda/detail/mismatch.h b/thrust/thrust/system/cuda/detail/mismatch.h index 728ce690a4e..7110c232cbc 100644 --- a/thrust/thrust/system/cuda/detail/mismatch.h +++ b/thrust/thrust/system/cuda/detail/mismatch.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC #include diff --git a/thrust/thrust/system/cuda/detail/par.h b/thrust/thrust/system/cuda/detail/par.h index 5dce6a6d385..56aa3c2414f 100644 --- a/thrust/thrust/system/cuda/detail/par.h +++ b/thrust/thrust/system/cuda/detail/par.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/cuda/detail/par_to_seq.h b/thrust/thrust/system/cuda/detail/par_to_seq.h index 2712fc5d6b7..a03fa182342 100644 --- a/thrust/thrust/system/cuda/detail/par_to_seq.h +++ b/thrust/thrust/system/cuda/detail/par_to_seq.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/cuda/detail/parallel_for.h b/thrust/thrust/system/cuda/detail/parallel_for.h index 3af1eb8f94c..8ee1be41bf9 100644 --- a/thrust/thrust/system/cuda/detail/parallel_for.h +++ b/thrust/thrust/system/cuda/detail/parallel_for.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC diff --git a/thrust/thrust/system/cuda/detail/partition.h b/thrust/thrust/system/cuda/detail/partition.h index 87f7ffe46c7..7ee25157326 100644 --- a/thrust/thrust/system/cuda/detail/partition.h +++ b/thrust/thrust/system/cuda/detail/partition.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC diff --git a/thrust/thrust/system/cuda/detail/per_device_resource.h b/thrust/thrust/system/cuda/detail/per_device_resource.h index 93ca5c60875..354fe5d6bce 100644 --- a/thrust/thrust/system/cuda/detail/per_device_resource.h +++ b/thrust/thrust/system/cuda/detail/per_device_resource.h @@ -29,7 +29,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2011 diff --git a/thrust/thrust/system/cuda/detail/reduce.h b/thrust/thrust/system/cuda/detail/reduce.h index 64c99ec6c8d..3258064ddef 100644 --- a/thrust/thrust/system/cuda/detail/reduce.h +++ b/thrust/thrust/system/cuda/detail/reduce.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC diff --git a/thrust/thrust/system/cuda/detail/reduce_by_key.h b/thrust/thrust/system/cuda/detail/reduce_by_key.h index b1f420e114b..bcb5ad60fc8 100644 --- a/thrust/thrust/system/cuda/detail/reduce_by_key.h +++ b/thrust/thrust/system/cuda/detail/reduce_by_key.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC diff --git a/thrust/thrust/system/cuda/detail/remove.h b/thrust/thrust/system/cuda/detail/remove.h index aaa20c72c50..7d8d85b328d 100644 --- a/thrust/thrust/system/cuda/detail/remove.h +++ b/thrust/thrust/system/cuda/detail/remove.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC #include diff --git a/thrust/thrust/system/cuda/detail/replace.h b/thrust/thrust/system/cuda/detail/replace.h index 313b57d5d89..31e25e66a33 100644 --- a/thrust/thrust/system/cuda/detail/replace.h +++ b/thrust/thrust/system/cuda/detail/replace.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC #include diff --git a/thrust/thrust/system/cuda/detail/reverse.h b/thrust/thrust/system/cuda/detail/reverse.h index 6fee158f5b3..9f4f831c283 100644 --- a/thrust/thrust/system/cuda/detail/reverse.h +++ b/thrust/thrust/system/cuda/detail/reverse.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC #include diff --git a/thrust/thrust/system/cuda/detail/scan.h b/thrust/thrust/system/cuda/detail/scan.h index 5109f2b21c2..e2f97a07203 100644 --- a/thrust/thrust/system/cuda/detail/scan.h +++ b/thrust/thrust/system/cuda/detail/scan.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC diff --git a/thrust/thrust/system/cuda/detail/scan_by_key.h b/thrust/thrust/system/cuda/detail/scan_by_key.h index 822c71773b6..c358bf2e232 100644 --- a/thrust/thrust/system/cuda/detail/scan_by_key.h +++ b/thrust/thrust/system/cuda/detail/scan_by_key.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC diff --git a/thrust/thrust/system/cuda/detail/scatter.h b/thrust/thrust/system/cuda/detail/scatter.h index e34006ab35e..84f5afe0bff 100644 --- a/thrust/thrust/system/cuda/detail/scatter.h +++ b/thrust/thrust/system/cuda/detail/scatter.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC #include diff --git a/thrust/thrust/system/cuda/detail/sequence.h b/thrust/thrust/system/cuda/detail/sequence.h index 9bfba4bb514..c3f89646b4e 100644 --- a/thrust/thrust/system/cuda/detail/sequence.h +++ b/thrust/thrust/system/cuda/detail/sequence.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special version of this algorithm diff --git a/thrust/thrust/system/cuda/detail/set_operations.h b/thrust/thrust/system/cuda/detail/set_operations.h index ab37126448f..e6b868c6d51 100644 --- a/thrust/thrust/system/cuda/detail/set_operations.h +++ b/thrust/thrust/system/cuda/detail/set_operations.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC diff --git a/thrust/thrust/system/cuda/detail/sort.h b/thrust/thrust/system/cuda/detail/sort.h index 8a42efc0eac..ddb0cf66344 100644 --- a/thrust/thrust/system/cuda/detail/sort.h +++ b/thrust/thrust/system/cuda/detail/sort.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC #include diff --git a/thrust/thrust/system/cuda/detail/swap_ranges.h b/thrust/thrust/system/cuda/detail/swap_ranges.h index d51495376e9..bbf51789c60 100644 --- a/thrust/thrust/system/cuda/detail/swap_ranges.h +++ b/thrust/thrust/system/cuda/detail/swap_ranges.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC #include diff --git a/thrust/thrust/system/cuda/detail/tabulate.h b/thrust/thrust/system/cuda/detail/tabulate.h index 5c82a0281e2..562f7037706 100644 --- a/thrust/thrust/system/cuda/detail/tabulate.h +++ b/thrust/thrust/system/cuda/detail/tabulate.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC #include diff --git a/thrust/thrust/system/cuda/detail/temporary_buffer.h b/thrust/thrust/system/cuda/detail/temporary_buffer.h index f4fdaf5469c..1daf6c04a34 100644 --- a/thrust/thrust/system/cuda/detail/temporary_buffer.h +++ b/thrust/thrust/system/cuda/detail/temporary_buffer.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special temporary buffer functions diff --git a/thrust/thrust/system/cuda/detail/terminate.h b/thrust/thrust/system/cuda/detail/terminate.h index 84667d2c680..2a7ebc43153 100644 --- a/thrust/thrust/system/cuda/detail/terminate.h +++ b/thrust/thrust/system/cuda/detail/terminate.h @@ -29,7 +29,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/cuda/detail/transform.h b/thrust/thrust/system/cuda/detail/transform.h index b5a51ae02d2..473a0ba0989 100644 --- a/thrust/thrust/system/cuda/detail/transform.h +++ b/thrust/thrust/system/cuda/detail/transform.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC #include diff --git a/thrust/thrust/system/cuda/detail/transform_reduce.h b/thrust/thrust/system/cuda/detail/transform_reduce.h index 4f58a729e01..c0c96b2c594 100644 --- a/thrust/thrust/system/cuda/detail/transform_reduce.h +++ b/thrust/thrust/system/cuda/detail/transform_reduce.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC #include diff --git a/thrust/thrust/system/cuda/detail/transform_scan.h b/thrust/thrust/system/cuda/detail/transform_scan.h index 4094643360f..fd76a84e795 100644 --- a/thrust/thrust/system/cuda/detail/transform_scan.h +++ b/thrust/thrust/system/cuda/detail/transform_scan.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC #include diff --git a/thrust/thrust/system/cuda/detail/uninitialized_copy.h b/thrust/thrust/system/cuda/detail/uninitialized_copy.h index 89b8fa78094..3fa8940b627 100644 --- a/thrust/thrust/system/cuda/detail/uninitialized_copy.h +++ b/thrust/thrust/system/cuda/detail/uninitialized_copy.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC #include diff --git a/thrust/thrust/system/cuda/detail/uninitialized_fill.h b/thrust/thrust/system/cuda/detail/uninitialized_fill.h index 131ea7b6b01..368349db104 100644 --- a/thrust/thrust/system/cuda/detail/uninitialized_fill.h +++ b/thrust/thrust/system/cuda/detail/uninitialized_fill.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC #include diff --git a/thrust/thrust/system/cuda/detail/unique.h b/thrust/thrust/system/cuda/detail/unique.h index f7f8e3137fb..aba3a4dc2a9 100644 --- a/thrust/thrust/system/cuda/detail/unique.h +++ b/thrust/thrust/system/cuda/detail/unique.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC diff --git a/thrust/thrust/system/cuda/detail/unique_by_key.h b/thrust/thrust/system/cuda/detail/unique_by_key.h index fb19f687e21..f0f7ed93c26 100644 --- a/thrust/thrust/system/cuda/detail/unique_by_key.h +++ b/thrust/thrust/system/cuda/detail/unique_by_key.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC diff --git a/thrust/thrust/system/cuda/detail/util.h b/thrust/thrust/system/cuda/detail/util.h index 34289f21810..c610629af26 100644 --- a/thrust/thrust/system/cuda/detail/util.h +++ b/thrust/thrust/system/cuda/detail/util.h @@ -28,7 +28,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/cuda/error.h b/thrust/thrust/system/cuda/error.h index ff42323bab2..5b1d764b27f 100644 --- a/thrust/thrust/system/cuda/error.h +++ b/thrust/thrust/system/cuda/error.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/cuda/execution_policy.h b/thrust/thrust/system/cuda/execution_policy.h index 2a78e59eb8c..f1cea2c80b9 100644 --- a/thrust/thrust/system/cuda/execution_policy.h +++ b/thrust/thrust/system/cuda/execution_policy.h @@ -28,6 +28,10 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/cuda/future.h b/thrust/thrust/system/cuda/future.h index 52bb0cbe6a2..c37f4851c22 100644 --- a/thrust/thrust/system/cuda/future.h +++ b/thrust/thrust/system/cuda/future.h @@ -7,7 +7,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2014 diff --git a/thrust/thrust/system/cuda/memory.h b/thrust/thrust/system/cuda/memory.h index 5370927967c..da0708b012f 100644 --- a/thrust/thrust/system/cuda/memory.h +++ b/thrust/thrust/system/cuda/memory.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/cuda/memory_resource.h b/thrust/thrust/system/cuda/memory_resource.h index 197883e3757..68af96b5084 100644 --- a/thrust/thrust/system/cuda/memory_resource.h +++ b/thrust/thrust/system/cuda/memory_resource.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/cuda/pointer.h b/thrust/thrust/system/cuda/pointer.h index 316d0823a85..793751cb040 100644 --- a/thrust/thrust/system/cuda/pointer.h +++ b/thrust/thrust/system/cuda/pointer.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/cuda/vector.h b/thrust/thrust/system/cuda/vector.h index 5c862d645ee..ed6114aadab 100644 --- a/thrust/thrust/system/cuda/vector.h +++ b/thrust/thrust/system/cuda/vector.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/adl/adjacent_difference.h b/thrust/thrust/system/detail/adl/adjacent_difference.h index 93750146e0c..980dc4fce48 100644 --- a/thrust/thrust/system/detail/adl/adjacent_difference.h +++ b/thrust/thrust/system/detail/adl/adjacent_difference.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the adjacent_difference.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/assign_value.h b/thrust/thrust/system/detail/adl/assign_value.h index 9daaa033e7a..c2a9cda7f78 100644 --- a/thrust/thrust/system/detail/adl/assign_value.h +++ b/thrust/thrust/system/detail/adl/assign_value.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the assign_value.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/async/copy.h b/thrust/thrust/system/detail/adl/async/copy.h index 56738f51cee..b9d6a335f91 100644 --- a/thrust/thrust/system/detail/adl/async/copy.h +++ b/thrust/thrust/system/detail/adl/async/copy.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC //#include diff --git a/thrust/thrust/system/detail/adl/async/for_each.h b/thrust/thrust/system/detail/adl/async/for_each.h index 116659c75b5..e0e71ea8a36 100644 --- a/thrust/thrust/system/detail/adl/async/for_each.h +++ b/thrust/thrust/system/detail/adl/async/for_each.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC //#include diff --git a/thrust/thrust/system/detail/adl/async/reduce.h b/thrust/thrust/system/detail/adl/async/reduce.h index 74e138b4896..0e157cb7970 100644 --- a/thrust/thrust/system/detail/adl/async/reduce.h +++ b/thrust/thrust/system/detail/adl/async/reduce.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC //#include diff --git a/thrust/thrust/system/detail/adl/async/scan.h b/thrust/thrust/system/detail/adl/async/scan.h index 5f40b0ae6ad..ac60330e1c7 100644 --- a/thrust/thrust/system/detail/adl/async/scan.h +++ b/thrust/thrust/system/detail/adl/async/scan.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC //#include diff --git a/thrust/thrust/system/detail/adl/async/sort.h b/thrust/thrust/system/detail/adl/async/sort.h index 945b0402d9e..8f07711e6b7 100644 --- a/thrust/thrust/system/detail/adl/async/sort.h +++ b/thrust/thrust/system/detail/adl/async/sort.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC //#include diff --git a/thrust/thrust/system/detail/adl/async/transform.h b/thrust/thrust/system/detail/adl/async/transform.h index b72bd43c88e..7dc39b0eba0 100644 --- a/thrust/thrust/system/detail/adl/async/transform.h +++ b/thrust/thrust/system/detail/adl/async/transform.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC //#include diff --git a/thrust/thrust/system/detail/adl/binary_search.h b/thrust/thrust/system/detail/adl/binary_search.h index df7c0836a71..a8149753f5c 100644 --- a/thrust/thrust/system/detail/adl/binary_search.h +++ b/thrust/thrust/system/detail/adl/binary_search.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the binary_search.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/copy.h b/thrust/thrust/system/detail/adl/copy.h index a1cc8f17f76..e103a6ed333 100644 --- a/thrust/thrust/system/detail/adl/copy.h +++ b/thrust/thrust/system/detail/adl/copy.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the copy.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/copy_if.h b/thrust/thrust/system/detail/adl/copy_if.h index f7e59390749..efec0cb9445 100644 --- a/thrust/thrust/system/detail/adl/copy_if.h +++ b/thrust/thrust/system/detail/adl/copy_if.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the copy_if.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/count.h b/thrust/thrust/system/detail/adl/count.h index b5d7f21f362..60dbab4f29c 100644 --- a/thrust/thrust/system/detail/adl/count.h +++ b/thrust/thrust/system/detail/adl/count.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the count.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/equal.h b/thrust/thrust/system/detail/adl/equal.h index 07530c0d58f..3f5bb54b1c0 100644 --- a/thrust/thrust/system/detail/adl/equal.h +++ b/thrust/thrust/system/detail/adl/equal.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the equal.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/extrema.h b/thrust/thrust/system/detail/adl/extrema.h index a44a731917e..ad4ae3b5a61 100644 --- a/thrust/thrust/system/detail/adl/extrema.h +++ b/thrust/thrust/system/detail/adl/extrema.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the extrema.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/fill.h b/thrust/thrust/system/detail/adl/fill.h index e4627f53140..adfce5a49d5 100644 --- a/thrust/thrust/system/detail/adl/fill.h +++ b/thrust/thrust/system/detail/adl/fill.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the fill.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/find.h b/thrust/thrust/system/detail/adl/find.h index 06f3629b5f4..1b8543aaaa8 100644 --- a/thrust/thrust/system/detail/adl/find.h +++ b/thrust/thrust/system/detail/adl/find.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the find.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/for_each.h b/thrust/thrust/system/detail/adl/for_each.h index 75a5315874b..3a9e3adf735 100644 --- a/thrust/thrust/system/detail/adl/for_each.h +++ b/thrust/thrust/system/detail/adl/for_each.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the for_each.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/gather.h b/thrust/thrust/system/detail/adl/gather.h index 702f958f85a..82ac687ca64 100644 --- a/thrust/thrust/system/detail/adl/gather.h +++ b/thrust/thrust/system/detail/adl/gather.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the gather.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/generate.h b/thrust/thrust/system/detail/adl/generate.h index e8f6860041a..47dbad27455 100644 --- a/thrust/thrust/system/detail/adl/generate.h +++ b/thrust/thrust/system/detail/adl/generate.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the generate.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/get_value.h b/thrust/thrust/system/detail/adl/get_value.h index 99cb18e638d..4817055baa9 100644 --- a/thrust/thrust/system/detail/adl/get_value.h +++ b/thrust/thrust/system/detail/adl/get_value.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the get_value.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/inner_product.h b/thrust/thrust/system/detail/adl/inner_product.h index 8f0fb5dd22b..ff4756bc5af 100644 --- a/thrust/thrust/system/detail/adl/inner_product.h +++ b/thrust/thrust/system/detail/adl/inner_product.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the inner_product.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/iter_swap.h b/thrust/thrust/system/detail/adl/iter_swap.h index 9ab6bbab4ed..8bf4f87f123 100644 --- a/thrust/thrust/system/detail/adl/iter_swap.h +++ b/thrust/thrust/system/detail/adl/iter_swap.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the iter_swap.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/logical.h b/thrust/thrust/system/detail/adl/logical.h index 52c44eedacc..9bbdaac40fb 100644 --- a/thrust/thrust/system/detail/adl/logical.h +++ b/thrust/thrust/system/detail/adl/logical.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the logical.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/malloc_and_free.h b/thrust/thrust/system/detail/adl/malloc_and_free.h index 0afa3d6b055..9234da85e18 100644 --- a/thrust/thrust/system/detail/adl/malloc_and_free.h +++ b/thrust/thrust/system/detail/adl/malloc_and_free.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the malloc_and_free.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/merge.h b/thrust/thrust/system/detail/adl/merge.h index 4e2bac531c5..7974823c9fe 100644 --- a/thrust/thrust/system/detail/adl/merge.h +++ b/thrust/thrust/system/detail/adl/merge.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the merge.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/mismatch.h b/thrust/thrust/system/detail/adl/mismatch.h index d16dd43d826..1313425eaf0 100644 --- a/thrust/thrust/system/detail/adl/mismatch.h +++ b/thrust/thrust/system/detail/adl/mismatch.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the mismatch.h header // of the host and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/partition.h b/thrust/thrust/system/detail/adl/partition.h index 0404bdb51cd..60d2d8de2f3 100644 --- a/thrust/thrust/system/detail/adl/partition.h +++ b/thrust/thrust/system/detail/adl/partition.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the partition.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/per_device_resource.h b/thrust/thrust/system/detail/adl/per_device_resource.h index 4dcba06ba7d..afc5df0031b 100644 --- a/thrust/thrust/system/detail/adl/per_device_resource.h +++ b/thrust/thrust/system/detail/adl/per_device_resource.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the per_device_resource.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/reduce.h b/thrust/thrust/system/detail/adl/reduce.h index 20d9277fabe..ce86610ebbc 100644 --- a/thrust/thrust/system/detail/adl/reduce.h +++ b/thrust/thrust/system/detail/adl/reduce.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the reduce.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/reduce_by_key.h b/thrust/thrust/system/detail/adl/reduce_by_key.h index fec42370b6d..49afe209f44 100644 --- a/thrust/thrust/system/detail/adl/reduce_by_key.h +++ b/thrust/thrust/system/detail/adl/reduce_by_key.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the reduce_by_key.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/remove.h b/thrust/thrust/system/detail/adl/remove.h index 97fb8c86388..ba14b96bd4f 100644 --- a/thrust/thrust/system/detail/adl/remove.h +++ b/thrust/thrust/system/detail/adl/remove.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the remove.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/replace.h b/thrust/thrust/system/detail/adl/replace.h index b04206cccf9..c2efd40e80a 100644 --- a/thrust/thrust/system/detail/adl/replace.h +++ b/thrust/thrust/system/detail/adl/replace.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the replace.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/reverse.h b/thrust/thrust/system/detail/adl/reverse.h index 5527ef901ab..f0a4972c648 100644 --- a/thrust/thrust/system/detail/adl/reverse.h +++ b/thrust/thrust/system/detail/adl/reverse.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the reverse.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/scan.h b/thrust/thrust/system/detail/adl/scan.h index 68bc9bf3c85..904e9c4f9ce 100644 --- a/thrust/thrust/system/detail/adl/scan.h +++ b/thrust/thrust/system/detail/adl/scan.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the scan.h header // of the host and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/scan_by_key.h b/thrust/thrust/system/detail/adl/scan_by_key.h index d2986659e33..bb4f9d4af76 100644 --- a/thrust/thrust/system/detail/adl/scan_by_key.h +++ b/thrust/thrust/system/detail/adl/scan_by_key.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the scan_by_key.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/scatter.h b/thrust/thrust/system/detail/adl/scatter.h index eb4a327b5f6..d562fbec037 100644 --- a/thrust/thrust/system/detail/adl/scatter.h +++ b/thrust/thrust/system/detail/adl/scatter.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the scatter.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/sequence.h b/thrust/thrust/system/detail/adl/sequence.h index 42663a8d88e..4e364a84db2 100644 --- a/thrust/thrust/system/detail/adl/sequence.h +++ b/thrust/thrust/system/detail/adl/sequence.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the sequence.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/set_operations.h b/thrust/thrust/system/detail/adl/set_operations.h index 92811d89f22..dae16bd3714 100644 --- a/thrust/thrust/system/detail/adl/set_operations.h +++ b/thrust/thrust/system/detail/adl/set_operations.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the set_operations.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/sort.h b/thrust/thrust/system/detail/adl/sort.h index afe3261cfaa..d0687f311b6 100644 --- a/thrust/thrust/system/detail/adl/sort.h +++ b/thrust/thrust/system/detail/adl/sort.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the sort.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/swap_ranges.h b/thrust/thrust/system/detail/adl/swap_ranges.h index 20f48e0f568..af2393b8125 100644 --- a/thrust/thrust/system/detail/adl/swap_ranges.h +++ b/thrust/thrust/system/detail/adl/swap_ranges.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the swap_ranges.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/tabulate.h b/thrust/thrust/system/detail/adl/tabulate.h index 0a76c82e670..ba9a013ac7a 100644 --- a/thrust/thrust/system/detail/adl/tabulate.h +++ b/thrust/thrust/system/detail/adl/tabulate.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the tabulate.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/temporary_buffer.h b/thrust/thrust/system/detail/adl/temporary_buffer.h index e6336f77ebb..e916fe63d8f 100644 --- a/thrust/thrust/system/detail/adl/temporary_buffer.h +++ b/thrust/thrust/system/detail/adl/temporary_buffer.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the temporary_buffer.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/transform.h b/thrust/thrust/system/detail/adl/transform.h index 88b9391f2cf..a3e0757cc7c 100644 --- a/thrust/thrust/system/detail/adl/transform.h +++ b/thrust/thrust/system/detail/adl/transform.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the transform.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/transform_reduce.h b/thrust/thrust/system/detail/adl/transform_reduce.h index af1818fb3d5..45483fea753 100644 --- a/thrust/thrust/system/detail/adl/transform_reduce.h +++ b/thrust/thrust/system/detail/adl/transform_reduce.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the transform_reduce.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/transform_scan.h b/thrust/thrust/system/detail/adl/transform_scan.h index 81bc8ed3ae0..972d46c723a 100644 --- a/thrust/thrust/system/detail/adl/transform_scan.h +++ b/thrust/thrust/system/detail/adl/transform_scan.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the transform_scan.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/uninitialized_copy.h b/thrust/thrust/system/detail/adl/uninitialized_copy.h index dd847ef68bd..f31e4b2c66d 100644 --- a/thrust/thrust/system/detail/adl/uninitialized_copy.h +++ b/thrust/thrust/system/detail/adl/uninitialized_copy.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the uninitialized_copy.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/uninitialized_fill.h b/thrust/thrust/system/detail/adl/uninitialized_fill.h index c0b86161f94..bd98e450f46 100644 --- a/thrust/thrust/system/detail/adl/uninitialized_fill.h +++ b/thrust/thrust/system/detail/adl/uninitialized_fill.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the uninitialized_fill.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/unique.h b/thrust/thrust/system/detail/adl/unique.h index f6887219220..d866ad04a49 100644 --- a/thrust/thrust/system/detail/adl/unique.h +++ b/thrust/thrust/system/detail/adl/unique.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the unique.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/adl/unique_by_key.h b/thrust/thrust/system/detail/adl/unique_by_key.h index fe4d2b70cb1..d6e6020550a 100644 --- a/thrust/thrust/system/detail/adl/unique_by_key.h +++ b/thrust/thrust/system/detail/adl/unique_by_key.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // the purpose of this header is to #include the unique_by_key.h header // of the sequential, host, and device systems. It should be #included in any diff --git a/thrust/thrust/system/detail/bad_alloc.h b/thrust/thrust/system/detail/bad_alloc.h index 215ad108f71..32b1bf0a75f 100644 --- a/thrust/thrust/system/detail/bad_alloc.h +++ b/thrust/thrust/system/detail/bad_alloc.h @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/detail/errno.h b/thrust/thrust/system/detail/errno.h index 261b7439c3b..8e29bf7cb6b 100644 --- a/thrust/thrust/system/detail/errno.h +++ b/thrust/thrust/system/detail/errno.h @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // The rationale for the existence of these apparently redundant definitions is // to provide them portably and to avoid bringing in system headers which might diff --git a/thrust/thrust/system/detail/error_category.inl b/thrust/thrust/system/detail/error_category.inl index 204c112e365..68332dd3644 100644 --- a/thrust/thrust/system/detail/error_category.inl +++ b/thrust/thrust/system/detail/error_category.inl @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/detail/error_code.inl b/thrust/thrust/system/detail/error_code.inl index 7d70d21082f..16611bf1b5b 100644 --- a/thrust/thrust/system/detail/error_code.inl +++ b/thrust/thrust/system/detail/error_code.inl @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/system/detail/error_condition.inl b/thrust/thrust/system/detail/error_condition.inl index dd8312f9784..903a4fc20b6 100644 --- a/thrust/thrust/system/detail/error_condition.inl +++ b/thrust/thrust/system/detail/error_condition.inl @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/detail/generic/adjacent_difference.h b/thrust/thrust/system/detail/generic/adjacent_difference.h index 62c692696bd..0e0b13d841c 100644 --- a/thrust/thrust/system/detail/generic/adjacent_difference.h +++ b/thrust/thrust/system/detail/generic/adjacent_difference.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/generic/adjacent_difference.inl b/thrust/thrust/system/detail/generic/adjacent_difference.inl index 6527fd3f1af..1a6128cfa41 100644 --- a/thrust/thrust/system/detail/generic/adjacent_difference.inl +++ b/thrust/thrust/system/detail/generic/adjacent_difference.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/advance.h b/thrust/thrust/system/detail/generic/advance.h index d79a0926cac..cc298954174 100644 --- a/thrust/thrust/system/detail/generic/advance.h +++ b/thrust/thrust/system/detail/generic/advance.h @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC THRUST_NAMESPACE_BEGIN namespace system diff --git a/thrust/thrust/system/detail/generic/advance.inl b/thrust/thrust/system/detail/generic/advance.inl index 65d7df10030..c2600cc56cc 100644 --- a/thrust/thrust/system/detail/generic/advance.inl +++ b/thrust/thrust/system/detail/generic/advance.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/detail/generic/binary_search.h b/thrust/thrust/system/detail/generic/binary_search.h index 9d04f5bbc85..77a4ce73ea6 100644 --- a/thrust/thrust/system/detail/generic/binary_search.h +++ b/thrust/thrust/system/detail/generic/binary_search.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/generic/binary_search.inl b/thrust/thrust/system/detail/generic/binary_search.inl index a2a63643ea8..391263eea08 100644 --- a/thrust/thrust/system/detail/generic/binary_search.inl +++ b/thrust/thrust/system/detail/generic/binary_search.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/copy.h b/thrust/thrust/system/detail/generic/copy.h index bf13a8c072b..201a33489a3 100644 --- a/thrust/thrust/system/detail/generic/copy.h +++ b/thrust/thrust/system/detail/generic/copy.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/generic/copy.inl b/thrust/thrust/system/detail/generic/copy.inl index 3260f6b1f8f..57d040385e5 100644 --- a/thrust/thrust/system/detail/generic/copy.inl +++ b/thrust/thrust/system/detail/generic/copy.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/copy_if.h b/thrust/thrust/system/detail/generic/copy_if.h index 15c13b0368b..44105eb0140 100644 --- a/thrust/thrust/system/detail/generic/copy_if.h +++ b/thrust/thrust/system/detail/generic/copy_if.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/generic/copy_if.inl b/thrust/thrust/system/detail/generic/copy_if.inl index d4cb5a27e8c..5dbff9fff55 100644 --- a/thrust/thrust/system/detail/generic/copy_if.inl +++ b/thrust/thrust/system/detail/generic/copy_if.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/count.h b/thrust/thrust/system/detail/generic/count.h index 73962c03d8c..80523a7dc1f 100644 --- a/thrust/thrust/system/detail/generic/count.h +++ b/thrust/thrust/system/detail/generic/count.h @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/generic/count.inl b/thrust/thrust/system/detail/generic/count.inl index 95ffc9d35c7..d1187a8d667 100644 --- a/thrust/thrust/system/detail/generic/count.inl +++ b/thrust/thrust/system/detail/generic/count.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/distance.h b/thrust/thrust/system/detail/generic/distance.h index fc70833d1b0..2d48211af10 100644 --- a/thrust/thrust/system/detail/generic/distance.h +++ b/thrust/thrust/system/detail/generic/distance.h @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/generic/distance.inl b/thrust/thrust/system/detail/generic/distance.inl index c2caf18de35..7356946a033 100644 --- a/thrust/thrust/system/detail/generic/distance.inl +++ b/thrust/thrust/system/detail/generic/distance.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/detail/generic/equal.h b/thrust/thrust/system/detail/generic/equal.h index 0eb5bafd667..cbbd6ffb2e3 100644 --- a/thrust/thrust/system/detail/generic/equal.h +++ b/thrust/thrust/system/detail/generic/equal.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/generic/equal.inl b/thrust/thrust/system/detail/generic/equal.inl index ede4fa3ba32..a9e318c5751 100644 --- a/thrust/thrust/system/detail/generic/equal.inl +++ b/thrust/thrust/system/detail/generic/equal.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/extrema.h b/thrust/thrust/system/detail/generic/extrema.h index 82fde962906..88d1a859b0c 100644 --- a/thrust/thrust/system/detail/generic/extrema.h +++ b/thrust/thrust/system/detail/generic/extrema.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/detail/generic/extrema.inl b/thrust/thrust/system/detail/generic/extrema.inl index ec24d3bf5c6..a98ce903ce2 100644 --- a/thrust/thrust/system/detail/generic/extrema.inl +++ b/thrust/thrust/system/detail/generic/extrema.inl @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/fill.h b/thrust/thrust/system/detail/generic/fill.h index 1fcd8a51de1..95179d287e1 100644 --- a/thrust/thrust/system/detail/generic/fill.h +++ b/thrust/thrust/system/detail/generic/fill.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/detail/generic/find.h b/thrust/thrust/system/detail/generic/find.h index 98982f1e771..5825fe11530 100644 --- a/thrust/thrust/system/detail/generic/find.h +++ b/thrust/thrust/system/detail/generic/find.h @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/generic/find.inl b/thrust/thrust/system/detail/generic/find.inl index 0d7bcc9825f..c0077e9c70a 100644 --- a/thrust/thrust/system/detail/generic/find.inl +++ b/thrust/thrust/system/detail/generic/find.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/detail/generic/for_each.h b/thrust/thrust/system/detail/generic/for_each.h index 5c572c29c3d..d650ee20b00 100644 --- a/thrust/thrust/system/detail/generic/for_each.h +++ b/thrust/thrust/system/detail/generic/for_each.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/gather.h b/thrust/thrust/system/detail/generic/gather.h index 1475bd98e25..c8d94c9514f 100644 --- a/thrust/thrust/system/detail/generic/gather.h +++ b/thrust/thrust/system/detail/generic/gather.h @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/generic/gather.inl b/thrust/thrust/system/detail/generic/gather.inl index 45f0c071345..d8d897302fe 100644 --- a/thrust/thrust/system/detail/generic/gather.inl +++ b/thrust/thrust/system/detail/generic/gather.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/generate.h b/thrust/thrust/system/detail/generic/generate.h index ca6915dffd3..8806f4c4bc8 100644 --- a/thrust/thrust/system/detail/generic/generate.h +++ b/thrust/thrust/system/detail/generic/generate.h @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/generic/generate.inl b/thrust/thrust/system/detail/generic/generate.inl index d9c99422470..7c6a949e913 100644 --- a/thrust/thrust/system/detail/generic/generate.inl +++ b/thrust/thrust/system/detail/generic/generate.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/inner_product.h b/thrust/thrust/system/detail/generic/inner_product.h index 861f4e2df6d..92c4915a548 100644 --- a/thrust/thrust/system/detail/generic/inner_product.h +++ b/thrust/thrust/system/detail/generic/inner_product.h @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/generic/inner_product.inl b/thrust/thrust/system/detail/generic/inner_product.inl index 8d72edd9145..92246ae46e9 100644 --- a/thrust/thrust/system/detail/generic/inner_product.inl +++ b/thrust/thrust/system/detail/generic/inner_product.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/logical.h b/thrust/thrust/system/detail/generic/logical.h index d88c50d504e..ab74f97126b 100644 --- a/thrust/thrust/system/detail/generic/logical.h +++ b/thrust/thrust/system/detail/generic/logical.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/memory.h b/thrust/thrust/system/detail/generic/memory.h index 8a3f3323455..69a0598e764 100644 --- a/thrust/thrust/system/detail/generic/memory.h +++ b/thrust/thrust/system/detail/generic/memory.h @@ -24,7 +24,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/memory.inl b/thrust/thrust/system/detail/generic/memory.inl index 0db82d09d16..8b4b4a120e8 100644 --- a/thrust/thrust/system/detail/generic/memory.inl +++ b/thrust/thrust/system/detail/generic/memory.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/merge.h b/thrust/thrust/system/detail/generic/merge.h index 19d8804cf06..83a64187ebc 100644 --- a/thrust/thrust/system/detail/generic/merge.h +++ b/thrust/thrust/system/detail/generic/merge.h @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/generic/merge.inl b/thrust/thrust/system/detail/generic/merge.inl index 6503a2f3dac..18dd9f0323e 100644 --- a/thrust/thrust/system/detail/generic/merge.inl +++ b/thrust/thrust/system/detail/generic/merge.inl @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/mismatch.h b/thrust/thrust/system/detail/generic/mismatch.h index ecd0b3a4e6b..aff424d0d04 100644 --- a/thrust/thrust/system/detail/generic/mismatch.h +++ b/thrust/thrust/system/detail/generic/mismatch.h @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/generic/mismatch.inl b/thrust/thrust/system/detail/generic/mismatch.inl index ed5964d9983..717d576e2cd 100644 --- a/thrust/thrust/system/detail/generic/mismatch.inl +++ b/thrust/thrust/system/detail/generic/mismatch.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/partition.h b/thrust/thrust/system/detail/generic/partition.h index cee6490f02e..6b216dac154 100644 --- a/thrust/thrust/system/detail/generic/partition.h +++ b/thrust/thrust/system/detail/generic/partition.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/generic/partition.inl b/thrust/thrust/system/detail/generic/partition.inl index adafd888a13..0a835fcedbd 100644 --- a/thrust/thrust/system/detail/generic/partition.inl +++ b/thrust/thrust/system/detail/generic/partition.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/per_device_resource.h b/thrust/thrust/system/detail/generic/per_device_resource.h index 7b16e2abf79..1565fee9c1f 100644 --- a/thrust/thrust/system/detail/generic/per_device_resource.h +++ b/thrust/thrust/system/detail/generic/per_device_resource.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/reduce.h b/thrust/thrust/system/detail/generic/reduce.h index d3a3b7c3fef..54c415aa265 100644 --- a/thrust/thrust/system/detail/generic/reduce.h +++ b/thrust/thrust/system/detail/generic/reduce.h @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/detail/generic/reduce.inl b/thrust/thrust/system/detail/generic/reduce.inl index 6eedb8d0ab9..bfc478ed55a 100644 --- a/thrust/thrust/system/detail/generic/reduce.inl +++ b/thrust/thrust/system/detail/generic/reduce.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/detail/generic/reduce_by_key.h b/thrust/thrust/system/detail/generic/reduce_by_key.h index 4644e0a2eb6..00abf0c85bf 100644 --- a/thrust/thrust/system/detail/generic/reduce_by_key.h +++ b/thrust/thrust/system/detail/generic/reduce_by_key.h @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/detail/generic/reduce_by_key.inl b/thrust/thrust/system/detail/generic/reduce_by_key.inl index e0d35acc9a9..9ade5eaaec1 100644 --- a/thrust/thrust/system/detail/generic/reduce_by_key.inl +++ b/thrust/thrust/system/detail/generic/reduce_by_key.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/detail/generic/remove.h b/thrust/thrust/system/detail/generic/remove.h index 4f9d4a5e4b0..2c9a8f9abae 100644 --- a/thrust/thrust/system/detail/generic/remove.h +++ b/thrust/thrust/system/detail/generic/remove.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/generic/remove.inl b/thrust/thrust/system/detail/generic/remove.inl index 4784afe4ef4..d71a2e2e0fb 100644 --- a/thrust/thrust/system/detail/generic/remove.inl +++ b/thrust/thrust/system/detail/generic/remove.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/replace.h b/thrust/thrust/system/detail/generic/replace.h index 665aebe23bd..a294f108a8b 100644 --- a/thrust/thrust/system/detail/generic/replace.h +++ b/thrust/thrust/system/detail/generic/replace.h @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/generic/replace.inl b/thrust/thrust/system/detail/generic/replace.inl index 06789dd1ee7..d49f85cc078 100644 --- a/thrust/thrust/system/detail/generic/replace.inl +++ b/thrust/thrust/system/detail/generic/replace.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/reverse.h b/thrust/thrust/system/detail/generic/reverse.h index e41054500fb..3e8451a6cd1 100644 --- a/thrust/thrust/system/detail/generic/reverse.h +++ b/thrust/thrust/system/detail/generic/reverse.h @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/generic/reverse.inl b/thrust/thrust/system/detail/generic/reverse.inl index 75d95ca3ce0..2ee86fcba11 100644 --- a/thrust/thrust/system/detail/generic/reverse.inl +++ b/thrust/thrust/system/detail/generic/reverse.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/scalar/binary_search.h b/thrust/thrust/system/detail/generic/scalar/binary_search.h index 38f90fbf201..51842eb5103 100644 --- a/thrust/thrust/system/detail/generic/scalar/binary_search.h +++ b/thrust/thrust/system/detail/generic/scalar/binary_search.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/generic/scalar/binary_search.inl b/thrust/thrust/system/detail/generic/scalar/binary_search.inl index e073ba5fa9c..095a8a13a51 100644 --- a/thrust/thrust/system/detail/generic/scalar/binary_search.inl +++ b/thrust/thrust/system/detail/generic/scalar/binary_search.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/scan.h b/thrust/thrust/system/detail/generic/scan.h index 2c0bca9a68c..b96ab3462cb 100644 --- a/thrust/thrust/system/detail/generic/scan.h +++ b/thrust/thrust/system/detail/generic/scan.h @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/generic/scan.inl b/thrust/thrust/system/detail/generic/scan.inl index fec4b5e0466..788761487e2 100644 --- a/thrust/thrust/system/detail/generic/scan.inl +++ b/thrust/thrust/system/detail/generic/scan.inl @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/scan_by_key.h b/thrust/thrust/system/detail/generic/scan_by_key.h index 7024bc5c871..eba28de7feb 100644 --- a/thrust/thrust/system/detail/generic/scan_by_key.h +++ b/thrust/thrust/system/detail/generic/scan_by_key.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/generic/scan_by_key.inl b/thrust/thrust/system/detail/generic/scan_by_key.inl index d0e897bf5fe..242c6852c9f 100644 --- a/thrust/thrust/system/detail/generic/scan_by_key.inl +++ b/thrust/thrust/system/detail/generic/scan_by_key.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/scatter.h b/thrust/thrust/system/detail/generic/scatter.h index 4cf466f99ad..00b89287b78 100644 --- a/thrust/thrust/system/detail/generic/scatter.h +++ b/thrust/thrust/system/detail/generic/scatter.h @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/generic/scatter.inl b/thrust/thrust/system/detail/generic/scatter.inl index 8f06c873c41..0880a495d2b 100644 --- a/thrust/thrust/system/detail/generic/scatter.inl +++ b/thrust/thrust/system/detail/generic/scatter.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/select_system.h b/thrust/thrust/system/detail/generic/select_system.h index 5457a8b4779..4d7657cf356 100644 --- a/thrust/thrust/system/detail/generic/select_system.h +++ b/thrust/thrust/system/detail/generic/select_system.h @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/select_system.inl b/thrust/thrust/system/detail/generic/select_system.inl index 1a8b51e8127..b793fca5e4e 100644 --- a/thrust/thrust/system/detail/generic/select_system.inl +++ b/thrust/thrust/system/detail/generic/select_system.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/select_system_exists.h b/thrust/thrust/system/detail/generic/select_system_exists.h index 0f12a15668d..1a6943f0730 100644 --- a/thrust/thrust/system/detail/generic/select_system_exists.h +++ b/thrust/thrust/system/detail/generic/select_system_exists.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/generic/sequence.h b/thrust/thrust/system/detail/generic/sequence.h index 4cfc17c2013..2fa79d9256b 100644 --- a/thrust/thrust/system/detail/generic/sequence.h +++ b/thrust/thrust/system/detail/generic/sequence.h @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/generic/sequence.inl b/thrust/thrust/system/detail/generic/sequence.inl index 87d33bba2ad..55f8e9e333c 100644 --- a/thrust/thrust/system/detail/generic/sequence.inl +++ b/thrust/thrust/system/detail/generic/sequence.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/set_operations.h b/thrust/thrust/system/detail/generic/set_operations.h index cee70b1b1a4..7285876b54e 100644 --- a/thrust/thrust/system/detail/generic/set_operations.h +++ b/thrust/thrust/system/detail/generic/set_operations.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/detail/generic/set_operations.inl b/thrust/thrust/system/detail/generic/set_operations.inl index 408ea9c3f5f..61f9c0156b8 100644 --- a/thrust/thrust/system/detail/generic/set_operations.inl +++ b/thrust/thrust/system/detail/generic/set_operations.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/shuffle.h b/thrust/thrust/system/detail/generic/shuffle.h index 52c62a2bad3..34aea081fb0 100644 --- a/thrust/thrust/system/detail/generic/shuffle.h +++ b/thrust/thrust/system/detail/generic/shuffle.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/system/detail/generic/sort.h b/thrust/thrust/system/detail/generic/sort.h index 3d6042209e5..87da3bc4cb6 100644 --- a/thrust/thrust/system/detail/generic/sort.h +++ b/thrust/thrust/system/detail/generic/sort.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/generic/sort.inl b/thrust/thrust/system/detail/generic/sort.inl index 3320a286f96..e2f3c31184e 100644 --- a/thrust/thrust/system/detail/generic/sort.inl +++ b/thrust/thrust/system/detail/generic/sort.inl @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/swap_ranges.h b/thrust/thrust/system/detail/generic/swap_ranges.h index 5a27b59428e..b7270530247 100644 --- a/thrust/thrust/system/detail/generic/swap_ranges.h +++ b/thrust/thrust/system/detail/generic/swap_ranges.h @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/generic/swap_ranges.inl b/thrust/thrust/system/detail/generic/swap_ranges.inl index ab7eca5c038..0f68ebd80a7 100644 --- a/thrust/thrust/system/detail/generic/swap_ranges.inl +++ b/thrust/thrust/system/detail/generic/swap_ranges.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/tabulate.h b/thrust/thrust/system/detail/generic/tabulate.h index 5aa2b347898..4c6df103a8b 100644 --- a/thrust/thrust/system/detail/generic/tabulate.h +++ b/thrust/thrust/system/detail/generic/tabulate.h @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/generic/tabulate.inl b/thrust/thrust/system/detail/generic/tabulate.inl index 97f5b478f29..da2a6b82c9d 100644 --- a/thrust/thrust/system/detail/generic/tabulate.inl +++ b/thrust/thrust/system/detail/generic/tabulate.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/tag.h b/thrust/thrust/system/detail/generic/tag.h index bc01af9c0a2..1a02f1af0bd 100644 --- a/thrust/thrust/system/detail/generic/tag.h +++ b/thrust/thrust/system/detail/generic/tag.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC THRUST_NAMESPACE_BEGIN namespace system diff --git a/thrust/thrust/system/detail/generic/temporary_buffer.h b/thrust/thrust/system/detail/generic/temporary_buffer.h index e0416ccaa28..94d8cb64be6 100644 --- a/thrust/thrust/system/detail/generic/temporary_buffer.h +++ b/thrust/thrust/system/detail/generic/temporary_buffer.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/temporary_buffer.inl b/thrust/thrust/system/detail/generic/temporary_buffer.inl index e3dfe57f4ed..7a792e5041b 100644 --- a/thrust/thrust/system/detail/generic/temporary_buffer.inl +++ b/thrust/thrust/system/detail/generic/temporary_buffer.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/transform.h b/thrust/thrust/system/detail/generic/transform.h index 0eed42ccd96..175fcb672b8 100644 --- a/thrust/thrust/system/detail/generic/transform.h +++ b/thrust/thrust/system/detail/generic/transform.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/generic/transform.inl b/thrust/thrust/system/detail/generic/transform.inl index 8ab6765718d..6bc3292117e 100644 --- a/thrust/thrust/system/detail/generic/transform.inl +++ b/thrust/thrust/system/detail/generic/transform.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/transform_reduce.h b/thrust/thrust/system/detail/generic/transform_reduce.h index f2e534c228b..e5c07e2d415 100644 --- a/thrust/thrust/system/detail/generic/transform_reduce.h +++ b/thrust/thrust/system/detail/generic/transform_reduce.h @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/generic/transform_reduce.inl b/thrust/thrust/system/detail/generic/transform_reduce.inl index 12f41889d8a..580da0c1e06 100644 --- a/thrust/thrust/system/detail/generic/transform_reduce.inl +++ b/thrust/thrust/system/detail/generic/transform_reduce.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/transform_scan.h b/thrust/thrust/system/detail/generic/transform_scan.h index f02ffc10a11..9226615a0b1 100644 --- a/thrust/thrust/system/detail/generic/transform_scan.h +++ b/thrust/thrust/system/detail/generic/transform_scan.h @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/generic/transform_scan.inl b/thrust/thrust/system/detail/generic/transform_scan.inl index c426b7b08da..23e2582b6f1 100644 --- a/thrust/thrust/system/detail/generic/transform_scan.inl +++ b/thrust/thrust/system/detail/generic/transform_scan.inl @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/uninitialized_copy.h b/thrust/thrust/system/detail/generic/uninitialized_copy.h index 84d7e67834a..022f016055e 100644 --- a/thrust/thrust/system/detail/generic/uninitialized_copy.h +++ b/thrust/thrust/system/detail/generic/uninitialized_copy.h @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/generic/uninitialized_copy.inl b/thrust/thrust/system/detail/generic/uninitialized_copy.inl index 52a8b1e5ae3..ba7a5a27dc1 100644 --- a/thrust/thrust/system/detail/generic/uninitialized_copy.inl +++ b/thrust/thrust/system/detail/generic/uninitialized_copy.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/uninitialized_fill.h b/thrust/thrust/system/detail/generic/uninitialized_fill.h index 463c00c8d7b..dc88adc0e9c 100644 --- a/thrust/thrust/system/detail/generic/uninitialized_fill.h +++ b/thrust/thrust/system/detail/generic/uninitialized_fill.h @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/generic/uninitialized_fill.inl b/thrust/thrust/system/detail/generic/uninitialized_fill.inl index 74c46a5519f..169abebb309 100644 --- a/thrust/thrust/system/detail/generic/uninitialized_fill.inl +++ b/thrust/thrust/system/detail/generic/uninitialized_fill.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/unique.h b/thrust/thrust/system/detail/generic/unique.h index 96124860796..786da30caa9 100644 --- a/thrust/thrust/system/detail/generic/unique.h +++ b/thrust/thrust/system/detail/generic/unique.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/generic/unique.inl b/thrust/thrust/system/detail/generic/unique.inl index 13e22ec8262..e85768cd3df 100644 --- a/thrust/thrust/system/detail/generic/unique.inl +++ b/thrust/thrust/system/detail/generic/unique.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/generic/unique_by_key.h b/thrust/thrust/system/detail/generic/unique_by_key.h index 5842da4e1e2..c070e738cc0 100644 --- a/thrust/thrust/system/detail/generic/unique_by_key.h +++ b/thrust/thrust/system/detail/generic/unique_by_key.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/detail/generic/unique_by_key.inl b/thrust/thrust/system/detail/generic/unique_by_key.inl index 437752620e2..801bdea5abf 100644 --- a/thrust/thrust/system/detail/generic/unique_by_key.inl +++ b/thrust/thrust/system/detail/generic/unique_by_key.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/internal/decompose.h b/thrust/thrust/system/detail/internal/decompose.h index 935e7a71ee6..131fb258f52 100644 --- a/thrust/thrust/system/detail/internal/decompose.h +++ b/thrust/thrust/system/detail/internal/decompose.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC THRUST_NAMESPACE_BEGIN namespace system diff --git a/thrust/thrust/system/detail/sequential/adjacent_difference.h b/thrust/thrust/system/detail/sequential/adjacent_difference.h index 213c510bd97..414470442b2 100644 --- a/thrust/thrust/system/detail/sequential/adjacent_difference.h +++ b/thrust/thrust/system/detail/sequential/adjacent_difference.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/detail/sequential/assign_value.h b/thrust/thrust/system/detail/sequential/assign_value.h index e9cd34cc186..511a8507f8b 100644 --- a/thrust/thrust/system/detail/sequential/assign_value.h +++ b/thrust/thrust/system/detail/sequential/assign_value.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/detail/sequential/binary_search.h b/thrust/thrust/system/detail/sequential/binary_search.h index b195ea1bbdc..37ffb195b49 100644 --- a/thrust/thrust/system/detail/sequential/binary_search.h +++ b/thrust/thrust/system/detail/sequential/binary_search.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/detail/sequential/copy.h b/thrust/thrust/system/detail/sequential/copy.h index 6b8a8a16760..a657297698c 100644 --- a/thrust/thrust/system/detail/sequential/copy.h +++ b/thrust/thrust/system/detail/sequential/copy.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/sequential/copy.inl b/thrust/thrust/system/detail/sequential/copy.inl index 056b95b5a4e..50007f948fc 100644 --- a/thrust/thrust/system/detail/sequential/copy.inl +++ b/thrust/thrust/system/detail/sequential/copy.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/sequential/copy_backward.h b/thrust/thrust/system/detail/sequential/copy_backward.h index a0ccae12a90..b85834a601f 100644 --- a/thrust/thrust/system/detail/sequential/copy_backward.h +++ b/thrust/thrust/system/detail/sequential/copy_backward.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC THRUST_NAMESPACE_BEGIN namespace system diff --git a/thrust/thrust/system/detail/sequential/copy_if.h b/thrust/thrust/system/detail/sequential/copy_if.h index 03688754a8b..169654517ac 100644 --- a/thrust/thrust/system/detail/sequential/copy_if.h +++ b/thrust/thrust/system/detail/sequential/copy_if.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/detail/sequential/count.h b/thrust/thrust/system/detail/sequential/count.h index acca57c9ba1..aa47b74f536 100644 --- a/thrust/thrust/system/detail/sequential/count.h +++ b/thrust/thrust/system/detail/sequential/count.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special count functions diff --git a/thrust/thrust/system/detail/sequential/equal.h b/thrust/thrust/system/detail/sequential/equal.h index 6f55d7bfb1c..be6983aab32 100644 --- a/thrust/thrust/system/detail/sequential/equal.h +++ b/thrust/thrust/system/detail/sequential/equal.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special equal functions diff --git a/thrust/thrust/system/detail/sequential/execution_policy.h b/thrust/thrust/system/detail/sequential/execution_policy.h index fb724342638..dd547d77f76 100644 --- a/thrust/thrust/system/detail/sequential/execution_policy.h +++ b/thrust/thrust/system/detail/sequential/execution_policy.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/sequential/extrema.h b/thrust/thrust/system/detail/sequential/extrema.h index fcf9820bc97..0859adbc3de 100644 --- a/thrust/thrust/system/detail/sequential/extrema.h +++ b/thrust/thrust/system/detail/sequential/extrema.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/sequential/fill.h b/thrust/thrust/system/detail/sequential/fill.h index f481e14e631..85313ac6548 100644 --- a/thrust/thrust/system/detail/sequential/fill.h +++ b/thrust/thrust/system/detail/sequential/fill.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special fill functions diff --git a/thrust/thrust/system/detail/sequential/find.h b/thrust/thrust/system/detail/sequential/find.h index 532234bf534..ea19b6957c8 100644 --- a/thrust/thrust/system/detail/sequential/find.h +++ b/thrust/thrust/system/detail/sequential/find.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/detail/sequential/for_each.h b/thrust/thrust/system/detail/sequential/for_each.h index b563a68747e..c115b901cf9 100644 --- a/thrust/thrust/system/detail/sequential/for_each.h +++ b/thrust/thrust/system/detail/sequential/for_each.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/detail/sequential/gather.h b/thrust/thrust/system/detail/sequential/gather.h index c6b43255abd..76eb47da643 100644 --- a/thrust/thrust/system/detail/sequential/gather.h +++ b/thrust/thrust/system/detail/sequential/gather.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special gather functions diff --git a/thrust/thrust/system/detail/sequential/general_copy.h b/thrust/thrust/system/detail/sequential/general_copy.h index 709eb206340..a1579d5d1b4 100644 --- a/thrust/thrust/system/detail/sequential/general_copy.h +++ b/thrust/thrust/system/detail/sequential/general_copy.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/detail/sequential/generate.h b/thrust/thrust/system/detail/sequential/generate.h index 7696df3b518..eb534e994c4 100644 --- a/thrust/thrust/system/detail/sequential/generate.h +++ b/thrust/thrust/system/detail/sequential/generate.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special generate functions diff --git a/thrust/thrust/system/detail/sequential/get_value.h b/thrust/thrust/system/detail/sequential/get_value.h index cfdfb1eefcf..f06567334eb 100644 --- a/thrust/thrust/system/detail/sequential/get_value.h +++ b/thrust/thrust/system/detail/sequential/get_value.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/detail/sequential/inner_product.h b/thrust/thrust/system/detail/sequential/inner_product.h index 5eb0c6eff80..28d3f13a3ba 100644 --- a/thrust/thrust/system/detail/sequential/inner_product.h +++ b/thrust/thrust/system/detail/sequential/inner_product.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special inner_product functions diff --git a/thrust/thrust/system/detail/sequential/insertion_sort.h b/thrust/thrust/system/detail/sequential/insertion_sort.h index 1f62fe633d4..4b9d283573c 100644 --- a/thrust/thrust/system/detail/sequential/insertion_sort.h +++ b/thrust/thrust/system/detail/sequential/insertion_sort.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/detail/sequential/iter_swap.h b/thrust/thrust/system/detail/sequential/iter_swap.h index 9ff5ce95732..bcb98dd2acd 100644 --- a/thrust/thrust/system/detail/sequential/iter_swap.h +++ b/thrust/thrust/system/detail/sequential/iter_swap.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/sequential/logical.h b/thrust/thrust/system/detail/sequential/logical.h index 461fedbc0a8..9bed89ef06e 100644 --- a/thrust/thrust/system/detail/sequential/logical.h +++ b/thrust/thrust/system/detail/sequential/logical.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special logical functions diff --git a/thrust/thrust/system/detail/sequential/malloc_and_free.h b/thrust/thrust/system/detail/sequential/malloc_and_free.h index 15080b34069..452ff12beda 100644 --- a/thrust/thrust/system/detail/sequential/malloc_and_free.h +++ b/thrust/thrust/system/detail/sequential/malloc_and_free.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include // for malloc & free #include diff --git a/thrust/thrust/system/detail/sequential/merge.h b/thrust/thrust/system/detail/sequential/merge.h index f7ac6182d1d..3cb0041e269 100644 --- a/thrust/thrust/system/detail/sequential/merge.h +++ b/thrust/thrust/system/detail/sequential/merge.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/sequential/merge.inl b/thrust/thrust/system/detail/sequential/merge.inl index 67f0a009b7d..ee11e602a3c 100644 --- a/thrust/thrust/system/detail/sequential/merge.inl +++ b/thrust/thrust/system/detail/sequential/merge.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/sequential/mismatch.h b/thrust/thrust/system/detail/sequential/mismatch.h index 7370eb7bb14..5d077bbdabd 100644 --- a/thrust/thrust/system/detail/sequential/mismatch.h +++ b/thrust/thrust/system/detail/sequential/mismatch.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special mismatch functions diff --git a/thrust/thrust/system/detail/sequential/partition.h b/thrust/thrust/system/detail/sequential/partition.h index c9235984061..3878a3b2bdc 100644 --- a/thrust/thrust/system/detail/sequential/partition.h +++ b/thrust/thrust/system/detail/sequential/partition.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/sequential/per_device_resource.h b/thrust/thrust/system/detail/sequential/per_device_resource.h index b481bbc9e95..64c721210a7 100644 --- a/thrust/thrust/system/detail/sequential/per_device_resource.h +++ b/thrust/thrust/system/detail/sequential/per_device_resource.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special per device resource functions diff --git a/thrust/thrust/system/detail/sequential/reduce.h b/thrust/thrust/system/detail/sequential/reduce.h index e0c6d96156d..e14fb4755f0 100644 --- a/thrust/thrust/system/detail/sequential/reduce.h +++ b/thrust/thrust/system/detail/sequential/reduce.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/detail/sequential/reduce_by_key.h b/thrust/thrust/system/detail/sequential/reduce_by_key.h index b320b3dff3a..cad30bb417c 100644 --- a/thrust/thrust/system/detail/sequential/reduce_by_key.h +++ b/thrust/thrust/system/detail/sequential/reduce_by_key.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/sequential/remove.h b/thrust/thrust/system/detail/sequential/remove.h index 457218c2316..1444db22fc9 100644 --- a/thrust/thrust/system/detail/sequential/remove.h +++ b/thrust/thrust/system/detail/sequential/remove.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/detail/sequential/replace.h b/thrust/thrust/system/detail/sequential/replace.h index 0545b509b4c..8a2fb0e0463 100644 --- a/thrust/thrust/system/detail/sequential/replace.h +++ b/thrust/thrust/system/detail/sequential/replace.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special replace functions diff --git a/thrust/thrust/system/detail/sequential/reverse.h b/thrust/thrust/system/detail/sequential/reverse.h index 5933471973d..9cd83565804 100644 --- a/thrust/thrust/system/detail/sequential/reverse.h +++ b/thrust/thrust/system/detail/sequential/reverse.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special reverse functions diff --git a/thrust/thrust/system/detail/sequential/scan.h b/thrust/thrust/system/detail/sequential/scan.h index 058d207eb52..fee6f11571f 100644 --- a/thrust/thrust/system/detail/sequential/scan.h +++ b/thrust/thrust/system/detail/sequential/scan.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/sequential/scan_by_key.h b/thrust/thrust/system/detail/sequential/scan_by_key.h index ba55f8ec2ad..11e43969304 100644 --- a/thrust/thrust/system/detail/sequential/scan_by_key.h +++ b/thrust/thrust/system/detail/sequential/scan_by_key.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/sequential/scatter.h b/thrust/thrust/system/detail/sequential/scatter.h index 91fb34b7dc8..166b455c1ae 100644 --- a/thrust/thrust/system/detail/sequential/scatter.h +++ b/thrust/thrust/system/detail/sequential/scatter.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special scatter functions diff --git a/thrust/thrust/system/detail/sequential/sequence.h b/thrust/thrust/system/detail/sequential/sequence.h index 63d862ef8d0..a65392eb799 100644 --- a/thrust/thrust/system/detail/sequential/sequence.h +++ b/thrust/thrust/system/detail/sequential/sequence.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special sequence functions diff --git a/thrust/thrust/system/detail/sequential/set_operations.h b/thrust/thrust/system/detail/sequential/set_operations.h index 7850c46abc4..028fe9bcb53 100644 --- a/thrust/thrust/system/detail/sequential/set_operations.h +++ b/thrust/thrust/system/detail/sequential/set_operations.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/sequential/sort.h b/thrust/thrust/system/detail/sequential/sort.h index b6a7db768fd..6e635deb1ea 100644 --- a/thrust/thrust/system/detail/sequential/sort.h +++ b/thrust/thrust/system/detail/sequential/sort.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/sequential/sort.inl b/thrust/thrust/system/detail/sequential/sort.inl index 674ed479c3b..30a4715b15d 100644 --- a/thrust/thrust/system/detail/sequential/sort.inl +++ b/thrust/thrust/system/detail/sequential/sort.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/detail/sequential/stable_merge_sort.h b/thrust/thrust/system/detail/sequential/stable_merge_sort.h index bc5a7fb05a6..e9a8bedc288 100644 --- a/thrust/thrust/system/detail/sequential/stable_merge_sort.h +++ b/thrust/thrust/system/detail/sequential/stable_merge_sort.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/sequential/stable_merge_sort.inl b/thrust/thrust/system/detail/sequential/stable_merge_sort.inl index 99fc2538b86..a98e10541f9 100644 --- a/thrust/thrust/system/detail/sequential/stable_merge_sort.inl +++ b/thrust/thrust/system/detail/sequential/stable_merge_sort.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/detail/sequential/stable_primitive_sort.h b/thrust/thrust/system/detail/sequential/stable_primitive_sort.h index 71b95d21e88..d4e16a7d18d 100644 --- a/thrust/thrust/system/detail/sequential/stable_primitive_sort.h +++ b/thrust/thrust/system/detail/sequential/stable_primitive_sort.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/sequential/stable_primitive_sort.inl b/thrust/thrust/system/detail/sequential/stable_primitive_sort.inl index b2301b37097..94ba396b08d 100644 --- a/thrust/thrust/system/detail/sequential/stable_primitive_sort.inl +++ b/thrust/thrust/system/detail/sequential/stable_primitive_sort.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/sequential/stable_radix_sort.h b/thrust/thrust/system/detail/sequential/stable_radix_sort.h index c55d2cb54bf..bb7b941d744 100644 --- a/thrust/thrust/system/detail/sequential/stable_radix_sort.h +++ b/thrust/thrust/system/detail/sequential/stable_radix_sort.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/detail/sequential/stable_radix_sort.inl b/thrust/thrust/system/detail/sequential/stable_radix_sort.inl index b12b429de31..463d380aee0 100644 --- a/thrust/thrust/system/detail/sequential/stable_radix_sort.inl +++ b/thrust/thrust/system/detail/sequential/stable_radix_sort.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/detail/sequential/swap_ranges.h b/thrust/thrust/system/detail/sequential/swap_ranges.h index 60904573672..c41998fc52d 100644 --- a/thrust/thrust/system/detail/sequential/swap_ranges.h +++ b/thrust/thrust/system/detail/sequential/swap_ranges.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special swap_ranges functions diff --git a/thrust/thrust/system/detail/sequential/tabulate.h b/thrust/thrust/system/detail/sequential/tabulate.h index 1f1a4dc2f34..8a556172336 100644 --- a/thrust/thrust/system/detail/sequential/tabulate.h +++ b/thrust/thrust/system/detail/sequential/tabulate.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special tabulate functions diff --git a/thrust/thrust/system/detail/sequential/temporary_buffer.h b/thrust/thrust/system/detail/sequential/temporary_buffer.h index 9512e76936b..d666f267e35 100644 --- a/thrust/thrust/system/detail/sequential/temporary_buffer.h +++ b/thrust/thrust/system/detail/sequential/temporary_buffer.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special temporary buffer functions diff --git a/thrust/thrust/system/detail/sequential/transform.h b/thrust/thrust/system/detail/sequential/transform.h index 5add6428d21..0cd9491b4a4 100644 --- a/thrust/thrust/system/detail/sequential/transform.h +++ b/thrust/thrust/system/detail/sequential/transform.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special transform functions diff --git a/thrust/thrust/system/detail/sequential/transform_reduce.h b/thrust/thrust/system/detail/sequential/transform_reduce.h index 98d46eab361..15e8ed52d08 100644 --- a/thrust/thrust/system/detail/sequential/transform_reduce.h +++ b/thrust/thrust/system/detail/sequential/transform_reduce.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special transform_reduce functions diff --git a/thrust/thrust/system/detail/sequential/transform_scan.h b/thrust/thrust/system/detail/sequential/transform_scan.h index 9bfba4bb514..c3f89646b4e 100644 --- a/thrust/thrust/system/detail/sequential/transform_scan.h +++ b/thrust/thrust/system/detail/sequential/transform_scan.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special version of this algorithm diff --git a/thrust/thrust/system/detail/sequential/trivial_copy.h b/thrust/thrust/system/detail/sequential/trivial_copy.h index c5f7db4864d..44047db2b9b 100644 --- a/thrust/thrust/system/detail/sequential/trivial_copy.h +++ b/thrust/thrust/system/detail/sequential/trivial_copy.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/detail/sequential/uninitialized_copy.h b/thrust/thrust/system/detail/sequential/uninitialized_copy.h index 9bfba4bb514..c3f89646b4e 100644 --- a/thrust/thrust/system/detail/sequential/uninitialized_copy.h +++ b/thrust/thrust/system/detail/sequential/uninitialized_copy.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special version of this algorithm diff --git a/thrust/thrust/system/detail/sequential/uninitialized_fill.h b/thrust/thrust/system/detail/sequential/uninitialized_fill.h index f579d8285d9..cdf362d9d9d 100644 --- a/thrust/thrust/system/detail/sequential/uninitialized_fill.h +++ b/thrust/thrust/system/detail/sequential/uninitialized_fill.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special unintialized_fill functions diff --git a/thrust/thrust/system/detail/sequential/unique.h b/thrust/thrust/system/detail/sequential/unique.h index 22d472b8b92..e3897ba21dc 100644 --- a/thrust/thrust/system/detail/sequential/unique.h +++ b/thrust/thrust/system/detail/sequential/unique.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/sequential/unique_by_key.h b/thrust/thrust/system/detail/sequential/unique_by_key.h index f8917f51007..1cd0cedcfc4 100644 --- a/thrust/thrust/system/detail/sequential/unique_by_key.h +++ b/thrust/thrust/system/detail/sequential/unique_by_key.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/detail/system_error.inl b/thrust/thrust/system/detail/system_error.inl index 20c918c9483..dbdf7d82243 100644 --- a/thrust/thrust/system/detail/system_error.inl +++ b/thrust/thrust/system/detail/system_error.inl @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/system/error_code.h b/thrust/thrust/system/error_code.h index fe0640096d8..23e818a93ee 100644 --- a/thrust/thrust/system/error_code.h +++ b/thrust/thrust/system/error_code.h @@ -24,7 +24,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/omp/detail/adjacent_difference.h b/thrust/thrust/system/omp/detail/adjacent_difference.h index 57696badfb1..6706826e6ca 100644 --- a/thrust/thrust/system/omp/detail/adjacent_difference.h +++ b/thrust/thrust/system/omp/detail/adjacent_difference.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/omp/detail/assign_value.h b/thrust/thrust/system/omp/detail/assign_value.h index b83248fcafa..5924261c7ca 100644 --- a/thrust/thrust/system/omp/detail/assign_value.h +++ b/thrust/thrust/system/omp/detail/assign_value.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits assign_value #include diff --git a/thrust/thrust/system/omp/detail/binary_search.h b/thrust/thrust/system/omp/detail/binary_search.h index ab20111be81..15de5974ee9 100644 --- a/thrust/thrust/system/omp/detail/binary_search.h +++ b/thrust/thrust/system/omp/detail/binary_search.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/omp/detail/copy.h b/thrust/thrust/system/omp/detail/copy.h index 64ecdbc394f..9a735ca4b94 100644 --- a/thrust/thrust/system/omp/detail/copy.h +++ b/thrust/thrust/system/omp/detail/copy.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/omp/detail/copy.inl b/thrust/thrust/system/omp/detail/copy.inl index 55451583ebb..de6ad0c851b 100644 --- a/thrust/thrust/system/omp/detail/copy.inl +++ b/thrust/thrust/system/omp/detail/copy.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/omp/detail/copy_if.h b/thrust/thrust/system/omp/detail/copy_if.h index 7044137e7d6..67be8febb13 100644 --- a/thrust/thrust/system/omp/detail/copy_if.h +++ b/thrust/thrust/system/omp/detail/copy_if.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/omp/detail/copy_if.inl b/thrust/thrust/system/omp/detail/copy_if.inl index 0f1b11334e4..43117e74d21 100644 --- a/thrust/thrust/system/omp/detail/copy_if.inl +++ b/thrust/thrust/system/omp/detail/copy_if.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/omp/detail/count.h b/thrust/thrust/system/omp/detail/count.h index 960c6291f54..2b57cde7e4f 100644 --- a/thrust/thrust/system/omp/detail/count.h +++ b/thrust/thrust/system/omp/detail/count.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits count #include diff --git a/thrust/thrust/system/omp/detail/default_decomposition.h b/thrust/thrust/system/omp/detail/default_decomposition.h index 056d91ac8dc..232ab0422be 100644 --- a/thrust/thrust/system/omp/detail/default_decomposition.h +++ b/thrust/thrust/system/omp/detail/default_decomposition.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/omp/detail/default_decomposition.inl b/thrust/thrust/system/omp/detail/default_decomposition.inl index 4be9e89defe..ac7e36245eb 100644 --- a/thrust/thrust/system/omp/detail/default_decomposition.inl +++ b/thrust/thrust/system/omp/detail/default_decomposition.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include // don't attempt to #include this file without omp support diff --git a/thrust/thrust/system/omp/detail/equal.h b/thrust/thrust/system/omp/detail/equal.h index 038638bed2e..b0dc474862c 100644 --- a/thrust/thrust/system/omp/detail/equal.h +++ b/thrust/thrust/system/omp/detail/equal.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits equal #include diff --git a/thrust/thrust/system/omp/detail/execution_policy.h b/thrust/thrust/system/omp/detail/execution_policy.h index 4b0a8b8a4a4..850084cab9a 100644 --- a/thrust/thrust/system/omp/detail/execution_policy.h +++ b/thrust/thrust/system/omp/detail/execution_policy.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/omp/detail/extrema.h b/thrust/thrust/system/omp/detail/extrema.h index 54aeef9602a..fd9cbe89b66 100644 --- a/thrust/thrust/system/omp/detail/extrema.h +++ b/thrust/thrust/system/omp/detail/extrema.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/omp/detail/fill.h b/thrust/thrust/system/omp/detail/fill.h index 39dc172b9ff..3bda479c892 100644 --- a/thrust/thrust/system/omp/detail/fill.h +++ b/thrust/thrust/system/omp/detail/fill.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits fill #include diff --git a/thrust/thrust/system/omp/detail/find.h b/thrust/thrust/system/omp/detail/find.h index d4460931285..6a8209c13c8 100644 --- a/thrust/thrust/system/omp/detail/find.h +++ b/thrust/thrust/system/omp/detail/find.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/omp/detail/for_each.h b/thrust/thrust/system/omp/detail/for_each.h index f5466f66bd6..f138622e1bf 100644 --- a/thrust/thrust/system/omp/detail/for_each.h +++ b/thrust/thrust/system/omp/detail/for_each.h @@ -24,7 +24,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/omp/detail/for_each.inl b/thrust/thrust/system/omp/detail/for_each.inl index b0a92a5516f..80b47d4d173 100644 --- a/thrust/thrust/system/omp/detail/for_each.inl +++ b/thrust/thrust/system/omp/detail/for_each.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/omp/detail/gather.h b/thrust/thrust/system/omp/detail/gather.h index 3a315b03682..6630a1dd322 100644 --- a/thrust/thrust/system/omp/detail/gather.h +++ b/thrust/thrust/system/omp/detail/gather.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits gather #include diff --git a/thrust/thrust/system/omp/detail/generate.h b/thrust/thrust/system/omp/detail/generate.h index 303decf7fa9..847f2b151f5 100644 --- a/thrust/thrust/system/omp/detail/generate.h +++ b/thrust/thrust/system/omp/detail/generate.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits generate #include diff --git a/thrust/thrust/system/omp/detail/get_value.h b/thrust/thrust/system/omp/detail/get_value.h index 9c228756b64..cc3c0652d23 100644 --- a/thrust/thrust/system/omp/detail/get_value.h +++ b/thrust/thrust/system/omp/detail/get_value.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits get_value #include diff --git a/thrust/thrust/system/omp/detail/inner_product.h b/thrust/thrust/system/omp/detail/inner_product.h index 1625696a030..4a11b03869f 100644 --- a/thrust/thrust/system/omp/detail/inner_product.h +++ b/thrust/thrust/system/omp/detail/inner_product.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits inner_product #include diff --git a/thrust/thrust/system/omp/detail/iter_swap.h b/thrust/thrust/system/omp/detail/iter_swap.h index 21fc74f9dde..8e4fe18ba0e 100644 --- a/thrust/thrust/system/omp/detail/iter_swap.h +++ b/thrust/thrust/system/omp/detail/iter_swap.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits iter_swap #include diff --git a/thrust/thrust/system/omp/detail/logical.h b/thrust/thrust/system/omp/detail/logical.h index 6ba975825b4..755655faecd 100644 --- a/thrust/thrust/system/omp/detail/logical.h +++ b/thrust/thrust/system/omp/detail/logical.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits logical #include diff --git a/thrust/thrust/system/omp/detail/malloc_and_free.h b/thrust/thrust/system/omp/detail/malloc_and_free.h index 97af09eccb3..d68883f4561 100644 --- a/thrust/thrust/system/omp/detail/malloc_and_free.h +++ b/thrust/thrust/system/omp/detail/malloc_and_free.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits malloc and free #include diff --git a/thrust/thrust/system/omp/detail/memory.inl b/thrust/thrust/system/omp/detail/memory.inl index 2586854af7e..d66050d7ac2 100644 --- a/thrust/thrust/system/omp/detail/memory.inl +++ b/thrust/thrust/system/omp/detail/memory.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/omp/detail/merge.h b/thrust/thrust/system/omp/detail/merge.h index 95cf02a71bf..1938e2e3940 100644 --- a/thrust/thrust/system/omp/detail/merge.h +++ b/thrust/thrust/system/omp/detail/merge.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits merge #include diff --git a/thrust/thrust/system/omp/detail/mismatch.h b/thrust/thrust/system/omp/detail/mismatch.h index f22dbba811a..2b9f3a3645c 100644 --- a/thrust/thrust/system/omp/detail/mismatch.h +++ b/thrust/thrust/system/omp/detail/mismatch.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits mismatch #include diff --git a/thrust/thrust/system/omp/detail/par.h b/thrust/thrust/system/omp/detail/par.h index bdb9b736591..e1a07606453 100644 --- a/thrust/thrust/system/omp/detail/par.h +++ b/thrust/thrust/system/omp/detail/par.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/omp/detail/partition.h b/thrust/thrust/system/omp/detail/partition.h index e8ab6b75e62..66f94abe693 100644 --- a/thrust/thrust/system/omp/detail/partition.h +++ b/thrust/thrust/system/omp/detail/partition.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/omp/detail/partition.inl b/thrust/thrust/system/omp/detail/partition.inl index f750539d791..5737762ec40 100644 --- a/thrust/thrust/system/omp/detail/partition.inl +++ b/thrust/thrust/system/omp/detail/partition.inl @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/omp/detail/per_device_resource.h b/thrust/thrust/system/omp/detail/per_device_resource.h index b481bbc9e95..64c721210a7 100644 --- a/thrust/thrust/system/omp/detail/per_device_resource.h +++ b/thrust/thrust/system/omp/detail/per_device_resource.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special per device resource functions diff --git a/thrust/thrust/system/omp/detail/pragma_omp.h b/thrust/thrust/system/omp/detail/pragma_omp.h index a4043351ae1..1b78d526651 100644 --- a/thrust/thrust/system/omp/detail/pragma_omp.h +++ b/thrust/thrust/system/omp/detail/pragma_omp.h @@ -29,7 +29,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_HOST_COMPILER == THRUST_HOST_COMPILER_MSVC // MSVC ICEs when using the standard C++11 `_Pragma` operator with OpenMP diff --git a/thrust/thrust/system/omp/detail/reduce.h b/thrust/thrust/system/omp/detail/reduce.h index 84deb719484..39e4057847c 100644 --- a/thrust/thrust/system/omp/detail/reduce.h +++ b/thrust/thrust/system/omp/detail/reduce.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/omp/detail/reduce.inl b/thrust/thrust/system/omp/detail/reduce.inl index 369ee06b61c..473dfe0c8be 100644 --- a/thrust/thrust/system/omp/detail/reduce.inl +++ b/thrust/thrust/system/omp/detail/reduce.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/omp/detail/reduce_by_key.h b/thrust/thrust/system/omp/detail/reduce_by_key.h index bc33b696e31..997c2c88951 100644 --- a/thrust/thrust/system/omp/detail/reduce_by_key.h +++ b/thrust/thrust/system/omp/detail/reduce_by_key.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/omp/detail/reduce_by_key.inl b/thrust/thrust/system/omp/detail/reduce_by_key.inl index 060bed2c9c5..3bc9e0c0ff6 100644 --- a/thrust/thrust/system/omp/detail/reduce_by_key.inl +++ b/thrust/thrust/system/omp/detail/reduce_by_key.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/omp/detail/reduce_intervals.h b/thrust/thrust/system/omp/detail/reduce_intervals.h index 43a915c9c00..58938c53607 100644 --- a/thrust/thrust/system/omp/detail/reduce_intervals.h +++ b/thrust/thrust/system/omp/detail/reduce_intervals.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/omp/detail/reduce_intervals.inl b/thrust/thrust/system/omp/detail/reduce_intervals.inl index c6d82b5be89..7254b1cbab2 100644 --- a/thrust/thrust/system/omp/detail/reduce_intervals.inl +++ b/thrust/thrust/system/omp/detail/reduce_intervals.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/omp/detail/remove.h b/thrust/thrust/system/omp/detail/remove.h index 2b8f75c8a18..793fa98f78e 100644 --- a/thrust/thrust/system/omp/detail/remove.h +++ b/thrust/thrust/system/omp/detail/remove.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/omp/detail/remove.inl b/thrust/thrust/system/omp/detail/remove.inl index fd29734d0ac..82772cc1d79 100644 --- a/thrust/thrust/system/omp/detail/remove.inl +++ b/thrust/thrust/system/omp/detail/remove.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/omp/detail/replace.h b/thrust/thrust/system/omp/detail/replace.h index 568fc7c2dfe..12b1603a6a8 100644 --- a/thrust/thrust/system/omp/detail/replace.h +++ b/thrust/thrust/system/omp/detail/replace.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits this algorithm #include diff --git a/thrust/thrust/system/omp/detail/reverse.h b/thrust/thrust/system/omp/detail/reverse.h index 5f88c6799a3..aedea33aa82 100644 --- a/thrust/thrust/system/omp/detail/reverse.h +++ b/thrust/thrust/system/omp/detail/reverse.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits reverse #include diff --git a/thrust/thrust/system/omp/detail/scan.h b/thrust/thrust/system/omp/detail/scan.h index 0ea232b32cd..f1f901dcab5 100644 --- a/thrust/thrust/system/omp/detail/scan.h +++ b/thrust/thrust/system/omp/detail/scan.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits scan #include diff --git a/thrust/thrust/system/omp/detail/scan_by_key.h b/thrust/thrust/system/omp/detail/scan_by_key.h index aaae56402a2..5c7e3d9942a 100644 --- a/thrust/thrust/system/omp/detail/scan_by_key.h +++ b/thrust/thrust/system/omp/detail/scan_by_key.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits this algorithm #include diff --git a/thrust/thrust/system/omp/detail/scatter.h b/thrust/thrust/system/omp/detail/scatter.h index 568fc7c2dfe..12b1603a6a8 100644 --- a/thrust/thrust/system/omp/detail/scatter.h +++ b/thrust/thrust/system/omp/detail/scatter.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits this algorithm #include diff --git a/thrust/thrust/system/omp/detail/sequence.h b/thrust/thrust/system/omp/detail/sequence.h index 0d1fdd4676e..8d6e3c34f65 100644 --- a/thrust/thrust/system/omp/detail/sequence.h +++ b/thrust/thrust/system/omp/detail/sequence.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits sequence #include diff --git a/thrust/thrust/system/omp/detail/set_operations.h b/thrust/thrust/system/omp/detail/set_operations.h index d5aecd74321..890da986216 100644 --- a/thrust/thrust/system/omp/detail/set_operations.h +++ b/thrust/thrust/system/omp/detail/set_operations.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits set_operations #include diff --git a/thrust/thrust/system/omp/detail/sort.h b/thrust/thrust/system/omp/detail/sort.h index 5ec52a936d5..b673c572189 100644 --- a/thrust/thrust/system/omp/detail/sort.h +++ b/thrust/thrust/system/omp/detail/sort.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/omp/detail/sort.inl b/thrust/thrust/system/omp/detail/sort.inl index 55a6de1302f..6a78af10616 100644 --- a/thrust/thrust/system/omp/detail/sort.inl +++ b/thrust/thrust/system/omp/detail/sort.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // don't attempt to #include this file without omp support #if (THRUST_DEVICE_COMPILER_IS_OMP_CAPABLE == THRUST_TRUE) diff --git a/thrust/thrust/system/omp/detail/swap_ranges.h b/thrust/thrust/system/omp/detail/swap_ranges.h index 50771b7fd08..2540b86e17b 100644 --- a/thrust/thrust/system/omp/detail/swap_ranges.h +++ b/thrust/thrust/system/omp/detail/swap_ranges.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // omp inherits swap_ranges #include diff --git a/thrust/thrust/system/omp/detail/tabulate.h b/thrust/thrust/system/omp/detail/tabulate.h index f21e384ff2a..930d9efd15f 100644 --- a/thrust/thrust/system/omp/detail/tabulate.h +++ b/thrust/thrust/system/omp/detail/tabulate.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits tabulate #include diff --git a/thrust/thrust/system/omp/detail/temporary_buffer.h b/thrust/thrust/system/omp/detail/temporary_buffer.h index 9512e76936b..d666f267e35 100644 --- a/thrust/thrust/system/omp/detail/temporary_buffer.h +++ b/thrust/thrust/system/omp/detail/temporary_buffer.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special temporary buffer functions diff --git a/thrust/thrust/system/omp/detail/transform.h b/thrust/thrust/system/omp/detail/transform.h index 776b8cb4a19..8a572e02bc3 100644 --- a/thrust/thrust/system/omp/detail/transform.h +++ b/thrust/thrust/system/omp/detail/transform.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // omp inherits transform #include diff --git a/thrust/thrust/system/omp/detail/transform_reduce.h b/thrust/thrust/system/omp/detail/transform_reduce.h index 68aae5b33ce..5fb51bf8a07 100644 --- a/thrust/thrust/system/omp/detail/transform_reduce.h +++ b/thrust/thrust/system/omp/detail/transform_reduce.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits transform_reduce #include diff --git a/thrust/thrust/system/omp/detail/transform_scan.h b/thrust/thrust/system/omp/detail/transform_scan.h index 9807df1705e..02371a3fc09 100644 --- a/thrust/thrust/system/omp/detail/transform_scan.h +++ b/thrust/thrust/system/omp/detail/transform_scan.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits transform_scan #include diff --git a/thrust/thrust/system/omp/detail/uninitialized_copy.h b/thrust/thrust/system/omp/detail/uninitialized_copy.h index 3d46fbf2584..5ba0d83cde8 100644 --- a/thrust/thrust/system/omp/detail/uninitialized_copy.h +++ b/thrust/thrust/system/omp/detail/uninitialized_copy.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits uninitialized_copy #include diff --git a/thrust/thrust/system/omp/detail/uninitialized_fill.h b/thrust/thrust/system/omp/detail/uninitialized_fill.h index 7bcbbd258ac..f1b4a302c6d 100644 --- a/thrust/thrust/system/omp/detail/uninitialized_fill.h +++ b/thrust/thrust/system/omp/detail/uninitialized_fill.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits uninitialized_fill #include diff --git a/thrust/thrust/system/omp/detail/unique.h b/thrust/thrust/system/omp/detail/unique.h index 2b346dd95f3..a95aaad5037 100644 --- a/thrust/thrust/system/omp/detail/unique.h +++ b/thrust/thrust/system/omp/detail/unique.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/omp/detail/unique.inl b/thrust/thrust/system/omp/detail/unique.inl index 163c2abb2cd..90d10b548bc 100644 --- a/thrust/thrust/system/omp/detail/unique.inl +++ b/thrust/thrust/system/omp/detail/unique.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/omp/detail/unique_by_key.h b/thrust/thrust/system/omp/detail/unique_by_key.h index 96b7672de65..84d721e5e97 100644 --- a/thrust/thrust/system/omp/detail/unique_by_key.h +++ b/thrust/thrust/system/omp/detail/unique_by_key.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/omp/detail/unique_by_key.inl b/thrust/thrust/system/omp/detail/unique_by_key.inl index dd9f1f9ea2e..ca183c527bc 100644 --- a/thrust/thrust/system/omp/detail/unique_by_key.inl +++ b/thrust/thrust/system/omp/detail/unique_by_key.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/omp/execution_policy.h b/thrust/thrust/system/omp/execution_policy.h index a84601e30d2..f499eaed51b 100644 --- a/thrust/thrust/system/omp/execution_policy.h +++ b/thrust/thrust/system/omp/execution_policy.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC /*! \file thrust/system/omp/execution_policy.h * \brief Execution policies for Thrust's OpenMP system. diff --git a/thrust/thrust/system/omp/memory.h b/thrust/thrust/system/omp/memory.h index 077f63183b0..b568b77079c 100644 --- a/thrust/thrust/system/omp/memory.h +++ b/thrust/thrust/system/omp/memory.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/omp/memory_resource.h b/thrust/thrust/system/omp/memory_resource.h index 878b65327b4..c2d3c9e650c 100644 --- a/thrust/thrust/system/omp/memory_resource.h +++ b/thrust/thrust/system/omp/memory_resource.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/omp/pointer.h b/thrust/thrust/system/omp/pointer.h index 09c76dcc585..3cf07954160 100644 --- a/thrust/thrust/system/omp/pointer.h +++ b/thrust/thrust/system/omp/pointer.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/omp/vector.h b/thrust/thrust/system/omp/vector.h index ed3fdd0c64a..98d8765155f 100644 --- a/thrust/thrust/system/omp/vector.h +++ b/thrust/thrust/system/omp/vector.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/system_error.h b/thrust/thrust/system/system_error.h index bb945bc0c9b..438518e72ea 100644 --- a/thrust/thrust/system/system_error.h +++ b/thrust/thrust/system/system_error.h @@ -24,7 +24,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/tbb/detail/adjacent_difference.h b/thrust/thrust/system/tbb/detail/adjacent_difference.h index aa27ce23b03..70d93b46286 100644 --- a/thrust/thrust/system/tbb/detail/adjacent_difference.h +++ b/thrust/thrust/system/tbb/detail/adjacent_difference.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/tbb/detail/assign_value.h b/thrust/thrust/system/tbb/detail/assign_value.h index b83248fcafa..5924261c7ca 100644 --- a/thrust/thrust/system/tbb/detail/assign_value.h +++ b/thrust/thrust/system/tbb/detail/assign_value.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits assign_value #include diff --git a/thrust/thrust/system/tbb/detail/binary_search.h b/thrust/thrust/system/tbb/detail/binary_search.h index 65891e1fc00..eed753e11c0 100644 --- a/thrust/thrust/system/tbb/detail/binary_search.h +++ b/thrust/thrust/system/tbb/detail/binary_search.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits binary_search #include diff --git a/thrust/thrust/system/tbb/detail/copy.h b/thrust/thrust/system/tbb/detail/copy.h index 4218ea984c1..f4d737b0494 100644 --- a/thrust/thrust/system/tbb/detail/copy.h +++ b/thrust/thrust/system/tbb/detail/copy.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/tbb/detail/copy.inl b/thrust/thrust/system/tbb/detail/copy.inl index 903601dfe90..bb20559b5fb 100644 --- a/thrust/thrust/system/tbb/detail/copy.inl +++ b/thrust/thrust/system/tbb/detail/copy.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/tbb/detail/copy_if.h b/thrust/thrust/system/tbb/detail/copy_if.h index 3cac47a072e..87b60db56b5 100644 --- a/thrust/thrust/system/tbb/detail/copy_if.h +++ b/thrust/thrust/system/tbb/detail/copy_if.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/tbb/detail/copy_if.inl b/thrust/thrust/system/tbb/detail/copy_if.inl index 6e07de604ab..f566020efe4 100644 --- a/thrust/thrust/system/tbb/detail/copy_if.inl +++ b/thrust/thrust/system/tbb/detail/copy_if.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/tbb/detail/count.h b/thrust/thrust/system/tbb/detail/count.h index 960c6291f54..2b57cde7e4f 100644 --- a/thrust/thrust/system/tbb/detail/count.h +++ b/thrust/thrust/system/tbb/detail/count.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits count #include diff --git a/thrust/thrust/system/tbb/detail/equal.h b/thrust/thrust/system/tbb/detail/equal.h index 038638bed2e..b0dc474862c 100644 --- a/thrust/thrust/system/tbb/detail/equal.h +++ b/thrust/thrust/system/tbb/detail/equal.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits equal #include diff --git a/thrust/thrust/system/tbb/detail/execution_policy.h b/thrust/thrust/system/tbb/detail/execution_policy.h index e8e5e5c617e..a67b7db379d 100644 --- a/thrust/thrust/system/tbb/detail/execution_policy.h +++ b/thrust/thrust/system/tbb/detail/execution_policy.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/tbb/detail/extrema.h b/thrust/thrust/system/tbb/detail/extrema.h index 24301f8a6d2..2cfdac87f8a 100644 --- a/thrust/thrust/system/tbb/detail/extrema.h +++ b/thrust/thrust/system/tbb/detail/extrema.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/tbb/detail/fill.h b/thrust/thrust/system/tbb/detail/fill.h index 39dc172b9ff..3bda479c892 100644 --- a/thrust/thrust/system/tbb/detail/fill.h +++ b/thrust/thrust/system/tbb/detail/fill.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits fill #include diff --git a/thrust/thrust/system/tbb/detail/find.h b/thrust/thrust/system/tbb/detail/find.h index 44fe39b531d..ecd6e11f7cf 100644 --- a/thrust/thrust/system/tbb/detail/find.h +++ b/thrust/thrust/system/tbb/detail/find.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/tbb/detail/for_each.h b/thrust/thrust/system/tbb/detail/for_each.h index fc063a4c55c..94b7803101e 100644 --- a/thrust/thrust/system/tbb/detail/for_each.h +++ b/thrust/thrust/system/tbb/detail/for_each.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/tbb/detail/for_each.inl b/thrust/thrust/system/tbb/detail/for_each.inl index 735bdcdbe0d..8e95e221cdf 100644 --- a/thrust/thrust/system/tbb/detail/for_each.inl +++ b/thrust/thrust/system/tbb/detail/for_each.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/tbb/detail/gather.h b/thrust/thrust/system/tbb/detail/gather.h index 3a315b03682..6630a1dd322 100644 --- a/thrust/thrust/system/tbb/detail/gather.h +++ b/thrust/thrust/system/tbb/detail/gather.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits gather #include diff --git a/thrust/thrust/system/tbb/detail/generate.h b/thrust/thrust/system/tbb/detail/generate.h index 303decf7fa9..847f2b151f5 100644 --- a/thrust/thrust/system/tbb/detail/generate.h +++ b/thrust/thrust/system/tbb/detail/generate.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits generate #include diff --git a/thrust/thrust/system/tbb/detail/get_value.h b/thrust/thrust/system/tbb/detail/get_value.h index 9c228756b64..cc3c0652d23 100644 --- a/thrust/thrust/system/tbb/detail/get_value.h +++ b/thrust/thrust/system/tbb/detail/get_value.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits get_value #include diff --git a/thrust/thrust/system/tbb/detail/inner_product.h b/thrust/thrust/system/tbb/detail/inner_product.h index 1625696a030..4a11b03869f 100644 --- a/thrust/thrust/system/tbb/detail/inner_product.h +++ b/thrust/thrust/system/tbb/detail/inner_product.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits inner_product #include diff --git a/thrust/thrust/system/tbb/detail/iter_swap.h b/thrust/thrust/system/tbb/detail/iter_swap.h index 21fc74f9dde..8e4fe18ba0e 100644 --- a/thrust/thrust/system/tbb/detail/iter_swap.h +++ b/thrust/thrust/system/tbb/detail/iter_swap.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits iter_swap #include diff --git a/thrust/thrust/system/tbb/detail/logical.h b/thrust/thrust/system/tbb/detail/logical.h index 6ba975825b4..755655faecd 100644 --- a/thrust/thrust/system/tbb/detail/logical.h +++ b/thrust/thrust/system/tbb/detail/logical.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits logical #include diff --git a/thrust/thrust/system/tbb/detail/malloc_and_free.h b/thrust/thrust/system/tbb/detail/malloc_and_free.h index 97af09eccb3..d68883f4561 100644 --- a/thrust/thrust/system/tbb/detail/malloc_and_free.h +++ b/thrust/thrust/system/tbb/detail/malloc_and_free.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits malloc and free #include diff --git a/thrust/thrust/system/tbb/detail/memory.inl b/thrust/thrust/system/tbb/detail/memory.inl index f88c5645f29..d0985ef568c 100644 --- a/thrust/thrust/system/tbb/detail/memory.inl +++ b/thrust/thrust/system/tbb/detail/memory.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/tbb/detail/merge.h b/thrust/thrust/system/tbb/detail/merge.h index 317abb3a2c4..a64b03eb637 100644 --- a/thrust/thrust/system/tbb/detail/merge.h +++ b/thrust/thrust/system/tbb/detail/merge.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/tbb/detail/merge.inl b/thrust/thrust/system/tbb/detail/merge.inl index 33bb5c8cc10..4b61e16bc63 100644 --- a/thrust/thrust/system/tbb/detail/merge.inl +++ b/thrust/thrust/system/tbb/detail/merge.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/tbb/detail/mismatch.h b/thrust/thrust/system/tbb/detail/mismatch.h index f22dbba811a..2b9f3a3645c 100644 --- a/thrust/thrust/system/tbb/detail/mismatch.h +++ b/thrust/thrust/system/tbb/detail/mismatch.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits mismatch #include diff --git a/thrust/thrust/system/tbb/detail/par.h b/thrust/thrust/system/tbb/detail/par.h index 04df7077dd4..74a5f6ef6d0 100644 --- a/thrust/thrust/system/tbb/detail/par.h +++ b/thrust/thrust/system/tbb/detail/par.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/tbb/detail/partition.h b/thrust/thrust/system/tbb/detail/partition.h index 3e6753466ee..ec60d3d456c 100644 --- a/thrust/thrust/system/tbb/detail/partition.h +++ b/thrust/thrust/system/tbb/detail/partition.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/tbb/detail/partition.inl b/thrust/thrust/system/tbb/detail/partition.inl index c1faef235aa..4cdb0492247 100644 --- a/thrust/thrust/system/tbb/detail/partition.inl +++ b/thrust/thrust/system/tbb/detail/partition.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/tbb/detail/per_device_resource.h b/thrust/thrust/system/tbb/detail/per_device_resource.h index b481bbc9e95..64c721210a7 100644 --- a/thrust/thrust/system/tbb/detail/per_device_resource.h +++ b/thrust/thrust/system/tbb/detail/per_device_resource.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special per device resource functions diff --git a/thrust/thrust/system/tbb/detail/reduce.h b/thrust/thrust/system/tbb/detail/reduce.h index 7088597e8f9..b12c7f43927 100644 --- a/thrust/thrust/system/tbb/detail/reduce.h +++ b/thrust/thrust/system/tbb/detail/reduce.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/tbb/detail/reduce.inl b/thrust/thrust/system/tbb/detail/reduce.inl index e0adc18b4db..96621d9bf63 100644 --- a/thrust/thrust/system/tbb/detail/reduce.inl +++ b/thrust/thrust/system/tbb/detail/reduce.inl @@ -19,7 +19,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/tbb/detail/reduce_by_key.h b/thrust/thrust/system/tbb/detail/reduce_by_key.h index 916f919f68c..0b14ca2787e 100644 --- a/thrust/thrust/system/tbb/detail/reduce_by_key.h +++ b/thrust/thrust/system/tbb/detail/reduce_by_key.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/tbb/detail/reduce_by_key.inl b/thrust/thrust/system/tbb/detail/reduce_by_key.inl index 033e9599b61..4053f0faf1e 100644 --- a/thrust/thrust/system/tbb/detail/reduce_by_key.inl +++ b/thrust/thrust/system/tbb/detail/reduce_by_key.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/tbb/detail/reduce_intervals.h b/thrust/thrust/system/tbb/detail/reduce_intervals.h index 036884434cb..dbb198ae7de 100644 --- a/thrust/thrust/system/tbb/detail/reduce_intervals.h +++ b/thrust/thrust/system/tbb/detail/reduce_intervals.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/tbb/detail/remove.h b/thrust/thrust/system/tbb/detail/remove.h index 7a687faab5a..f13bdc9ccf6 100644 --- a/thrust/thrust/system/tbb/detail/remove.h +++ b/thrust/thrust/system/tbb/detail/remove.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/tbb/detail/remove.inl b/thrust/thrust/system/tbb/detail/remove.inl index 4945dfa5084..f2a35f1e534 100644 --- a/thrust/thrust/system/tbb/detail/remove.inl +++ b/thrust/thrust/system/tbb/detail/remove.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/tbb/detail/replace.h b/thrust/thrust/system/tbb/detail/replace.h index 568fc7c2dfe..12b1603a6a8 100644 --- a/thrust/thrust/system/tbb/detail/replace.h +++ b/thrust/thrust/system/tbb/detail/replace.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits this algorithm #include diff --git a/thrust/thrust/system/tbb/detail/reverse.h b/thrust/thrust/system/tbb/detail/reverse.h index 5f88c6799a3..aedea33aa82 100644 --- a/thrust/thrust/system/tbb/detail/reverse.h +++ b/thrust/thrust/system/tbb/detail/reverse.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits reverse #include diff --git a/thrust/thrust/system/tbb/detail/scan.h b/thrust/thrust/system/tbb/detail/scan.h index f37a2887d2e..769eb449e5a 100644 --- a/thrust/thrust/system/tbb/detail/scan.h +++ b/thrust/thrust/system/tbb/detail/scan.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/tbb/detail/scan.inl b/thrust/thrust/system/tbb/detail/scan.inl index d212770cb00..86857f5bc81 100644 --- a/thrust/thrust/system/tbb/detail/scan.inl +++ b/thrust/thrust/system/tbb/detail/scan.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/tbb/detail/scan_by_key.h b/thrust/thrust/system/tbb/detail/scan_by_key.h index 10040a6f067..737df3473df 100644 --- a/thrust/thrust/system/tbb/detail/scan_by_key.h +++ b/thrust/thrust/system/tbb/detail/scan_by_key.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits scan_by_key #include diff --git a/thrust/thrust/system/tbb/detail/scatter.h b/thrust/thrust/system/tbb/detail/scatter.h index 568fc7c2dfe..12b1603a6a8 100644 --- a/thrust/thrust/system/tbb/detail/scatter.h +++ b/thrust/thrust/system/tbb/detail/scatter.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits this algorithm #include diff --git a/thrust/thrust/system/tbb/detail/sequence.h b/thrust/thrust/system/tbb/detail/sequence.h index 0d1fdd4676e..8d6e3c34f65 100644 --- a/thrust/thrust/system/tbb/detail/sequence.h +++ b/thrust/thrust/system/tbb/detail/sequence.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits sequence #include diff --git a/thrust/thrust/system/tbb/detail/set_operations.h b/thrust/thrust/system/tbb/detail/set_operations.h index d5aecd74321..890da986216 100644 --- a/thrust/thrust/system/tbb/detail/set_operations.h +++ b/thrust/thrust/system/tbb/detail/set_operations.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits set_operations #include diff --git a/thrust/thrust/system/tbb/detail/sort.h b/thrust/thrust/system/tbb/detail/sort.h index c3e677537f5..b89693a2da8 100644 --- a/thrust/thrust/system/tbb/detail/sort.h +++ b/thrust/thrust/system/tbb/detail/sort.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/system/tbb/detail/sort.inl b/thrust/thrust/system/tbb/detail/sort.inl index 61a4419b641..5b72a6f6380 100644 --- a/thrust/thrust/system/tbb/detail/sort.inl +++ b/thrust/thrust/system/tbb/detail/sort.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/tbb/detail/swap_ranges.h b/thrust/thrust/system/tbb/detail/swap_ranges.h index c87e18841fe..a57487f9fa1 100644 --- a/thrust/thrust/system/tbb/detail/swap_ranges.h +++ b/thrust/thrust/system/tbb/detail/swap_ranges.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // tbb inherits swap_ranges #include diff --git a/thrust/thrust/system/tbb/detail/tabulate.h b/thrust/thrust/system/tbb/detail/tabulate.h index f21e384ff2a..930d9efd15f 100644 --- a/thrust/thrust/system/tbb/detail/tabulate.h +++ b/thrust/thrust/system/tbb/detail/tabulate.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits tabulate #include diff --git a/thrust/thrust/system/tbb/detail/temporary_buffer.h b/thrust/thrust/system/tbb/detail/temporary_buffer.h index 9512e76936b..d666f267e35 100644 --- a/thrust/thrust/system/tbb/detail/temporary_buffer.h +++ b/thrust/thrust/system/tbb/detail/temporary_buffer.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system has no special temporary buffer functions diff --git a/thrust/thrust/system/tbb/detail/transform.h b/thrust/thrust/system/tbb/detail/transform.h index 776b8cb4a19..8a572e02bc3 100644 --- a/thrust/thrust/system/tbb/detail/transform.h +++ b/thrust/thrust/system/tbb/detail/transform.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // omp inherits transform #include diff --git a/thrust/thrust/system/tbb/detail/transform_reduce.h b/thrust/thrust/system/tbb/detail/transform_reduce.h index 68aae5b33ce..5fb51bf8a07 100644 --- a/thrust/thrust/system/tbb/detail/transform_reduce.h +++ b/thrust/thrust/system/tbb/detail/transform_reduce.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits transform_reduce #include diff --git a/thrust/thrust/system/tbb/detail/transform_scan.h b/thrust/thrust/system/tbb/detail/transform_scan.h index 9807df1705e..02371a3fc09 100644 --- a/thrust/thrust/system/tbb/detail/transform_scan.h +++ b/thrust/thrust/system/tbb/detail/transform_scan.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits transform_scan #include diff --git a/thrust/thrust/system/tbb/detail/uninitialized_copy.h b/thrust/thrust/system/tbb/detail/uninitialized_copy.h index 3d46fbf2584..5ba0d83cde8 100644 --- a/thrust/thrust/system/tbb/detail/uninitialized_copy.h +++ b/thrust/thrust/system/tbb/detail/uninitialized_copy.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits uninitialized_copy #include diff --git a/thrust/thrust/system/tbb/detail/uninitialized_fill.h b/thrust/thrust/system/tbb/detail/uninitialized_fill.h index 7bcbbd258ac..f1b4a302c6d 100644 --- a/thrust/thrust/system/tbb/detail/uninitialized_fill.h +++ b/thrust/thrust/system/tbb/detail/uninitialized_fill.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // this system inherits uninitialized_fill #include diff --git a/thrust/thrust/system/tbb/detail/unique.h b/thrust/thrust/system/tbb/detail/unique.h index b6f8264b0d5..66ecebafe2d 100644 --- a/thrust/thrust/system/tbb/detail/unique.h +++ b/thrust/thrust/system/tbb/detail/unique.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/tbb/detail/unique.inl b/thrust/thrust/system/tbb/detail/unique.inl index 56572bf4245..9345cc08e69 100644 --- a/thrust/thrust/system/tbb/detail/unique.inl +++ b/thrust/thrust/system/tbb/detail/unique.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/tbb/detail/unique_by_key.h b/thrust/thrust/system/tbb/detail/unique_by_key.h index 0bf02196b99..9adbc07f501 100644 --- a/thrust/thrust/system/tbb/detail/unique_by_key.h +++ b/thrust/thrust/system/tbb/detail/unique_by_key.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/tbb/detail/unique_by_key.inl b/thrust/thrust/system/tbb/detail/unique_by_key.inl index 5bd02481e00..d4cc4d23c50 100644 --- a/thrust/thrust/system/tbb/detail/unique_by_key.inl +++ b/thrust/thrust/system/tbb/detail/unique_by_key.inl @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/tbb/execution_policy.h b/thrust/thrust/system/tbb/execution_policy.h index 43ca60fd803..b305519f423 100644 --- a/thrust/thrust/system/tbb/execution_policy.h +++ b/thrust/thrust/system/tbb/execution_policy.h @@ -18,7 +18,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC /*! \file thrust/system/tbb/execution_policy.h * \brief Execution policies for Thrust's TBB system. diff --git a/thrust/thrust/system/tbb/memory.h b/thrust/thrust/system/tbb/memory.h index ef7e5e88ab7..49453b3755f 100644 --- a/thrust/thrust/system/tbb/memory.h +++ b/thrust/thrust/system/tbb/memory.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/tbb/memory_resource.h b/thrust/thrust/system/tbb/memory_resource.h index 21ca3f97955..1ba3a020ccc 100644 --- a/thrust/thrust/system/tbb/memory_resource.h +++ b/thrust/thrust/system/tbb/memory_resource.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/system/tbb/pointer.h b/thrust/thrust/system/tbb/pointer.h index 825c6379fbc..794429d4d80 100644 --- a/thrust/thrust/system/tbb/pointer.h +++ b/thrust/thrust/system/tbb/pointer.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system/tbb/vector.h b/thrust/thrust/system/tbb/vector.h index 16e5e054d52..d6615e500fe 100644 --- a/thrust/thrust/system/tbb/vector.h +++ b/thrust/thrust/system/tbb/vector.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/system_error.h b/thrust/thrust/system_error.h index 14aa057526d..3d657b24833 100644 --- a/thrust/thrust/system_error.h +++ b/thrust/thrust/system_error.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/tabulate.h b/thrust/thrust/tabulate.h index 2ebdc8c36b4..725ed981fcb 100644 --- a/thrust/thrust/tabulate.h +++ b/thrust/thrust/tabulate.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/transform.h b/thrust/thrust/transform.h index de8e24b3fe3..06886523a31 100644 --- a/thrust/thrust/transform.h +++ b/thrust/thrust/transform.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/transform_reduce.h b/thrust/thrust/transform_reduce.h index bff4406a478..17ae56af125 100644 --- a/thrust/thrust/transform_reduce.h +++ b/thrust/thrust/transform_reduce.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/transform_scan.h b/thrust/thrust/transform_scan.h index 34c08c4c5d8..1831c7d84be 100644 --- a/thrust/thrust/transform_scan.h +++ b/thrust/thrust/transform_scan.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/tuple.h b/thrust/thrust/tuple.h index ca51191bbce..c5f12f77c6d 100644 --- a/thrust/thrust/tuple.h +++ b/thrust/thrust/tuple.h @@ -32,7 +32,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/type_traits/integer_sequence.h b/thrust/thrust/type_traits/integer_sequence.h index d5a48f10e7e..427a5cf8e14 100644 --- a/thrust/thrust/type_traits/integer_sequence.h +++ b/thrust/thrust/type_traits/integer_sequence.h @@ -24,7 +24,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2011 diff --git a/thrust/thrust/type_traits/is_contiguous_iterator.h b/thrust/thrust/type_traits/is_contiguous_iterator.h index 9e09b8b7d9a..3eb2575c244 100644 --- a/thrust/thrust/type_traits/is_contiguous_iterator.h +++ b/thrust/thrust/type_traits/is_contiguous_iterator.h @@ -24,7 +24,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/type_traits/is_execution_policy.h b/thrust/thrust/type_traits/is_execution_policy.h index 3fba0ee4775..18c7269d13f 100644 --- a/thrust/thrust/type_traits/is_execution_policy.h +++ b/thrust/thrust/type_traits/is_execution_policy.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include diff --git a/thrust/thrust/type_traits/is_operator_less_or_greater_function_object.h b/thrust/thrust/type_traits/is_operator_less_or_greater_function_object.h index f7c1bc8b324..0f9c21ee1c9 100644 --- a/thrust/thrust/type_traits/is_operator_less_or_greater_function_object.h +++ b/thrust/thrust/type_traits/is_operator_less_or_greater_function_object.h @@ -24,7 +24,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/type_traits/is_operator_plus_function_object.h b/thrust/thrust/type_traits/is_operator_plus_function_object.h index 1029f6e798c..f7372c1d7d6 100644 --- a/thrust/thrust/type_traits/is_operator_plus_function_object.h +++ b/thrust/thrust/type_traits/is_operator_plus_function_object.h @@ -24,7 +24,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/type_traits/is_trivially_relocatable.h b/thrust/thrust/type_traits/is_trivially_relocatable.h index d0c3abde03c..4ab9f04fa77 100644 --- a/thrust/thrust/type_traits/is_trivially_relocatable.h +++ b/thrust/thrust/type_traits/is_trivially_relocatable.h @@ -25,7 +25,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/type_traits/logical_metafunctions.h b/thrust/thrust/type_traits/logical_metafunctions.h index ac881fac577..5cddc88722a 100644 --- a/thrust/thrust/type_traits/logical_metafunctions.h +++ b/thrust/thrust/type_traits/logical_metafunctions.h @@ -26,7 +26,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #if THRUST_CPP_DIALECT >= 2011 diff --git a/thrust/thrust/type_traits/remove_cvref.h b/thrust/thrust/type_traits/remove_cvref.h index 22620da39fc..5189d7ebd1c 100644 --- a/thrust/thrust/type_traits/remove_cvref.h +++ b/thrust/thrust/type_traits/remove_cvref.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_CPP_DIALECT >= 2017 #if __has_include() diff --git a/thrust/thrust/type_traits/void_t.h b/thrust/thrust/type_traits/void_t.h index 574f5ad84cf..d10d96f2643 100644 --- a/thrust/thrust/type_traits/void_t.h +++ b/thrust/thrust/type_traits/void_t.h @@ -22,7 +22,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #if THRUST_CPP_DIALECT >= 2017 # include diff --git a/thrust/thrust/uninitialized_copy.h b/thrust/thrust/uninitialized_copy.h index 233f034f26f..459af1e1251 100644 --- a/thrust/thrust/uninitialized_copy.h +++ b/thrust/thrust/uninitialized_copy.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/uninitialized_fill.h b/thrust/thrust/uninitialized_fill.h index 257cf25ebb2..a46c78bd405 100644 --- a/thrust/thrust/uninitialized_fill.h +++ b/thrust/thrust/uninitialized_fill.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include THRUST_NAMESPACE_BEGIN diff --git a/thrust/thrust/unique.h b/thrust/thrust/unique.h index b58aa26ab9e..a3a6a7fdbe2 100644 --- a/thrust/thrust/unique.h +++ b/thrust/thrust/unique.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include #include diff --git a/thrust/thrust/universal_allocator.h b/thrust/thrust/universal_allocator.h index 990de335e58..742bb559a3d 100644 --- a/thrust/thrust/universal_allocator.h +++ b/thrust/thrust/universal_allocator.h @@ -24,7 +24,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // #include the device system's vector header #define __THRUST_DEVICE_SYSTEM_MEMORY_HEADER <__THRUST_DEVICE_SYSTEM_ROOT/memory.h> diff --git a/thrust/thrust/universal_ptr.h b/thrust/thrust/universal_ptr.h index 48a21d86752..122ade0ed11 100644 --- a/thrust/thrust/universal_ptr.h +++ b/thrust/thrust/universal_ptr.h @@ -24,7 +24,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include diff --git a/thrust/thrust/universal_vector.h b/thrust/thrust/universal_vector.h index 19aacd65aa1..311f31473f7 100644 --- a/thrust/thrust/universal_vector.h +++ b/thrust/thrust/universal_vector.h @@ -23,7 +23,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include // #include the device system's vector header diff --git a/thrust/thrust/version.h b/thrust/thrust/version.h index c4de0d049f3..8c3fa09acaf 100644 --- a/thrust/thrust/version.h +++ b/thrust/thrust/version.h @@ -30,7 +30,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC // This is the only Thrust header that is guaranteed to // change with every Thrust release. diff --git a/thrust/thrust/zip_function.h b/thrust/thrust/zip_function.h index 9e5fdb643d5..b5b725b61dd 100644 --- a/thrust/thrust/zip_function.h +++ b/thrust/thrust/zip_function.h @@ -9,7 +9,11 @@ #include +#if defined(_CCCL_COMPILER_NVHPC) && defined(_CCCL_USE_IMPLICIT_SYSTEM_DEADER) +#pragma GCC system_header +#else // ^^^ _CCCL_COMPILER_NVHPC ^^^ / vvv !_CCCL_COMPILER_NVHPC vvv _CCCL_IMPLICIT_SYSTEM_HEADER +#endif // !_CCCL_COMPILER_NVHPC #include #include