Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pragma once #12019

Merged
merged 7 commits into from
Oct 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions cpp/benchmarks/synchronization/synchronization.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@

*/

#ifndef CUDF_BENCH_SYNCHRONIZATION_H
#define CUDF_BENCH_SYNCHRONIZATION_H
#pragma once

// Google Benchmark library
#include <benchmark/benchmark.h>
Expand Down Expand Up @@ -102,5 +101,3 @@ class cuda_event_timer {
rmm::cuda_stream_view stream;
benchmark::State* p_state;
};

#endif
5 changes: 1 addition & 4 deletions cpp/src/hash/hash_allocator.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
* limitations under the License.
*/

#ifndef HASH_ALLOCATOR_CUH
#define HASH_ALLOCATOR_CUH
#pragma once

#include <new>

Expand Down Expand Up @@ -61,5 +60,3 @@ bool operator!=(const default_allocator<T>&, const default_allocator<U>&)
{
return false;
}

#endif
7 changes: 2 additions & 5 deletions cpp/src/hash/helper_functions.cuh
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -14,8 +14,7 @@
* limitations under the License.
*/

#ifndef HELPER_FUNCTIONS_CUH
#define HELPER_FUNCTIONS_CUH
#pragma once

#include <cudf/types.hpp>

Expand Down Expand Up @@ -242,5 +241,3 @@ __host__ __device__ bool operator!=(const cycle_iterator_adapter<T>& lhs,
{
return !lhs.equal(rhs);
}

#endif // HELPER_FUNCTIONS_CUH
7 changes: 2 additions & 5 deletions cpp/src/hash/managed.cuh
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -14,8 +14,7 @@
* limitations under the License.
*/

#ifndef MANAGED_CUH
#define MANAGED_CUH
#pragma once

#include <new>

Expand Down Expand Up @@ -43,5 +42,3 @@ inline bool isPtrManaged(cudaPointerAttributes attr)
return attr.isManaged;
#endif
}

#endif // MANAGED_CUH
5 changes: 1 addition & 4 deletions cpp/src/unary/unary_ops.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
* limitations under the License.
*/

#ifndef UNARY_OPS_H
#define UNARY_OPS_H
#pragma once

#include <cudf/copying.hpp>
#include <cudf/detail/copy.hpp>
Expand Down Expand Up @@ -78,5 +77,3 @@ struct launcher {

} // namespace unary
} // namespace cudf

#endif // UNARY_OPS_H