Skip to content

Commit

Permalink
Fix compilation on oneapi 2025 (#861)
Browse files Browse the repository at this point in the history
* Fix compilation on oneapi 2025

* switch range-v3 provider

* Fix header order
  • Loading branch information
Xewar313 authored Nov 13, 2024
1 parent 01b3e25 commit 0961a88
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ endif()

FetchContent_Declare(
range-v3
GIT_REPOSITORY https://github.com/BenBrock/range-v3.git
GIT_TAG 5300fe3)
GIT_REPOSITORY https://github.com/Xewar313/range-v3.git
GIT_TAG c1ed9bf)
FetchContent_MakeAvailable(range-v3)

FetchContent_Declare(
Expand Down
8 changes: 4 additions & 4 deletions benchmarks/gbench/common/stream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "dr_bench.hpp"

template <class ContainerT> void Stream_Copy(benchmark::State &state) {
using T = rng::value_type_t<ContainerT>;
using T = rng::iter_value_t<ContainerT>;
T init = 0;
ContainerT a(default_vector_size, init);
ContainerT b(default_vector_size, init);
Expand All @@ -25,7 +25,7 @@ template <class ContainerT> void Stream_Copy(benchmark::State &state) {
inline int val = 0;

template <class ContainerT> void Stream_Scale(benchmark::State &state) {
using T = rng::value_type_t<ContainerT>;
using T = rng::iter_value_t<ContainerT>;
T scalar = val;
ContainerT a(default_vector_size, scalar);
ContainerT b(default_vector_size, scalar);
Expand All @@ -42,7 +42,7 @@ template <class ContainerT> void Stream_Scale(benchmark::State &state) {
}

template <class ContainerT> void Stream_Add(benchmark::State &state) {
using T = rng::value_type_t<ContainerT>;
using T = rng::iter_value_t<ContainerT>;
T scalar = val;
xp::distributed_vector<T> a(default_vector_size, scalar);
xp::distributed_vector<T> b(default_vector_size, scalar);
Expand All @@ -60,7 +60,7 @@ template <class ContainerT> void Stream_Add(benchmark::State &state) {
}

template <class ContainerT> void Stream_Triad(benchmark::State &state) {
using T = rng::value_type_t<ContainerT>;
using T = rng::iter_value_t<ContainerT>;
T scalar = val;
ContainerT a(default_vector_size, scalar);
ContainerT b(default_vector_size, scalar);
Expand Down
3 changes: 2 additions & 1 deletion benchmarks/gbench/mp/fft3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
#include "cxxopts.hpp"
#include "fmt/core.h"
#include "mpi.h"
#include "oneapi/mkl/dfti.hpp"
#include "oneapi/mkl/dft.hpp"
#include <complex>

#include "dr/mp.hpp"

Expand Down
3 changes: 2 additions & 1 deletion benchmarks/gbench/sp/fft3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
// SPDX-License-Identifier: BSD-3-Clause

#include "cxxopts.hpp"
#include "oneapi/mkl/dfti.hpp"
#include "oneapi/mkl/dft.hpp"
#include <complex>
#include <dr/sp.hpp>
#include <fmt/core.h>
#include <latch>
Expand Down

0 comments on commit 0961a88

Please sign in to comment.