diff --git a/cpp/benchmarks/synchronization/synchronization.hpp b/cpp/benchmarks/synchronization/synchronization.hpp index ebff1ff888d..e56d881d459 100644 --- a/cpp/benchmarks/synchronization/synchronization.hpp +++ b/cpp/benchmarks/synchronization/synchronization.hpp @@ -58,8 +58,7 @@ */ -#ifndef CUDF_BENCH_SYNCHRONIZATION_H -#define CUDF_BENCH_SYNCHRONIZATION_H +#pragma once // Google Benchmark library #include @@ -102,5 +101,3 @@ class cuda_event_timer { rmm::cuda_stream_view stream; benchmark::State* p_state; }; - -#endif diff --git a/cpp/src/hash/hash_allocator.cuh b/cpp/src/hash/hash_allocator.cuh index 709b72d4fd2..207f46ae543 100644 --- a/cpp/src/hash/hash_allocator.cuh +++ b/cpp/src/hash/hash_allocator.cuh @@ -14,8 +14,7 @@ * limitations under the License. */ -#ifndef HASH_ALLOCATOR_CUH -#define HASH_ALLOCATOR_CUH +#pragma once #include @@ -61,5 +60,3 @@ bool operator!=(const default_allocator&, const default_allocator&) { return false; } - -#endif diff --git a/cpp/src/hash/helper_functions.cuh b/cpp/src/hash/helper_functions.cuh index 3b8d8528894..70fc47538c9 100644 --- a/cpp/src/hash/helper_functions.cuh +++ b/cpp/src/hash/helper_functions.cuh @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2020, NVIDIA CORPORATION. + * Copyright (c) 2017-2022, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,8 +14,7 @@ * limitations under the License. */ -#ifndef HELPER_FUNCTIONS_CUH -#define HELPER_FUNCTIONS_CUH +#pragma once #include @@ -242,5 +241,3 @@ __host__ __device__ bool operator!=(const cycle_iterator_adapter& lhs, { return !lhs.equal(rhs); } - -#endif // HELPER_FUNCTIONS_CUH diff --git a/cpp/src/hash/managed.cuh b/cpp/src/hash/managed.cuh index c5aab78589e..d85a12c69a9 100644 --- a/cpp/src/hash/managed.cuh +++ b/cpp/src/hash/managed.cuh @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, NVIDIA CORPORATION. + * Copyright (c) 2017-2022, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,8 +14,7 @@ * limitations under the License. */ -#ifndef MANAGED_CUH -#define MANAGED_CUH +#pragma once #include @@ -43,5 +42,3 @@ inline bool isPtrManaged(cudaPointerAttributes attr) return attr.isManaged; #endif } - -#endif // MANAGED_CUH diff --git a/cpp/src/unary/unary_ops.cuh b/cpp/src/unary/unary_ops.cuh index 08b68cc0591..d0003bb6b41 100644 --- a/cpp/src/unary/unary_ops.cuh +++ b/cpp/src/unary/unary_ops.cuh @@ -14,8 +14,7 @@ * limitations under the License. */ -#ifndef UNARY_OPS_H -#define UNARY_OPS_H +#pragma once #include #include @@ -78,5 +77,3 @@ struct launcher { } // namespace unary } // namespace cudf - -#endif // UNARY_OPS_H