diff --git a/sycl/source/detail/async_alloc.cpp b/sycl/source/detail/async_alloc.cpp index 57ce7a71b7134..8251da36ea492 100644 --- a/sycl/source/detail/async_alloc.cpp +++ b/sycl/source/detail/async_alloc.cpp @@ -65,7 +65,6 @@ void *async_malloc(sycl::handler &h, sycl::usm::alloc kind, size_t size) { // Async malloc must return a void* immediately. // Set up CommandGroup which is a no-op and pass the // event from the alloc. - h.impl->MAllocSize = size; h.impl->MAsyncAllocEvent = Event; h.setType(detail::CGType::AsyncAlloc); @@ -112,8 +111,6 @@ __SYCL_EXPORT void *async_malloc_from_pool(sycl::handler &h, size_t size, // Async malloc must return a void* immediately. // Set up CommandGroup which is a no-op and pass the event from the alloc. - h.impl->MAllocSize = size; - h.impl->MMemPool = memPoolImpl; h.impl->MAsyncAllocEvent = Event; h.setType(detail::CGType::AsyncAlloc); diff --git a/sycl/source/detail/cg.hpp b/sycl/source/detail/cg.hpp index 5b3900d9d129d..298cc155e0f76 100644 --- a/sycl/source/detail/cg.hpp +++ b/sycl/source/detail/cg.hpp @@ -671,29 +671,14 @@ class CGSemaphoreSignal : public CG { /// "Async Alloc" command group class. class CGAsyncAlloc : public CG { - // These members are unused but kept in case of logging. - size_t MSize; - std::shared_ptr MMemPool; - // Resulting event carried from async alloc execution. ur_event_handle_t MEvent; public: - CGAsyncAlloc( - size_t size, - std::shared_ptr - MemPool, - ur_event_handle_t event, CG::StorageInitHelper CGData, - detail::code_location loc = {}) - : CG(CGType::AsyncAlloc, std::move(CGData), std::move(loc)), MSize(size), - MMemPool(std::move(MemPool)), MEvent(event) {} - - std::shared_ptr - getMemPool() const { - return MMemPool; - } - - size_t getSize() const { return MSize; } + CGAsyncAlloc(ur_event_handle_t event, CG::StorageInitHelper CGData, + detail::code_location loc = {}) + : CG(CGType::AsyncAlloc, std::move(CGData), std::move(loc)), + MEvent(event) {} ur_event_handle_t getEvent() const { return MEvent; } }; diff --git a/sycl/source/detail/handler_impl.hpp b/sycl/source/detail/handler_impl.hpp index 2bdeb6f303aa0..8bbb2b0ba0b69 100644 --- a/sycl/source/detail/handler_impl.hpp +++ b/sycl/source/detail/handler_impl.hpp @@ -203,11 +203,7 @@ class handler_impl { ext::oneapi::experimental::event_mode_enum MEventMode = ext::oneapi::experimental::event_mode_enum::none; - /// Memory pool and allocation size for asynchronous allocation - held for - /// potential logging. /// Event computed from async alloc which is passed through for processing. - std::shared_ptr MMemPool; - size_t MAllocSize = 0; ur_event_handle_t MAsyncAllocEvent = nullptr; // Allocation ptr to be freed asynchronously. diff --git a/sycl/source/handler.cpp b/sycl/source/handler.cpp index ffb28d2ab6ff9..06ffeef5acb54 100644 --- a/sycl/source/handler.cpp +++ b/sycl/source/handler.cpp @@ -725,8 +725,7 @@ event handler::finalize() { break; case detail::CGType::AsyncAlloc: CommandGroup.reset(new detail::CGAsyncAlloc( - impl->MAllocSize, impl->MMemPool, impl->MAsyncAllocEvent, - std::move(impl->CGData), MCodeLoc)); + impl->MAsyncAllocEvent, std::move(impl->CGData), MCodeLoc)); break; case detail::CGType::AsyncFree: CommandGroup.reset(new detail::CGAsyncFree(