Skip to content

Commit

Permalink
Cleaning up some warnings with nvcc
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuuichi Asahi committed Jul 4, 2024
1 parent e940c45 commit 0b81772
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/src/KokkosFFT_transpose.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ auto get_map_axes(const ViewType& view, axis_type<DIM> _axes) {
}

using full_axis_type = axis_type<rank>;
full_axis_type array_map, array_map_inv;
full_axis_type array_map = {0}, array_map_inv = {0};
std::copy(map.begin(), map.end(), array_map.begin());
std::copy(map_inv.begin(), map_inv.end(), array_map_inv.begin());

Expand Down
4 changes: 3 additions & 1 deletion fft/src/KokkosFFT_Cuda_plans.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ void _destroy_plan(std::unique_ptr<PlanType>& plan) {
template <typename ExecutionSpace, typename InfoType,
std::enable_if_t<std::is_same_v<ExecutionSpace, Kokkos::Cuda>,
std::nullptr_t> = nullptr>
void _destroy_info(InfoType& plan) {}
void _destroy_info(InfoType&) {
// not used, no finalization is required
}
} // namespace Impl
} // namespace KokkosFFT

Expand Down

0 comments on commit 0b81772

Please sign in to comment.