Skip to content
Merged
Show file tree
Hide file tree
Changes from 38 commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
65f0a10
Draft
tehrengruber Nov 5, 2025
a9b10b0
Small fix
tehrengruber Nov 5, 2025
6f2b1c5
Small fix
tehrengruber Nov 5, 2025
4c490e4
Add compilation options to fo
tehrengruber Nov 6, 2025
7c9e48c
Use arg names
SF-N Nov 6, 2025
18a4e58
Merge branch 'main' into rename_program_args
SF-N Nov 6, 2025
8eb2d0e
Merge branch 'main' into rename_program_args
SF-N Nov 7, 2025
e655862
Merge branch 'main' into rename_program_args
SF-N Nov 10, 2025
273dc56
Address review comment
SF-N Nov 10, 2025
9335226
Merge branch 'rename_program_args' of github.com:SF-N/gt4py into rena…
SF-N Nov 10, 2025
da5b722
Merge remote-tracking branch 'origin/main' into compiled_variant_fo2
tehrengruber Nov 10, 2025
9137000
Merge branch 'main' into rename_program_args
SF-N Nov 10, 2025
b0902fc
Don't add carry arg to parameter list
SF-N Nov 11, 2025
7833a16
Merge branch 'rename_program_args' of github.com:SF-N/gt4py into rena…
SF-N Nov 11, 2025
44d0739
Merge branch 'main' into rename_program_args
SF-N Nov 11, 2025
559913d
Merge branch 'rename_program_args' into compiled_variant_fo2
SF-N Nov 12, 2025
c0f4b26
Fix signature_from_callable_in_program_context
SF-N Nov 12, 2025
e68c6fb
Merge origin/main
tehrengruber Nov 13, 2025
aa8ebca
Works for scan. Not a clean solution.
tehrengruber Nov 18, 2025
69e97a9
Works for scan. Not a clean solution.
tehrengruber Nov 18, 2025
65a5cb6
Format
tehrengruber Nov 18, 2025
9af4dec
Cleanup
tehrengruber Nov 18, 2025
6e0e7f5
Fix compilation options property name from 'connectivities' to 'stati…
tehrengruber Nov 18, 2025
5fcf565
Cleanup
tehrengruber Nov 18, 2025
e6d7119
Fix doctest
tehrengruber Nov 18, 2025
836ac50
Cleanup
tehrengruber Nov 18, 2025
5ce9790
Merge remote-tracking branch 'origin/main' into compiled_variant_fo2
tehrengruber Jan 27, 2026
a28ef75
Fiox broken merge
tehrengruber Jan 27, 2026
789297b
Cleanup
tehrengruber Jan 27, 2026
698fa48
Cleanup
tehrengruber Jan 27, 2026
4a04d89
Cleanup
tehrengruber Jan 27, 2026
5eabe04
Cleanup
tehrengruber Jan 27, 2026
a777ebb
Cleanup
tehrengruber Jan 27, 2026
34b8ed5
Cleanup
tehrengruber Jan 27, 2026
69a0390
Cleanup
tehrengruber Jan 27, 2026
19e1fdb
Cleanup
tehrengruber Jan 27, 2026
f81bd08
Cleanup
tehrengruber Jan 27, 2026
424bd44
Cleanup
tehrengruber Jan 27, 2026
27ac11c
Cleanup
tehrengruber Jan 27, 2026
996688e
Cleanup
tehrengruber Jan 27, 2026
067a499
Cleanup
tehrengruber Jan 27, 2026
cf0a8fb
Fix field operator with named collections
tehrengruber Jan 27, 2026
ea12c1e
Small fix
tehrengruber Jan 27, 2026
1a24e14
Fix tests
tehrengruber Jan 28, 2026
4b35d79
Fix tests
tehrengruber Jan 28, 2026
690e89f
Fix failing tests
tehrengruber Jan 28, 2026
c5fccde
Fix failing tests
tehrengruber Jan 28, 2026
cc877b3
Renaming
tehrengruber Jan 28, 2026
32f24ff
Fix
tehrengruber Jan 28, 2026
ec8638b
Fix format
tehrengruber Jan 28, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
400 changes: 0 additions & 400 deletions docs/user/next/advanced/ToolchainWalkthrough.md

This file was deleted.

25 changes: 1 addition & 24 deletions src/gt4py/next/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import dataclasses
import typing
from typing import Any, Generic
from typing import Generic

from gt4py._core import definitions as core_defs
from gt4py.next import allocators as next_allocators
Expand All @@ -21,7 +21,6 @@
func_to_past,
past_process_args,
past_to_itir,
signature,
)
from gt4py.next.ffront.past_passes import linters as past_linters
from gt4py.next.ffront.stages import (
Expand Down Expand Up @@ -144,28 +143,6 @@ class Backend(Generic[core_defs.DeviceTypeT]):
allocator: next_allocators.FieldBufferAllocatorProtocol[core_defs.DeviceTypeT]
transforms: workflow.Workflow[CompilableDefinition, stages.CompilableProgram]

def __call__(
self,
program: IRDefinitionForm,
*args: Any,
**kwargs: Any,
) -> None:
if not isinstance(program, itir.Program):
args, kwargs = signature.convert_to_positional(program, *args, **kwargs)
# TODO(egparedes): this extraction is not strictly correct, as we should only
# extract values from the correct container types, not from ANY container,
# but that would require a larger refactoring and anyway this Backend class
# should be removed in the future.
extracted_args = tuple(arguments.extract(a) for a in args)
extracted_kwargs = {k: arguments.extract(v) for k, v in kwargs.items()}
self.jit(program, *args, **kwargs)(*extracted_args, **extracted_kwargs)

def jit(self, program: IRDefinitionForm, *args: Any, **kwargs: Any) -> stages.CompiledProgram:
if not isinstance(program, itir.Program):
args, kwargs = signature.convert_to_positional(program, *args, **kwargs)
aot_args = arguments.CompileTimeArgs.from_concrete(*args, **kwargs)
return self.compile(program, aot_args)

def compile(
self, program: IRDefinitionForm, compile_time_args: arguments.CompileTimeArgs
) -> stages.CompiledProgram:
Expand Down
Loading
Loading