Fix missing includes - #442
Conversation
|
@tpadioleau This PR contains the results of the following command: There will probably be some wrong suggestions but I have pushed as is to help evaluate #435 |
6dcfebe to
08d5fae
Compare
|
Updated following updates to |
|
|
||
| #include "ddc_aliases.hpp" | ||
| #include "mesh_builder.hpp" | ||
| #include "non_uniform_interpolation_points.hpp" |
There was a problem hiding this comment.
This removal seems to create compilation problems related to is_non_uniform_interpolation_points_v
| #include <ddc/ddc.hpp> | ||
| #include <ddc/kernels/splines.hpp> | ||
|
|
||
| #include <Serial/Kokkos_Serial.hpp> |
There was a problem hiding this comment.
Should be a private Kokkos header. Does it compile fine ? Some Kokkos headers are protected.
There was a problem hiding this comment.
Ah, I only set the impl folder in Kokkos to private
| #include <Kokkos_Core.hpp> | ||
| #include <Kokkos_Macros.hpp> | ||
| #include <Kokkos_MinMax.hpp> | ||
| #include <Kokkos_Parallel_Reduce.hpp> |
|
|
||
| #include <gtest/gtest.h> | ||
|
|
||
| #include <Kokkos_ExecPolicy.hpp> |
|
|
||
| #pragma once | ||
| #include "ddc_aliases.hpp" | ||
| #include <mdspan/mdspan.hpp> |
There was a problem hiding this comment.
I don't know what is the best way to handle mdspan. Should we consider that Kokkos_Core.hpp brings it ? As Kokkos does for atomics that come from the desul library ?
There was a problem hiding this comment.
🤔 I think we might occasionally use mdspan, but I'm not sure why it thinks it's needed here
There was a problem hiding this comment.
Interesting:
#include <mdspan/mdspan.hpp> // for layout_right
| #include <ddc/pdi.hpp> | ||
|
|
||
| #include <Kokkos_Core.hpp> | ||
| #include <Kokkos_Layout.hpp> |
| #include <ddc/ddc.hpp> | ||
| #include <ddc/pdi.hpp> | ||
|
|
||
| #include <Kokkos_Concepts.hpp> |
There was a problem hiding this comment.
Not sure either if it is private
| #include <ddc/ddc.hpp> | ||
| #include <ddc/kernels/splines.hpp> | ||
|
|
||
| #include <Serial/Kokkos_Serial.hpp> |
| #include <gtest/gtest.h> | ||
|
|
||
| #include <Kokkos_Core.hpp> | ||
| #include <Kokkos_ExecPolicy.hpp> |
| #include <Kokkos_ExecPolicy.hpp> | ||
| #include <Kokkos_Macros.hpp> | ||
| #include <Kokkos_MinMax.hpp> | ||
| #include <Kokkos_Parallel_Reduce.hpp> |
| #include <Kokkos_ExecPolicy.hpp> | ||
| #include <Kokkos_Layout.hpp> | ||
| #include <Kokkos_Macros.hpp> | ||
| #include <Kokkos_Parallel.hpp> |
|
|
||
| #include <Kokkos_Core.hpp> | ||
| #include <Kokkos_Macros.hpp> | ||
| #include <stdlib.h> |
There was a problem hiding this comment.
Weird, why not ? Is there a missing qualification std:: ?
There was a problem hiding this comment.
Ah probably:
#include <stdlib.h> // for abs
this may be why I had that abs line
| #include <Kokkos_Core.hpp> | ||
| #include <mdspan/mdspan.hpp> | ||
|
|
||
| #include <string.h> |
There was a problem hiding this comment.
I think we should use cstring with std::memset
| #include <ddc/ddc.hpp> | ||
|
|
||
| #include <gmock/gmock.h> | ||
| #include <ext/type_traits.h> |
There was a problem hiding this comment.
This doesn't help much:
#include <ext/type_traits.h> // for __promote_2
🤔
/home/emily/Code/gyselalibxx/tests/geometryXVx/lagrange_test.cpp:136:61: warning: __gnu_cxx::__promote_2 is defined in <ext/type_traits.h>, which isn't directly #included.
gyselalibxx/tests/geometryXVx/lagrange_test.cpp
Lines 136 to 138 in 1c78d47
There was a problem hiding this comment.
Then just a limitation of iwyu
|
|
||
| #include <gtest/gtest.h> | ||
|
|
||
| #include <math.h> |
There was a problem hiding this comment.
Missing std:: qualification ?
08d5fae to
fc6258f
Compare
fc6258f to
085f72f
Compare
<Describe your PR here. This will form the basis of the squashed commit message in the devel branch.>
Please complete the checklist to ensure that all tasks are completed before marking your pull request as ready for review.
All Submissions
New Feature Submissions
Changes to Existing Features
Changes to the CI