Skip to content

Commit 71c3aea

Browse files
committed
fix typo, macro, and use proper header
1 parent a60e3da commit 71c3aea

4 files changed

Lines changed: 10 additions & 9 deletions

File tree

core/base/dense_cache_accessor.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#define GKO_CORE_BASE_DENSE_CACHE_ACCESSOR_HPP_
77

88

9-
#include <iostream>
109
#include <map>
1110
#include <string>
1211

core/distributed/vector_cache_accessor.hpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@
66
#define GKO_CORE_DISTRIBUTED_VECTOR_CACHE_ACCESSOR_HPP_
77

88

9-
#include <iostream>
10-
#include <map>
11-
#include <string>
12-
9+
#include <ginkgo/config.hpp>
1310
#include <ginkgo/core/base/array.hpp>
14-
#include <ginkgo/core/base/executor.hpp>
1511
#include <ginkgo/core/distributed/vector_cache.hpp>
1612

1713

14+
#if GINKGO_BUILD_MPI
15+
16+
1817
namespace gko {
1918
namespace experimental {
2019
namespace distributed {
@@ -25,7 +24,9 @@ namespace detail {
2524
class GenericVectorCacheAccessor {
2625
public:
2726
// access to the workspace
28-
static const array<char>& get_workspace(const GenericVectorCache& cache);
27+
static const array<char>& get_workspace(
28+
const gko::experimental::distributed::detail::GenericVectorCache&
29+
cache);
2930
};
3031

3132

@@ -35,4 +36,5 @@ class GenericVectorCacheAccessor {
3536
} // namespace gko
3637

3738

39+
#endif
3840
#endif // GKO_CORE_DISTRIBUTED_VECTOR_CACHE_ACCESSOR_HPP_

core/test/base/dense_cache.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ TYPED_TEST(GenericDenseCache, GenericCanInitWithSizeAndType)
303303
GKO_ASSERT_EQUAL_DIMENSIONS(second_buffer->get_size(), this->size);
304304
ASSERT_EQ(second_buffer->get_executor(), this->ref);
305305
if (sizeof(another_type) > sizeof(value_type)) {
306-
// the requring workspace will be bigger if the type is larger.
306+
// the requiring workspace will be bigger if the type is larger.
307307
ASSERT_NE(
308308
array_ptr,
309309
generic_accessor::get_workspace(this->cache).get_const_data());

core/test/mpi/distributed/vector_cache.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ TYPED_TEST(GenericVectorCache, GenericCanInitWithSizeAndType)
480480
ASSERT_EQ(second_buffer->get_communicator(), this->comm);
481481
ASSERT_EQ(second_buffer->get_executor(), this->ref);
482482
if (sizeof(another_type) > sizeof(value_type)) {
483-
// the requring workspace will be bigger if the type is larger.
483+
// the requiring workspace will be bigger if the type is larger.
484484
ASSERT_NE(
485485
array_ptr,
486486
generic_accessor::get_workspace(this->cache).get_const_data());

0 commit comments

Comments
 (0)