From 24827b7753fcdc6c837301064afe60e3d1df3145 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" <mail@keldu.de> Date: Mon, 14 Apr 2025 16:24:56 +0200 Subject: wip. Doing a basic modular design for GPU prep --- c++/component.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'c++/component.hpp') diff --git a/c++/component.hpp b/c++/component.hpp index 14f908a..c67387b 100644 --- a/c++/component.hpp +++ b/c++/component.hpp @@ -6,13 +6,14 @@ namespace kel { namespace lbm { namespace cmpt { -template<saw::string_literal Name, uint64_t Dist, bool Read, bool Write> +template<saw::string_literal Name, uint64_t Dist, bool Read, bool Write, bool SkipSync = false> class access { public: static constexpr saw::string_literal name = Name; static constexpr uint64_t distance = Dist; static constexpr bool read = Read; static constexpr bool write = Write; + static constexpr bool skip_sync = SkipSync; }; template<typename... Acc> @@ -24,7 +25,7 @@ public: /** * Compponent class which forms the basis of the */ -template<typename T> +template<typename T, typename Descriptor, typename Cmpt> class component {}; } } -- cgit v1.2.3