end of file corrections
This commit is contained in:
parent
23783b7db9
commit
b65be8881c
|
@ -183,4 +183,4 @@ public:
|
|||
|
||||
} // pFlow
|
||||
|
||||
#endif // __DEMSystem_hpp__
|
||||
#endif // __DEMSystem_hpp__
|
||||
|
|
|
@ -36,12 +36,12 @@ if(NOT EXISTS "${Kokkos_Source_DIR}/CMakeLists.txt")
|
|||
FetchContent_Declare(
|
||||
kokkos
|
||||
GIT_REPOSITORY https://github.com/kokkos/kokkos.git
|
||||
GIT_TAG 4.3.01
|
||||
GIT_TAG 4.4.01
|
||||
)
|
||||
|
||||
FetchContent_GetProperties(kokkos)
|
||||
if(NOT kokkos_POPULATED)
|
||||
message(STATUS "Kokkos source directory not found. Downloading Kokkos version 4.3.01 ...")
|
||||
message(STATUS "Kokkos source directory not found. Downloading Kokkos version 4.4.1 ...")
|
||||
FetchContent_Populate(kokkos)
|
||||
set(Kokkos_Source_DIR ${kokkos_SOURCE_DIR})
|
||||
endif()
|
||||
|
|
|
@ -21,6 +21,7 @@ Licence:
|
|||
-----------------------------------------------------------------------------*/
|
||||
|
||||
#include "mapperNBSKernels.hpp"
|
||||
#include "streams.hpp"
|
||||
|
||||
void pFlow::mapperNBSKernels::findPointExtends
|
||||
(
|
||||
|
@ -152,7 +153,9 @@ bool pFlow::mapperNBSKernels::buildLists
|
|||
const pFlagTypeDevice &flags
|
||||
)
|
||||
{
|
||||
|
||||
auto aRange = flags.activeRange();
|
||||
|
||||
auto pp = points;
|
||||
if(flags.isAllActive() )
|
||||
{
|
||||
|
@ -162,7 +165,7 @@ bool pFlow::mapperNBSKernels::buildLists
|
|||
deviceRPolicyStatic(aRange.start(), aRange.end()),
|
||||
LAMBDA_HD(uint32 i)
|
||||
{
|
||||
auto ind = searchCell.pointIndex(pp[i]);
|
||||
auto ind = searchCell.pointIndex(pp[i]);
|
||||
uint32 old = Kokkos::atomic_exchange(&head(ind.x(), ind.y(), ind.z()), i);
|
||||
next[i] = old;
|
||||
}
|
||||
|
|
|
@ -62,4 +62,4 @@ struct minimum
|
|||
|
||||
}
|
||||
|
||||
#endif // __algorithmFunctions_hpp__
|
||||
#endif // __algorithmFunctions_hpp__
|
||||
|
|
|
@ -240,4 +240,4 @@ void inclusiveScan(Type* first, DestType* dFirst, int32 numElems)
|
|||
}
|
||||
|
||||
|
||||
#endif //__stdAlgorithms_hpp__
|
||||
#endif //__stdAlgorithms_hpp__
|
||||
|
|
|
@ -270,4 +270,4 @@ inline pFlow::iIstream& pFlow::operator >>(iIstream& is, List<T>& lst)
|
|||
fatalExit;
|
||||
}
|
||||
return is;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -320,4 +320,4 @@ void pFlow::ListPtr<T>::clear
|
|||
delete p;
|
||||
list_.erase(pos(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -131,4 +131,4 @@ inline iOstream& printKeys(iOstream& os, const int64Map<T> & m)
|
|||
}
|
||||
|
||||
return os;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -185,4 +185,4 @@ span<const char> charSpan(span<const T> s)
|
|||
|
||||
} // pFlow
|
||||
|
||||
#endif //__span_hpp__
|
||||
#endif //__span_hpp__
|
||||
|
|
|
@ -60,4 +60,4 @@ public:
|
|||
|
||||
}
|
||||
|
||||
#endif //__fileDictionary_hpp__
|
||||
#endif //__fileDictionary_hpp__
|
||||
|
|
|
@ -32,4 +32,4 @@ pFlow::IOPattern::IOPattern( IOType iotype)
|
|||
pFlow::word pFlow::IOPattern::exeMode()
|
||||
{
|
||||
return processors::globalRunTypeName();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -115,4 +115,4 @@ public:
|
|||
|
||||
} // namespace pFlow
|
||||
|
||||
#endif //__timeInfo__hpp_
|
||||
#endif //__timeInfo__hpp_
|
||||
|
|
|
@ -93,4 +93,4 @@ const T& pFlow::repository::lookupObject(const word& name)const
|
|||
fatalExit;
|
||||
return static_cast<T&>(*iter->second);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -46,4 +46,4 @@ namespace pFlow
|
|||
#define ERR pFlow::errReport<<boldChar<<redColor<<"> ERROR\n"<<defaultColor<<redColor<<" "
|
||||
#define END_ERR defaultColor<<pFlow::endl
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -84,4 +84,4 @@ operator>>(iIstream& str, quadruple<T>& iv);
|
|||
|
||||
template<typename T>
|
||||
INLINE_FUNCTION_H void
|
||||
readIstream(iIstream& str, quadruple<T>& iv);
|
||||
readIstream(iIstream& str, quadruple<T>& iv);
|
||||
|
|
|
@ -91,4 +91,4 @@ pFlow::max(const quadruple<T>& q4)
|
|||
}
|
||||
|
||||
#undef Q4Func
|
||||
#undef Q4Func2
|
||||
#undef Q4Func2
|
||||
|
|
|
@ -112,4 +112,4 @@ operator>>(iIstream& str, triple<T>& iv);
|
|||
|
||||
template<typename T>
|
||||
inline void
|
||||
readIstream(iIstream& str, triple<T>& iv);
|
||||
readIstream(iIstream& str, triple<T>& iv);
|
||||
|
|
|
@ -342,4 +342,4 @@ pFlow::equal(const triple<T>& opr1, const triple<T>& opr2)
|
|||
{
|
||||
return equal(opr1.x(), opr2.x()) && equal(opr1.y(), opr2.y()) &&
|
||||
equal(opr1.z(), opr2.z());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -50,90 +50,6 @@ using realx4 = quadruple<real>;
|
|||
|
||||
using realx4x3 = quadruple<realx3>;
|
||||
|
||||
/*template<>
|
||||
inline word
|
||||
triple<int8>::TYPENAME()
|
||||
{
|
||||
return "int8x3";
|
||||
}
|
||||
|
||||
template<>
|
||||
inline word
|
||||
triple<int32>::TYPENAME()
|
||||
{
|
||||
return "int32x3";
|
||||
}
|
||||
|
||||
template<>
|
||||
inline word
|
||||
basicTypeName<int64x3>()
|
||||
{
|
||||
return "int64x3";
|
||||
}
|
||||
|
||||
template<>
|
||||
inline word
|
||||
basicTypeName<uint8x3>()
|
||||
{
|
||||
return "uint8x3";
|
||||
}
|
||||
|
||||
template<>
|
||||
inline word
|
||||
basicTypeName<uint32x3>()
|
||||
{
|
||||
return "uint32x3";
|
||||
}
|
||||
|
||||
template<>
|
||||
inline word
|
||||
basicTypeName<uint64x3>()
|
||||
{
|
||||
return "unit64x3";
|
||||
}
|
||||
|
||||
template<>
|
||||
inline word
|
||||
basicTypeName<realx3>()
|
||||
{
|
||||
return "realx3";
|
||||
}
|
||||
|
||||
template<>
|
||||
inline word
|
||||
basicTypeName<int32x3x3>()
|
||||
{
|
||||
return "int32x3x3";
|
||||
}
|
||||
|
||||
template<>
|
||||
inline word
|
||||
basicTypeName<uint32x3x3>()
|
||||
{
|
||||
return "uint32x3x3";
|
||||
}
|
||||
|
||||
template<>
|
||||
inline word
|
||||
basicTypeName<realx3x3>()
|
||||
{
|
||||
return "realx3x3";
|
||||
}
|
||||
|
||||
template<>
|
||||
inline word
|
||||
basicTypeName<realx4>()
|
||||
{
|
||||
return "realx4";
|
||||
}
|
||||
|
||||
template<>
|
||||
inline word
|
||||
basicTypeName<realx4x3>()
|
||||
{
|
||||
return "realx4x3";
|
||||
}*/
|
||||
|
||||
extern const realx3 zero3;
|
||||
extern const realx3 one3;
|
||||
|
||||
|
@ -144,4 +60,4 @@ extern const realx4 zero4;
|
|||
|
||||
} // pFlow
|
||||
|
||||
#endif //__types_hpp__
|
||||
#endif //__types_hpp__
|
||||
|
|
Loading…
Reference in New Issue