This file is indexed.

/usr/include/trilinos/Kokkos_SerialNode.hpp is in libtrilinos-dev 10.4.0.dfsg-1ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef KOKKOS_SERIALNODE_HPP_
#define KOKKOS_SERIALNODE_HPP_

#include <Teuchos_ParameterList.hpp>
#include <Kokkos_StandardNodeMemoryModel.hpp>
#include "Kokkos_NodeHelpers.hpp"

namespace Kokkos {

class SerialNode : public StandardNodeMemoryModel {
  public:
    SerialNode(Teuchos::ParameterList &pl) {}

    template <class WDP>
    static void parallel_for(int beg, int end, WDP wd) {
      for (int i=beg; i != end; ++i) {
        wd.execute(i);
      }
    }

    template <class WDP>
    static typename WDP::ReductionType
    parallel_reduce(int begin, int end, WDP wd) {
      typename WDP::ReductionType result = wd.identity();
      for (int i=begin; i != end; ++i) {
        result = wd.reduce( result, wd.generate(i) );
      }
      return result;
    }

};

template <> class ArrayOfViewsHelper<SerialNode> : public ArrayOfViewsHelperTrivialImpl<SerialNode> {};

}

#endif