From 3355e6039c36e36480af2287f1d0dafc5a87cf9b Mon Sep 17 00:00:00 2001 From: David <45795991+davidwendt@users.noreply.github.com> Date: Thu, 11 Mar 2021 10:03:10 -0500 Subject: [PATCH] Removed unneeded includes from traits.hpp (#7509) The `cpp/include/cudf/utilities/traits.hpp` file is parsed when building most libcudf source files (~200). This PR removes a couple unneeded header includes to help reduce the compile dependency. Only a couple files needed to be updated that relied on `traits.hpp` including these for them. Authors: - David (@davidwendt) Approvers: - Paul Taylor (@trxcllnt) - Jake Hemstad (@jrhemstad) URL: https://github.com/rapidsai/cudf/pull/7509 --- cpp/include/cudf/utilities/traits.hpp | 2 -- cpp/src/interop/dlpack.cpp | 2 ++ cpp/src/io/csv/csv_gpu.cu | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cpp/include/cudf/utilities/traits.hpp b/cpp/include/cudf/utilities/traits.hpp index 1153d4f8ff3..e045476ea77 100644 --- a/cpp/include/cudf/utilities/traits.hpp +++ b/cpp/include/cudf/utilities/traits.hpp @@ -16,8 +16,6 @@ #pragma once -#include -#include #include #include #include diff --git a/cpp/src/interop/dlpack.cpp b/cpp/src/interop/dlpack.cpp index 46d070e14af..84dd41907d2 100644 --- a/cpp/src/interop/dlpack.cpp +++ b/cpp/src/interop/dlpack.cpp @@ -15,6 +15,8 @@ */ #include #include +#include +#include #include #include diff --git a/cpp/src/io/csv/csv_gpu.cu b/cpp/src/io/csv/csv_gpu.cu index 67c6a49ed28..86e5f1fdcae 100644 --- a/cpp/src/io/csv/csv_gpu.cu +++ b/cpp/src/io/csv/csv_gpu.cu @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include