Skip to content
Snippets Groups Projects

Fundamental GPU Support

Merged Frederik Hennig requested to merge fhennig/sycl into backend-rework
Compare and
7 files
+ 181
9
Compare changes
  • Side-by-side
  • Inline
Files
7
@@ -46,7 +46,7 @@ class IterationSpace(ABC):
return self._spatial_indices
@property
def dim(self) -> int:
def rank(self) -> int:
return len(self._spatial_indices)
@@ -223,7 +223,7 @@ class FullIterationSpace(IterationSpace):
"""Expression counting the actual number of items processed at the iteration defined by the counter tuple.
Used primarily for indexing buffers."""
actual_iters = [self.actual_iterations(d) for d in range(self.dim)]
actual_iters = [self.actual_iterations(d) for d in range(self.rank)]
compressed_counters = [
(PsExpression.make(dim.counter) - dim.start) / dim.step
for dim in self.dimensions
Loading