Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiomestre committed Jan 14, 2025
1 parent c7fba1a commit c0587c9
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions sycl/include/sycl/ext/oneapi/experimental/graph.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#ifdef __INTEL_PREVIEW_BREAKING_CHANGES
#include <sycl/detail/string_view.hpp>
#endif
#include <sycl/device.hpp> // for device
#include <sycl/device.hpp> // for device
#include <sycl/ext/oneapi/experimental/detail/properties/graph_properties.hpp> // for graph properties classes
#include <sycl/nd_range.hpp> // for range, nd_range
#include <sycl/properties/property_traits.hpp> // for is_property, is_property_of
Expand Down Expand Up @@ -447,7 +447,6 @@ class command_graph<graph_state::executable>
namespace detail {
class __SYCL_EXPORT dynamic_parameter_base {
public:

dynamic_parameter_base(
sycl::ext::oneapi::experimental::command_graph<graph_state::modifiable>
Graph);
Expand All @@ -467,9 +466,11 @@ class __SYCL_EXPORT dynamic_parameter_base {

void updateAccessor(const sycl::detail::AccessorBaseHost *Acc);

sycl::detail::LocalAccessorImplPtr getLocalAccessor(handler* Handler);
sycl::detail::LocalAccessorImplPtr getLocalAccessor(handler *Handler);

void registerLocalAccessor(sycl::detail::LocalAccessorBaseHost* LocalAccBaseHost, handler* Handler);
void
registerLocalAccessor(sycl::detail::LocalAccessorBaseHost *LocalAccBaseHost,
handler *Handler);

void updateLocalAccessor(range<3> NewAllocationSize);

Expand Down Expand Up @@ -530,11 +531,13 @@ class dynamic_local_accessor : public detail::dynamic_parameter_base {
#ifndef __SYCL_DEVICE_ONLY__
::sycl::detail::LocalAccessorImplPtr BaseLocalAcc = getLocalAccessor(&CGH);
if (BaseLocalAcc) {
return sycl::detail::createSyclObjFromImpl<local_accessor<DataT, Dimensions>>(BaseLocalAcc);
return sycl::detail::createSyclObjFromImpl<
local_accessor<DataT, Dimensions>>(BaseLocalAcc);
} else {
local_accessor<DataT, Dimensions> LocalAccessor(AllocationSize, CGH);
registerLocalAccessor(
static_cast<sycl::detail::LocalAccessorBaseHost *>(&LocalAccessor), &CGH);
static_cast<sycl::detail::LocalAccessorBaseHost *>(&LocalAccessor),
&CGH);
return LocalAccessor;
}
#else
Expand Down

0 comments on commit c0587c9

Please sign in to comment.