Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
clang-format and clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
slava77devel committed Jan 3, 2024
1 parent 5f3c8af commit 2f53923
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion SDL/Constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ namespace SDL {

// Allocation wrapper function to make integration of the caching allocator easier and reduce code boilerplate.
template <typename T, typename TAcc, typename TSize, typename TQueue>
ALPAKA_FN_HOST ALPAKA_FN_INLINE Buf<alpaka::Dev<TAcc>, T> allocBufWrapper(TAcc const& devAccIn, TSize nElements, TQueue queue) {
ALPAKA_FN_HOST ALPAKA_FN_INLINE Buf<alpaka::Dev<TAcc>, T> allocBufWrapper(TAcc const& devAccIn,
TSize nElements,
TQueue queue) {
#ifdef CACHE_ALLOC
return cms::alpakatools::allocCachedBuf<T, Idx>(devAccIn, queue, Vec1d(static_cast<Idx>(nElements)));
#else
Expand Down
1 change: 0 additions & 1 deletion SDL/Event.cc
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ void SDL::initModules(const char* moduleMetaDataFilePath) {
// Set the relevant data pointers.
modulesBuffersES = modulesBuffers;
modulesInGPU->setData(*modulesBuffersES);

}

// Temporary solution to the global variables. Should be freed with shared_ptr.
Expand Down
2 changes: 1 addition & 1 deletion SDL/Event.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ namespace SDL {
//global stuff
extern SDL::modules* modulesInGPU;
extern SDL::modulesBuffer<Dev>* modulesBuffers;
extern SDL::modulesBuffer<Dev> const* modulesBuffersES; // not owned const buffers
extern SDL::modulesBuffer<Dev> const* modulesBuffersES; // not owned const buffers
extern uint16_t nModules;
extern uint16_t nLowerModules;
void initModules(const char* moduleMetaDataFilePath = "data/centroid.txt"); //read from file and init
Expand Down

0 comments on commit 2f53923

Please sign in to comment.