/usr/include/trilinos/Kokkos_BufferMacros.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 | #ifndef KOKKOS_BUFFER_MACROS
#define KOKKOS_BUFFER_MACROS
#include <Teuchos_TestForException.hpp>
#include <Teuchos_TypeNameTraits.hpp>
#include <string>
#include <stdexcept>
#ifdef HAVE_KOKKOS_DEBUG
#define MARK_COMPUTE_BUFFER(buff) \
{ \
std::string ptrtype("compute"); \
Teuchos::set_extra_data(ptrtype, "BufferType", Teuchos::inOutArg(buff)); \
}
#define CHECK_COMPUTE_BUFFER(buff) \
{ \
TEST_FOR_EXCEPTION( Teuchos::get_extra_data<std::string>(buffSrc, "BufferType") != "compute", std::logic_error, \
Teuchos::typeName(*this) << ": argument buffer is not a compute buffer as expected." ); \
}
#else
#define MARK_COMPUTE_BUFFER(buff)
#define CHECK_COMPUTE_BUFFER(buff)
#endif
#endif
|